Add more English translation keys

This commit is contained in:
Nariman Jelveh 2024-07-05 15:35:16 -07:00
parent c9e2427ad6
commit d0758631ea
9 changed files with 44 additions and 30 deletions

View File

@ -1014,7 +1014,7 @@ async function UIDesktop(options){
$(ht).insertBefore(el_desktop); $(ht).insertBefore(el_desktop);
// notification container // notification container
$('body').append(`<div class="notification-container"><div class="notifications-close-all">Close all</div></div>`); $('body').append(`<div class="notification-container"><div class="notifications-close-all">${i18n('close_all')}</div></div>`);
// adjust window container to take into account the toolbar height // adjust window container to take into account the toolbar height
$('.window-container').css('top', window.toolbar_height); $('.window-container').css('top', window.toolbar_height);

View File

@ -110,7 +110,7 @@ function UIItem(options){
// type // type
h += `<div class="item-attr item-attr--type">`; h += `<div class="item-attr item-attr--type">`;
if(options.is_dir) if(options.is_dir)
h += `<span>Folder</span>`; h += `<span>${i18n('folder')}</span>`;
else else
h += `<span>${options.type ? html_encode(options.type) : '-'}</span>`; h += `<span>${options.type ? html_encode(options.type) : '-'}</span>`;
h += `</div>`; h += `</div>`;

View File

@ -369,7 +369,7 @@ async function UIWindow(options) {
// Add 'This folder is empty' message by default // Add 'This folder is empty' message by default
h += `<div class="explorer-empty-message">This folder is empty</div>`; h += `<div class="explorer-empty-message">This folder is empty</div>`;
h += `<div class="explorer-error-message">Error message is missing</div>`; h += `<div class="explorer-error-message">${i18n('error_message_is_missing')}</div>`;
// Loading spinner // Loading spinner
h += `<div class="explorer-loading-spinner">`; h += `<div class="explorer-loading-spinner">`;
@ -394,11 +394,11 @@ async function UIWindow(options) {
h += `<div class="window-filedialog-prompt">`; h += `<div class="window-filedialog-prompt">`;
h += `<div style="display:flex;">`; h += `<div style="display:flex;">`;
h += `<input type="text" class="savefiledialog-filename" autocorrect="off" spellcheck="false" value="${html_encode(options.saveFileDialog_default_filename) ?? ''}">`; h += `<input type="text" class="savefiledialog-filename" autocorrect="off" spellcheck="false" value="${html_encode(options.saveFileDialog_default_filename) ?? ''}">`;
h += `<button class="button button-small filedialog-cancel-btn">Cancel</button>`; h += `<button class="button button-small filedialog-cancel-btn">${i18n('cancel')}</button>`;
h += `<button class="button `; h += `<button class="button `;
if(options.saveFileDialog_default_filename === undefined || options.saveFileDialog_default_filename === '') if(options.saveFileDialog_default_filename === undefined || options.saveFileDialog_default_filename === '')
h+= `disabled `; h+= `disabled `;
h += `button-small button-primary savefiledialog-save-btn">Save</button>`; h += `button-small button-primary savefiledialog-save-btn">${i18n('save')}</button>`;
h += `</div>`; h += `</div>`;
h += `</div>`; h += `</div>`;
} }
@ -407,8 +407,8 @@ async function UIWindow(options) {
else if(options.is_openFileDialog){ else if(options.is_openFileDialog){
h += `<div class="window-filedialog-prompt">`; h += `<div class="window-filedialog-prompt">`;
h += `<div style="text-align:right;">`; h += `<div style="text-align:right;">`;
h += `<button class="button button-small filedialog-cancel-btn">Cancel</button>`; h += `<button class="button button-small filedialog-cancel-btn">${i18n('cancel')}</button>`;
h += `<button class="button disabled button-small button-primary openfiledialog-open-btn">Open</button>`; h += `<button class="button disabled button-small button-primary openfiledialog-open-btn">${i18n('open')}</button>`;
h += `</div>`; h += `</div>`;
h += `</div>`; h += `</div>`;
} }
@ -417,8 +417,8 @@ async function UIWindow(options) {
else if(options.is_directoryPicker){ else if(options.is_directoryPicker){
h += `<div class="window-filedialog-prompt">`; h += `<div class="window-filedialog-prompt">`;
h += `<div style="text-align:right;">`; h += `<div style="text-align:right;">`;
h += `<button class="button button-small filedialog-cancel-btn">Cancel</button>`; h += `<button class="button button-small filedialog-cancel-btn">${i18n('cancel')}</button>`;
h += `<button class="button button-small button-primary directorypicker-select-btn" style="margin-left:10px;">Select</button>`; h += `<button class="button button-small button-primary directorypicker-select-btn" style="margin-left:10px;">${i18n('select')}</button>`;
h += `</div>`; h += `</div>`;
h += `</div>`; h += `</div>`;
} }
@ -3240,10 +3240,10 @@ window.set_sort_by = function(item_uid, sort_by, sort_order){
window.explore_table_headers = function(){ window.explore_table_headers = function(){
let h = ``; let h = ``;
h += `<div class="explore-table-headers">`; h += `<div class="explore-table-headers">`;
h += `<div class="explore-table-headers-th explore-table-headers-th--name">Name<span class="header-sort-icon"></span></div>`; h += `<div class="explore-table-headers-th explore-table-headers-th--name">${i18n('name')}<span class="header-sort-icon"></span></div>`;
h += `<div class="explore-table-headers-th explore-table-headers-th--modified">Modified<span class="header-sort-icon"></span></div>`; h += `<div class="explore-table-headers-th explore-table-headers-th--modified">${i18n('modified')}<span class="header-sort-icon"></span></div>`;
h += `<div class="explore-table-headers-th explore-table-headers-th--size">Size<span class="header-sort-icon"></span></div>`; h += `<div class="explore-table-headers-th explore-table-headers-th--size">${i18n('size')}<span class="header-sort-icon"></span></div>`;
h += `<div class="explore-table-headers-th explore-table-headers-th--type">Type<span class="header-sort-icon"></span></div>`; h += `<div class="explore-table-headers-th explore-table-headers-th--type">${i18n('type')}<span class="header-sort-icon"></span></div>`;
h += `</div>`; h += `</div>`;
return h; return h;
} }

View File

@ -32,7 +32,7 @@ function UIWindowEmailConfirmationRequired(options){
h += `<div class="qr-code-window-close-btn generic-close-window-button"> &times; </div>`; h += `<div class="qr-code-window-close-btn generic-close-window-button"> &times; </div>`;
h += `<div style="-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; color: #3e5362;">`; h += `<div style="-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; color: #3e5362;">`;
h += `<img src="${html_encode(window.icons['mail.svg'])}" style="display:block; margin:10px auto 10px;">`; h += `<img src="${html_encode(window.icons['mail.svg'])}" style="display:block; margin:10px auto 10px;">`;
h += `<h3 style="text-align:center; font-weight: 500; font-size: 20px;">Confirm Your Email Address</h3>`; h += `<h3 style="text-align:center; font-weight: 500; font-size: 20px;">${i18n('confirm_your_email_address')}</h3>`;
h += `<form>`; h += `<form>`;
h += `<p style="text-align:center; padding: 0 20px;">To continue, please enter the 6-digit confirmation code sent to <strong style="font-weight: 500;">${window.user.email}</strong></p>`; h += `<p style="text-align:center; padding: 0 20px;">To continue, please enter the 6-digit confirmation code sent to <strong style="font-weight: 500;">${window.user.email}</strong></p>`;
h += `<div class="error"></div>`; h += `<div class="error"></div>`;

View File

@ -31,18 +31,18 @@ async function UIWindowItemProperties(item_name, item_path, item_uid, left, top,
h+= `<div class="item-props-tab-content item-props-tab-content-selected" data-tab="general" style="border-top-left-radius:0;">`; h+= `<div class="item-props-tab-content item-props-tab-content-selected" data-tab="general" style="border-top-left-radius:0;">`;
h += `<table class="item-props-tbl">`; h += `<table class="item-props-tbl">`;
h += `<tr><td class="item-prop-label">Name</td><td class="item-prop-val item-prop-val-name"></td></tr>`; h += `<tr><td class="item-prop-label">${i18n('name')}</td><td class="item-prop-val item-prop-val-name"></td></tr>`;
h += `<tr><td class="item-prop-label">Path</td><td class="item-prop-val item-prop-val-path"></td></tr>`; h += `<tr><td class="item-prop-label">${i18n('path')}</td><td class="item-prop-val item-prop-val-path"></td></tr>`;
h += `<tr class="item-prop-original-name"><td class="item-prop-label">Original Name</td><td class="item-prop-val item-prop-val-original-name"></td></tr>`; h += `<tr class="item-prop-original-name"><td class="item-prop-label">${i18n('original_name')}</td><td class="item-prop-val item-prop-val-original-name"></td></tr>`;
h += `<tr class="item-prop-original-path"><td class="item-prop-label">Original Path</td><td class="item-prop-val item-prop-val-original-path"></td></tr>`; h += `<tr class="item-prop-original-path"><td class="item-prop-label">${i18n('original_path')}</td><td class="item-prop-val item-prop-val-original-path"></td></tr>`;
h += `<tr><td class="item-prop-label">Shortcut to</td><td class="item-prop-val item-prop-val-shortcut-to"></td></tr>`; h += `<tr><td class="item-prop-label">${i18n('shortcut_to')}</td><td class="item-prop-val item-prop-val-shortcut-to"></td></tr>`;
h += `<tr><td class="item-prop-label">UID</td><td class="item-prop-val item-prop-val-uid"></td></tr>`; h += `<tr><td class="item-prop-label">UID</td><td class="item-prop-val item-prop-val-uid"></td></tr>`;
h += `<tr><td class="item-prop-label">Type</td><td class="item-prop-val item-prop-val-type"></td></tr>`; h += `<tr><td class="item-prop-label">${i18n('type')}</td><td class="item-prop-val item-prop-val-type"></td></tr>`;
h += `<tr><td class="item-prop-label">Size</td><td class="item-prop-val item-prop-val-size"></td></tr>`; h += `<tr><td class="item-prop-label">${i18n('size')}</td><td class="item-prop-val item-prop-val-size"></td></tr>`;
h += `<tr><td class="item-prop-label">Modified</td><td class="item-prop-val item-prop-val-modified"></td></tr>`; h += `<tr><td class="item-prop-label">${i18n('modified')}</td><td class="item-prop-val item-prop-val-modified"></td></tr>`;
h += `<tr><td class="item-prop-label">Created</td><td class="item-prop-val item-prop-val-created"></td></tr>`; h += `<tr><td class="item-prop-label">${i18n('created')}</td><td class="item-prop-val item-prop-val-created"></td></tr>`;
h += `<tr><td class="item-prop-label">Versions</td><td class="item-prop-val item-prop-val-versions"></td></tr>`; h += `<tr><td class="item-prop-label">${i18n('versions')}</td><td class="item-prop-val item-prop-val-versions"></td></tr>`;
h += `<tr><td class="item-prop-label">Associated Websites</td><td class="item-prop-val item-prop-val-websites">`; h += `<tr><td class="item-prop-label">${i18n('associated_websites')}</td><td class="item-prop-val item-prop-val-websites">`;
h += `</td></tr>`; h += `</td></tr>`;
h += `<tr><td class="item-prop-label">${i18n('access_granted_to')}</td><td class="item-prop-val item-prop-val-permissions"></td></tr>`; h += `<tr><td class="item-prop-label">${i18n('access_granted_to')}</td><td class="item-prop-val item-prop-val-permissions"></td></tr>`;
h += `</table>`; h += `</table>`;

View File

@ -28,7 +28,7 @@ async function UIWindowPublishWebsite(target_dir_uid, target_dir_name, target_di
h += `<img src="${html_encode(window.icons['c-check.svg'])}" style="width:80px; height:80px; display: block; margin:10px auto;">`; h += `<img src="${html_encode(window.icons['c-check.svg'])}" style="width:80px; height:80px; display: block; margin:10px auto;">`;
h += `<p style="text-align:center;">${i18n('dir_published_as_website', `<strong>${html_encode(target_dir_name)}</strong>`, false)}<p>`; h += `<p style="text-align:center;">${i18n('dir_published_as_website', `<strong>${html_encode(target_dir_name)}</strong>`, false)}<p>`;
h += `<p style="text-align:center;"><a class="publishWebsite-published-link" target="_blank"></a><img class="publishWebsite-published-link-icon" src="${html_encode(window.icons['launch.svg'])}"></p>`; h += `<p style="text-align:center;"><a class="publishWebsite-published-link" target="_blank"></a><img class="publishWebsite-published-link-icon" src="${html_encode(window.icons['launch.svg'])}"></p>`;
h += `<button class="button button-normal button-block button-primary publish-window-ok-btn" style="margin-top:20px;">OK</button>`; h += `<button class="button button-normal button-block button-primary publish-window-ok-btn" style="margin-top:20px;">${i18n('ok')}</button>`;
h+= `</div>`; h+= `</div>`;
// form // form
h += `<form class="window-publishWebsite-form">`; h += `<form class="window-publishWebsite-form">`;

View File

@ -65,8 +65,8 @@ async function UIWindowRequestPermission(options){
// todo show the real description of action // todo show the real description of action
h += `<p class="perm-description">${html_encode(driver.description)}</p>`; h += `<p class="perm-description">${html_encode(driver.description)}</p>`;
// Allow/Don't Allow // Allow/Don't Allow
h += `<button type="button" class="app-auth-allow button button-primary button-block" style="margin-top: 10px;">Allow</button>`; h += `<button type="button" class="app-auth-allow button button-primary button-block" style="margin-top: 10px;">${i18n('allow')}</button>`;
h += `<button type="button" class="app-auth-dont-allow button button-default button-block" style="margin-top: 10px;">Don't Allow</button>`; h += `<button type="button" class="app-auth-dont-allow button button-default button-block" style="margin-top: 10px;">${i18n('dont_allow')}</button>`;
h += `</div>`; h += `</div>`;
h += `</div>`; h += `</div>`;

View File

@ -58,12 +58,12 @@ async function UIWindowShare(items, recipient){
h += `<div class="error"></div>`; h += `<div class="error"></div>`;
// Username/email // Username/email
h += `<div style="overflow: hidden;">`; h += `<div style="overflow: hidden;">`;
h += `<label style="font-size: 16px; font-weight: 600;">Share with:</label>`; h += `<label style="font-size: 16px; font-weight: 600;">${i18n('share_with')}</label>`;
h += `<div style="display: flex;">`; h += `<div style="display: flex;">`;
// Username/email // Username/email
h += `<input placeholder="username" class="access-recipient" value="${html_encode(recipient ?? '')}" style="border-right: none; margin-bottom: 10px; border-top-right-radius: 0; border-bottom-right-radius: 0;" type="text" autocomplete="recipient_email_username" spellcheck="false" autocorrect="off" autocapitalize="off" data-gramm_editor="false"/>`; h += `<input placeholder="username" class="access-recipient" value="${html_encode(recipient ?? '')}" style="border-right: none; margin-bottom: 10px; border-top-right-radius: 0; border-bottom-right-radius: 0;" type="text" autocomplete="recipient_email_username" spellcheck="false" autocorrect="off" autocapitalize="off" data-gramm_editor="false"/>`;
// Share // Share
h += `<button class="give-access-btn button button-primary button-normal" style="border-top-left-radius: 0; border-bottom-left-radius: 0;" ${!recipient ? 'disabled' : ''}>Share</button>` h += `<button class="give-access-btn button button-primary button-normal" style="border-top-left-radius: 0; border-bottom-left-radius: 0;" ${!recipient ? 'disabled' : ''}>${i18n('share')}</button>`
h += `</div>`; h += `</div>`;
h += `</div>`; h += `</div>`;
h += `</form>`; h += `</form>`;

View File

@ -27,8 +27,10 @@ const en = {
access_granted_to: "Access Granted To", access_granted_to: "Access Granted To",
add_existing_account: "Add Existing Account", add_existing_account: "Add Existing Account",
all_fields_required: 'All fields are required.', all_fields_required: 'All fields are required.',
allow: 'Allow',
apply: "Apply", apply: "Apply",
ascending: 'Ascending', ascending: 'Ascending',
associated_websites: "Associated Websites",
auto_arrange: 'Auto Arrange', auto_arrange: 'Auto Arrange',
background: "Background", background: "Background",
browse: "Browse", browse: "Browse",
@ -64,6 +66,7 @@ const en = {
confirm_delete_user: "Are you sure you want to delete your account? All your files and data will be permanently deleted. This action cannot be undone.", confirm_delete_user: "Are you sure you want to delete your account? All your files and data will be permanently deleted. This action cannot be undone.",
confirm_delete_user_title: "Delete Account?", confirm_delete_user_title: "Delete Account?",
confirm_session_revoke: "Are you sure you want to revoke this session?", confirm_session_revoke: "Are you sure you want to revoke this session?",
confirm_your_email_address: "Confirm Your Email Address",
contact_us: "Contact Us", contact_us: "Contact Us",
contact_us_verification_required: "You must have a verified email address to to use this.", contact_us_verification_required: "You must have a verified email address to to use this.",
contain: 'Contain', contain: 'Contain',
@ -83,6 +86,8 @@ const en = {
clock_visible_hide: 'Hide - Always hidden', clock_visible_hide: 'Hide - Always hidden',
clock_visible_show: 'Show - Always visible', clock_visible_show: 'Show - Always visible',
clock_visible_auto: 'Auto - Default, visible only in full-screen mode.', clock_visible_auto: 'Auto - Default, visible only in full-screen mode.',
close_all: 'Close All',
created: 'Created',
date_modified: 'Date modified', date_modified: 'Date modified',
default: 'Default', default: 'Default',
delete: 'Delete', delete: 'Delete',
@ -100,6 +105,7 @@ const en = {
disable_2fa_instructions: "Enter your password to disable 2FA.", disable_2fa_instructions: "Enter your password to disable 2FA.",
disassociate_dir: "Disassociate Directory", disassociate_dir: "Disassociate Directory",
documents: 'Documents', documents: 'Documents',
dont_allow: 'Don\'t Allow',
download: 'Download', download: 'Download',
download_file: 'Download File', download_file: 'Download File',
downloading: "Downloading", downloading: "Downloading",
@ -117,6 +123,7 @@ const en = {
end_soft: "End Soft", end_soft: "End Soft",
enlarged_qr_code: "Enlarged QR Code", enlarged_qr_code: "Enlarged QR Code",
enter_password_to_confirm_delete_user: "Enter your password to confirm account deletion", enter_password_to_confirm_delete_user: "Enter your password to confirm account deletion",
error_message_is_missing: "Error message is missing.",
error_unknown_cause: "An unknown error occurred.", error_unknown_cause: "An unknown error occurred.",
error_uploading_files: "Failed to upload files", error_uploading_files: "Failed to upload files",
favorites: "Favorites", favorites: "Favorites",
@ -124,6 +131,7 @@ const en = {
feedback_c2a: "Please use the form below to send us your feedback, comments, and bug reports.", feedback_c2a: "Please use the form below to send us your feedback, comments, and bug reports.",
feedback_sent_confirmation: "Thank you for contacting us. If you have an email associated with your account, you will hear back from us as soon as possible.", feedback_sent_confirmation: "Thank you for contacting us. If you have an email associated with your account, you will hear back from us as soon as possible.",
fit: "Fit", fit: "Fit",
folder: 'Folder',
force_quit: 'Force Quit', force_quit: 'Force Quit',
forgot_pass_c2a: "Forgot password?", forgot_pass_c2a: "Forgot password?",
from: "From", from: "From",
@ -155,6 +163,7 @@ const en = {
menubar_style_desktop: "Desktop", menubar_style_desktop: "Desktop",
menubar_style_system: "System", menubar_style_system: "System",
menubar_style_window: "Window", menubar_style_window: "Window",
modified: 'Modified',
move: 'Move', move: 'Move',
moving_file: "Moving %%", moving_file: "Moving %%",
my_websites: "My Websites", my_websites: "My Websites",
@ -178,6 +187,8 @@ const en = {
open_in_new_tab: "Open in New Tab", open_in_new_tab: "Open in New Tab",
open_in_new_window: "Open in New Window", open_in_new_window: "Open in New Window",
open_with: "Open With", open_with: "Open With",
original_name: 'Original Name',
original_path: 'Original Path',
oss_code_and_content: "Open Source Software and Content", oss_code_and_content: "Open Source Software and Content",
password: "Password", password: "Password",
password_changed: "Password changed.", password_changed: "Password changed.",
@ -249,7 +260,10 @@ const en = {
session_saved: "Thank you for creating an account. This session has been saved.", session_saved: "Thank you for creating an account. This session has been saved.",
settings: "Settings", settings: "Settings",
set_new_password: "Set New Password", set_new_password: "Set New Password",
share: "Share",
share_to: "Share to", share_to: "Share to",
share_with: "Share with:",
shortcut_to: "Shortcut to",
show_all_windows: "Show All Windows", show_all_windows: "Show All Windows",
show_hidden: 'Show hidden', show_hidden: 'Show hidden',
sign_in_with_puter: "Sign in with Puter", sign_in_with_puter: "Sign in with Puter",