mirror of
https://github.com/HeyPuter/puter
synced 2024-11-15 06:15:47 +00:00
Correct capitalisation of i18n() keys
Found by searching for `i18n\(\'[^\']*[A-Z]+[^\']*\'\)`
This commit is contained in:
parent
92b3f4ff76
commit
c2f73c37c5
@ -1217,7 +1217,7 @@ $(document).on('click', '.user-options-menu-btn', async function(e){
|
||||
message: `<p>${i18n('confirm_open_apps_log_out')}</p>`,
|
||||
buttons:[
|
||||
{
|
||||
label: i18n('close_all_Windows_and_log_out'),
|
||||
label: i18n('close_all_windows_and_log_out'),
|
||||
value: 'close_and_log_out',
|
||||
type: 'primary',
|
||||
},
|
||||
|
@ -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)
|
||||
|
@ -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 += `<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-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>`;
|
||||
}
|
||||
|
||||
|
@ -60,7 +60,7 @@ async function UIWindowFontPicker(options){
|
||||
h += `</div>`;
|
||||
|
||||
// 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 += `</div>`;
|
||||
h += `</div>`;
|
||||
|
@ -41,7 +41,7 @@ async function UIWindowUploadProgress(options){
|
||||
h += `</div>`;
|
||||
|
||||
const el_window = await UIWindow({
|
||||
title: i18n('Upload'),
|
||||
title: i18n('upload'),
|
||||
icon: window.icons[`app-icon-uploader.svg`],
|
||||
uid: null,
|
||||
is_dir: false,
|
||||
|
Loading…
Reference in New Issue
Block a user