Changeset 25502 for trunk/admin/themes


Ignore:
Timestamp:
Nov 16, 2013, 11:01:58 PM (11 years ago)
Author:
plg
Message:

feature 1668: add new language strings for the new user manager.

Location:
trunk/admin/themes/default
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/user_list.tpl

    r25492 r25502  
    1111
    1212{footer_script}
    13 var selectedMessage_pattern = "{'%d of %d photos selected'|@translate}";
    14 var selectedMessage_none = "{'No photo selected, %d photos in current set'|@translate}";
    15 var selectedMessage_all = "{'All %d photos are selected'|@translate}";
    16 var applyOnDetails_pattern = "{'on the %d selected users'|@translate}";
    17 var newUser_pattern = "✔ {'User %s added'|translate}";
    18 var registeredOn_pattern = "{'Registered on %s, %s.'|translate}";
    19 var lastVisit_pattern = "{'Last visit on %s, %s.'|translate}";
    20 var missingConfirm = "{'You need to confirm deletion'|translate}";
    21 var missingUsername = "{'Please, enter a login'|translate}";
     13var selectedMessage_pattern = "{'%d of %d users selected'|translate|escape:javascript}";
     14var selectedMessage_none = "{'No user selected of %d users'|translate|escape:javascript}";
     15var selectedMessage_all = "{'All %d users are selected'|translate|escape:javascript}";
     16var applyOnDetails_pattern = "{'on the %d selected users'|translate|escape:javascript}";
     17var newUser_pattern = "✔ {'User %s added'|translate|escape:javascript}";
     18var registeredOn_pattern = "{'Registered on %s, %s.'|translate|escape:javascript}";
     19var lastVisit_pattern = "{'Last visit on %s, %s.'|translate|escape:javascript}";
     20var missingConfirm = "{'You need to confirm deletion'|translate|escape:javascript}";
     21var missingUsername = "{'Please, enter a login'|translate|escape:javascript}";
    2222
    2323var allUsers = [{$all_users}];
     
    145145          var userDetails = '<form>';
    146146          userDetails += '<div class="userActions">';
    147           userDetails += '<span class="changePasswordDone infos" style="display:none">&#x2714; Password updated</span>';
    148           userDetails += '<span class="changePassword" style="display:none">{/literal}{'New password'|translate}{literal} <input type="text"> <a href="#" class="buttonLike updatePassword"><img src="themes/default/images/ajax-loader-small.gif" style="margin-bottom:-1px;margin-left:1px;display:none;"><span class="text">{/literal}{'Submit'|translate}{literal}</span></a> <a href="#" class="cancel">Cancel</a></span>';
    149           userDetails += '<a class="icon-key changePasswordOpen" href="#">Change password</a>';
    150           userDetails += '<br><a target="_blank" href="admin.php?page=user_perm&amp;user_id='+userId+'" class="icon-lock">Permissions</a>';
    151           userDetails += '<br><span class="userDelete"><img class="loading" src="themes/default/images/ajax-loader-small.gif" style="display:none;"><a href="#" class="icon-trash" data-user_id="'+userId+'">Delete</a></span>';
     147          userDetails += '<span class="changePasswordDone infos" style="display:none">&#x2714; {/literal}{'Password updated'|translate|escape:javascript}{literal}</span>';
     148          userDetails += '<span class="changePassword" style="display:none">{/literal}{'New password'|translate}{literal} <input type="text"> <a href="#" class="buttonLike updatePassword"><img src="themes/default/images/ajax-loader-small.gif" style="margin-bottom:-1px;margin-left:1px;display:none;"><span class="text">{/literal}{'Submit'|translate|escape:javascript}{literal}</span></a> <a href="#" class="cancel">{/literal}{'Cancel'|translate|escape:javascript}{literal}</a></span>';
     149          userDetails += '<a class="icon-key changePasswordOpen" href="#">{/literal}{'Change password'|translate|escape:javascript}{literal}</a>';
     150          userDetails += '<br><a target="_blank" href="admin.php?page=user_perm&amp;user_id='+userId+'" class="icon-lock">{/literal}{'Permissions'|translate|escape:javascript}{literal}</a>';
     151          userDetails += '<br><span class="userDelete"><img class="loading" src="themes/default/images/ajax-loader-small.gif" style="display:none;"><a href="#" class="icon-trash" data-user_id="'+userId+'">{/literal}{'Delete'|translate|escape:javascript}{literal}</a></span>';
    152152          userDetails += '</div>';
    153153
    154           userDetails += '<span class="changeUsernameOpen"><strong class="username">'+user.username+'</strong> <a href="#" class="icon-pencil">Change username</a></span>';
     154          userDetails += '<span class="changeUsernameOpen"><strong class="username">'+user.username+'</strong> <a href="#" class="icon-pencil">{/literal}{'Change username'|translate|escape:javascript}{literal}</a></span>';
    155155          userDetails += '<span class="changeUsername" style="display:none">';
    156           userDetails += '<input type="text"> <a href="#" class="buttonLike updateUsername"><img src="themes/default/images/ajax-loader-small.gif" style="margin-bottom:-1px;margin-left:1px;display:none;"><span class="text">{/literal}{'Submit'|translate}{literal}</span></a> <a href="#" class="cancel">Cancel</a>';
     156          userDetails += '<input type="text"> <a href="#" class="buttonLike updateUsername"><img src="themes/default/images/ajax-loader-small.gif" style="margin-bottom:-1px;margin-left:1px;display:none;"><span class="text">{/literal}{'Submit'|translate}{literal}</span></a> <a href="#" class="cancel">{/literal}{'Cancel'|translate|escape:javascript}{literal}</a>';
    157157          userDetails += '</span>';
    158158
     
    222222          userDetails += '</div>';
    223223
    224           userDetails += '<div class="userProperty"><strong>{/literal}{'Theme'|translate}{literal}</strong>';
     224          userDetails += '<div class="userProperty"><strong>{/literal}{'Interface theme'|translate|escape:javascript}{literal}</strong>';
    225225          userDetails += '<br><select name="theme">';
    226226          jQuery("#action select[name=theme] option").each(function() {
     
    272272          userDetails += '<div style="clear:both"></div></div>';
    273273
    274           userDetails += '<span class="infos propertiesUpdateDone" style="display:none">&#x2714; User '+user.username+' updated</span>';
    275           userDetails += '<input type="submit" value="{/literal}{'Update user'|translate}{literal}" style="display:none;" data-user_id="'+userId+'">';
     274          userDetails += '<span class="infos propertiesUpdateDone" style="display:none">&#x2714; ';
     275          userDetails += sprintf("{/literal}{'User %s updated'|translate|escape:javascript}{literal}", user.username);
     276          userDetails += '</span>';
     277          userDetails += '<input type="submit" value="{/literal}{'Update user'|translate|escape:javascript}{literal}" style="display:none;" data-user_id="'+userId+'">';
    276278          userDetails += '<img class="submitWait" src="themes/default/images/ajax-loader-small.gif" style="display:none">'
    277279          userDetails += '</form>';
     
    554556    "sAjaxSource": "admin/user_list_backend.php",
    555557    "oLanguage": {
    556       "sProcessing":     "Traitement en cours...",
    557       "sLengthMenu":     "Afficher _MENU_ éléments",
    558       "sZeroRecords":    "Aucun élément à afficher",
    559       "sInfo":           "Affichage des élements _START_ à _END_ sur _TOTAL_",
    560       "sInfoEmpty":      "Affichage de l'élement 0 à 0 sur 0 éléments",
    561       "sInfoFiltered":   "<br>(filtré de _MAX_ éléments au total{/literal}{if $is_a_guest} <span class='limitedVersionWarning'>dans la version complète</span>{/if}{literal})",
    562       "sInfoPostFix":    "",
    563       "sSearch":         "Rechercher",
    564       "sLoadingRecords": "Téléchargement...",
    565       "sUrl":            "",
     558      "sProcessing": "{/literal}{'Loading...'|translate|escape:'javascript'}{literal}",
     559      "sLengthMenu": sprintf("{/literal}{'Show %s users'|translate|escape:'javascript'}{literal}", '_MENU_'),
     560      "sZeroRecords": "{/literal}{'No matching users found'|translate|escape:'javascript'}{literal}",
     561      "sInfo": sprintf("{/literal}{'Showing %s to %s of %s users'|translate|escape:'javascript'}{literal}", '_START_', '_END_', '_TOTAL_'),
     562      "sInfoEmpty": "{/literal}{'No matching users found'|translate|escape:'javascript'}{literal}",
     563      "sInfoFiltered": sprintf("{/literal}{'(filtered from %s total users)'|translate|escape:'javascript'}{literal}", '_MAX_'),
     564      "sSearch": '<span class="icon-search"></span>'+"{/literal}{'Search'|translate|escape:'javascript'}{literal}",
     565      "sLoadingRecords": "{/literal}{'Loading...'|translate|escape:'javascript'}{literal}",
    566566      "oPaginate": {
    567           "sFirst":    "Premier",
    568           "sPrevious": "← Précédent",
    569           "sNext":     "Suivant →",
    570           "sLast":     "Dernier"
     567          "sFirst":    "{/literal}{'First'|translate|escape:'javascript'}{literal}",
     568          "sPrevious": '← '+"{/literal}{'Previous'|translate|escape:'javascript'}{literal}",
     569          "sNext":     "{/literal}{'Next'|translate|escape:'javascript'}{literal}"+' →',
     570          "sLast":     "{/literal}{'Last'|translate|escape:'javascript'}{literal}",
    571571      }
    572572    },
     
    993993      <input id="applyAction" class="submit" type="submit" value="{'Apply action'|@translate}" name="submit"> <span id="applyOnDetails"></span>
    994994      <span id="applyActionLoading" style="display:none"><img src="themes/default/images/ajax-loader-small.gif"></span>
    995       <span class="infos" style="display:none">&#x2714; Users modified</span>
     995      <span class="infos" style="display:none">&#x2714; {'Users modified'|translate}</span>
    996996    </p>
    997997
  • trunk/admin/themes/default/theme.css

    r25479 r25502  
    11521152.userPropertiesSetTitle {font-weight:bold;margin-bottom:1em;}
    11531153.userPrefs {border-left:1px solid #ddd;padding-left:10px;}
    1154 .userProperty {width:220px;float:left;margin-bottom:15px;}
     1154.userProperty {width:340px;float:left;margin-bottom:15px;}
    11551155.userActions {float:right;text-align:right;}
    11561156
Note: See TracChangeset for help on using the changeset viewer.