From c2f73c37c5645414aed807a0b0bfd93b4bb19f85 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Mon, 1 Apr 2024 11:26:07 +0100 Subject: [PATCH] Correct capitalisation of i18n() keys Found by searching for `i18n\(\'[^\']*[A-Z]+[^\']*\'\)` --- src/UI/UIDesktop.js | 2 +- src/UI/UIItem.js | 6 +++--- src/UI/UIPrompt.js | 4 ++-- src/UI/UIWindowFontPicker.js | 2 +- src/UI/UIWindowUploadProgress.js | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/UI/UIDesktop.js b/src/UI/UIDesktop.js index a351cc0e..1a2da3a0 100644 --- a/src/UI/UIDesktop.js +++ b/src/UI/UIDesktop.js @@ -1217,7 +1217,7 @@ $(document).on('click', '.user-options-menu-btn', async function(e){ message: `

${i18n('confirm_open_apps_log_out')}

`, buttons:[ { - label: i18n('close_all_Windows_and_log_out'), + label: i18n('close_all_windows_and_log_out'), value: 'close_and_log_out', type: 'primary', }, diff --git a/src/UI/UIItem.js b/src/UI/UIItem.js index 01219ec6..ec6bd932 100644 --- a/src/UI/UIItem.js +++ b/src/UI/UIItem.js @@ -783,7 +783,7 @@ function UIItem(options){ // Donwload // ------------------------------------------- menu_items.push({ - html: i18n('Download'), + html: i18n('download'), onClick: async function(){ let items = []; 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)){ menu_items.push({ - html: i18n('Download'), + html: i18n('download'), disabled: options.is_dir && !window.feature_flags.download_directory, onClick: async function(){ if(options.is_dir) diff --git a/src/UI/UIPrompt.js b/src/UI/UIPrompt.js index f30f43a8..7d48f72c 100644 --- a/src/UI/UIPrompt.js +++ b/src/UI/UIPrompt.js @@ -38,7 +38,7 @@ function UIPrompt(options){ if(!options.buttons || options.buttons.length === 0){ options.buttons = [ {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){ h += `
`; h += ``; - h += ``; + h += ``; h += `
`; } diff --git a/src/UI/UIWindowFontPicker.js b/src/UI/UIWindowFontPicker.js index f4208b14..517e8152 100644 --- a/src/UI/UIWindowFontPicker.js +++ b/src/UI/UIWindowFontPicker.js @@ -60,7 +60,7 @@ async function UIWindowFontPicker(options){ h += ``; // Select - h += `` + h += `` h += ``; h += ``; h += ``; diff --git a/src/UI/UIWindowUploadProgress.js b/src/UI/UIWindowUploadProgress.js index e436fc74..23c5d5ec 100644 --- a/src/UI/UIWindowUploadProgress.js +++ b/src/UI/UIWindowUploadProgress.js @@ -41,7 +41,7 @@ async function UIWindowUploadProgress(options){ h += ``; const el_window = await UIWindow({ - title: i18n('Upload'), + title: i18n('upload'), icon: window.icons[`app-icon-uploader.svg`], uid: null, is_dir: false,