浏览代码

Correct capitalisation of i18n() keys

Found by searching for `i18n\(\'[^\']*[A-Z]+[^\']*\'\)`
Sam Atkins 1 年之前
父节点
当前提交
c2f73c37c5
共有 5 个文件被更改,包括 8 次插入8 次删除
  1. 1 1
      src/UI/UIDesktop.js
  2. 3 3
      src/UI/UIItem.js
  3. 2 2
      src/UI/UIPrompt.js
  4. 1 1
      src/UI/UIWindowFontPicker.js
  5. 1 1
      src/UI/UIWindowUploadProgress.js

+ 1 - 1
src/UI/UIDesktop.js

@@ -1217,7 +1217,7 @@ $(document).on('click', '.user-options-menu-btn', async function(e){
                             message: `<p>${i18n('confirm_open_apps_log_out')}</p>`,
                             message: `<p>${i18n('confirm_open_apps_log_out')}</p>`,
                             buttons:[
                             buttons:[
                                 {
                                 {
-                                    label: i18n('close_all_Windows_and_log_out'),
+                                    label: i18n('close_all_windows_and_log_out'),
                                     value: 'close_and_log_out',
                                     value: 'close_and_log_out',
                                     type: 'primary',
                                     type: 'primary',
                                 },
                                 },

+ 3 - 3
src/UI/UIItem.js

@@ -783,7 +783,7 @@ function UIItem(options){
                 // Donwload
                 // Donwload
                 // -------------------------------------------
                 // -------------------------------------------
                 menu_items.push({
                 menu_items.push({
-                    html: i18n('Download'),
+                    html: i18n('download'),
                     onClick: async function(){
                     onClick: async function(){
                         let items = [];
                         let items = [];
                         for (let index = 0; index < $selected_items.length; index++) {
                         for (let index = 0; index < $selected_items.length; index++) {
@@ -1113,11 +1113,11 @@ function UIItem(options){
                 });
                 });
             }
             }
             // -------------------------------------------
             // -------------------------------------------
-            // Donwload
+            // Download
             // -------------------------------------------
             // -------------------------------------------
             if(!is_trash && !is_trashed && (options.associated_app_name === null || options.associated_app_name === undefined)){
             if(!is_trash && !is_trashed && (options.associated_app_name === null || options.associated_app_name === undefined)){
                 menu_items.push({
                 menu_items.push({
-                    html: i18n('Download'),
+                    html: i18n('download'),
                     disabled: options.is_dir && !window.feature_flags.download_directory,
                     disabled: options.is_dir && !window.feature_flags.download_directory,
                     onClick: async function(){
                     onClick: async function(){
                         if(options.is_dir)
                         if(options.is_dir)

+ 2 - 2
src/UI/UIPrompt.js

@@ -38,7 +38,7 @@ function UIPrompt(options){
         if(!options.buttons || options.buttons.length === 0){
         if(!options.buttons || options.buttons.length === 0){
             options.buttons = [
             options.buttons = [
                 {label: i18n('cancel'), value: false, type: 'default'},
                 {label: i18n('cancel'), value: false, type: 'default'},
-                {label: i18n('OK'), value: true, type: 'primary'},
+                {label: i18n('ok'), value: true, type: 'primary'},
             ]
             ]
         }
         }
 
 
@@ -53,7 +53,7 @@ function UIPrompt(options){
         if(options.buttons && options.buttons.length > 0){
         if(options.buttons && options.buttons.length > 0){
             h += `<div style="overflow:hidden; margin-top:20px; float:right;">`;
             h += `<div style="overflow:hidden; margin-top:20px; float:right;">`;
                 h += `<button class="button button-default prompt-resp-button prompt-resp-btn-cancel" data-label="${i18n('cancel')}" style="padding: 0 20px;">${i18n('cancel')}</button>`;
                 h += `<button class="button button-default prompt-resp-button prompt-resp-btn-cancel" data-label="${i18n('cancel')}" style="padding: 0 20px;">${i18n('cancel')}</button>`;
-                h += `<button class="button button-primary prompt-resp-button prompt-resp-btn-ok" data-label="${i18n('OK')}" data-value="true" autofocus>${i18n('OK')}</button>`;
+                h += `<button class="button button-primary prompt-resp-button prompt-resp-btn-ok" data-label="${i18n('ok')}" data-value="true" autofocus>${i18n('ok')}</button>`;
             h += `</div>`;
             h += `</div>`;
         }
         }
 
 

+ 1 - 1
src/UI/UIWindowFontPicker.js

@@ -60,7 +60,7 @@ async function UIWindowFontPicker(options){
                     h += `</div>`;
                     h += `</div>`;
 
 
                     // Select
                     // Select
-                    h += `<button class="select-btn button button-primary button-block button-normal">${i18n('Select')}</button>`
+                    h += `<button class="select-btn button button-primary button-block button-normal">${i18n('select')}</button>`
                 h += `</form>`;
                 h += `</form>`;
             h += `</div>`;
             h += `</div>`;
         h += `</div>`;
         h += `</div>`;

+ 1 - 1
src/UI/UIWindowUploadProgress.js

@@ -41,7 +41,7 @@ async function UIWindowUploadProgress(options){
     h += `</div>`;
     h += `</div>`;
 
 
     const el_window = await UIWindow({
     const el_window = await UIWindow({
-        title: i18n('Upload'),
+        title: i18n('upload'),
         icon: window.icons[`app-icon-uploader.svg`],
         icon: window.icons[`app-icon-uploader.svg`],
         uid: null,
         uid: null,
         is_dir: false,
         is_dir: false,