Skip to content

Commit

Permalink
Improved dialog messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmeese7 authored and andersevenrud committed Feb 2, 2025
1 parent 5708b60 commit ccbfc96
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ const vfsActionFactory = (core, proc, win, dialog, state) => {
.catch(error => dialog('error', error, __('MSG_UPLOAD_ERROR')));
});

const paste = (move, currentPath) => ({item, callback}) => {
const paste = (move, currentPath) => ({items, callback}) => {
const promises = items.map(item => {
const dest = {
path: pathJoin(currentPath.path, item.filename)
Expand Down Expand Up @@ -468,7 +468,7 @@ const dialogFactory = (core, proc, win) => {
})));

const deleteDialog = (action, files) => dialog('confirm', {
message: __('DIALOG_DELETE_MESSAGE', file.filename),
message: __('DIALOG_DELETE_MESSAGE', files.length),
}, usingPositiveButton(() => {
action(
() => Promise.all(
Expand Down
26 changes: 13 additions & 13 deletions locales.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export const en_EN = {
LBL_LOADING: 'Loading {0}',
DIALOG_MKDIR_MESSAGE: 'Create new directory',
DIALOG_MKDIR_PLACEHOLDER: 'New directory',
DIALOG_RENAME_MESSAGE: 'Rename {0} ?',
DIALOG_DELETE_MESSAGE: 'Delete {0} ?',
DIALOG_RENAME_MESSAGE: 'Rename {0}?',
DIALOG_DELETE_MESSAGE: 'Delete {0} file(s)?',
DIALOG_PROGRESS_MESSAGE: 'Uploading {0}...',
MSG_ERROR: 'An error occurred',
MSG_UPLOAD_ERROR: 'Failed to upload file(s)',
Expand All @@ -40,8 +40,8 @@ export const sv_SE = {
LBL_LOADING: 'Laddar {0}',
DIALOG_MKDIR_MESSAGE: 'Skapa ny katalog',
DIALOG_MKDIR_PLACEHOLDER: 'Ny katalog',
DIALOG_RENAME_MESSAGE: 'Döp om {0} ?',
DIALOG_DELETE_MESSAGE: 'Radera {0} ?',
DIALOG_RENAME_MESSAGE: 'Döp om {0}?',
DIALOG_DELETE_MESSAGE: 'Radera {0} fil(er)?',
MSG_ERROR: 'Ett fel uppstod',
MSG_UPLOAD_ERROR: 'Det gick inte att ladda upp filer(na)',
MSG_READDIR_ERROR: 'Ett fel uppstod när katalogen lästes: {0}',
Expand All @@ -66,8 +66,8 @@ export const nb_NO = {
LBL_LOADING: 'Laster {0}',
DIALOG_MKDIR_MESSAGE: 'Lag ny mappe',
DIALOG_MKDIR_PLACEHOLDER: 'Ny mappe',
DIALOG_RENAME_MESSAGE: 'Omdøpe {0} ?',
DIALOG_DELETE_MESSAGE: 'Slette {0} ?',
DIALOG_RENAME_MESSAGE: 'Omdøpe {0}?',
DIALOG_DELETE_MESSAGE: 'Slette {0} fil(er)?',
MSG_ERROR: 'En feil oppstod',
MSG_UPLOAD_ERROR: 'Feil under opplasting av fil(er)',
MSG_READDIR_ERROR: 'En feil oppstod under lesing av mappe: {0}',
Expand All @@ -92,8 +92,8 @@ export const vi_VN = {
LBL_LOADING: 'Đang tải {0}',
DIALOG_MKDIR_MESSAGE: 'Tạo thư mục mới',
DIALOG_MKDIR_PLACEHOLDER: 'Thư mục mới',
DIALOG_RENAME_MESSAGE: 'Đổi tên {0} ?',
DIALOG_DELETE_MESSAGE: 'Xoá {0} ?',
DIALOG_RENAME_MESSAGE: 'Đổi tên {0}?',
DIALOG_DELETE_MESSAGE: 'Xoá {0} (các) tập tin?',
MSG_ERROR: 'Đã xảy ra lỗi',
MSG_UPLOAD_ERROR: 'Không thể tải lên tập tin',
MSG_READDIR_ERROR: 'Đã xảy ra lỗi trong khi đọc thư mục: {0}',
Expand All @@ -118,8 +118,8 @@ export const pt_BR = {
LBL_LOADING: 'Carregando {0}',
DIALOG_MKDIR_MESSAGE: 'Criar novo diretório',
DIALOG_MKDIR_PLACEHOLDER: 'Novo diretório',
DIALOG_RENAME_MESSAGE: 'Renomear {0} ?',
DIALOG_DELETE_MESSAGE: 'Deletar {0} ?',
DIALOG_RENAME_MESSAGE: 'Renomear {0}?',
DIALOG_DELETE_MESSAGE: 'Deletar {0} arquivo(s)?',
MSG_ERROR: 'Um erro ocorreu',
MSG_UPLOAD_ERROR: 'Falha ao fazer upload do(s) arquivo(s)',
MSG_READDIR_ERROR: 'Um erro ocorreu ao ler o diretório: {0}',
Expand All @@ -144,8 +144,8 @@ export const fr_FR = {
LBL_LOADING: 'Chargement en cours {0}',
DIALOG_MKDIR_MESSAGE: 'Créer nouveau dossier',
DIALOG_MKDIR_PLACEHOLDER: 'Nouveau dossier',
DIALOG_RENAME_MESSAGE: 'Renommer {0} ?',
DIALOG_DELETE_MESSAGE: 'Supprimer {0} ?',
DIALOG_RENAME_MESSAGE: 'Renommer {0}?',
DIALOG_DELETE_MESSAGE: 'Supprimer {0} (des) dossiers?',
MSG_ERROR: 'Une erreur est survenue',
MSG_UPLOAD_ERROR: 'Echec du chargement du(des) fichier(s)',
MSG_READDIR_ERROR: 'Une erreur est survenue lors de la lecture du répertoire : {0}',
Expand All @@ -171,7 +171,7 @@ export const tr_TR = {
DIALOG_MKDIR_MESSAGE: 'Yeni dizin oluştur',
DIALOG_MKDIR_PLACEHOLDER: 'Yeni dizin',
DIALOG_RENAME_MESSAGE: '{0} ismi değişsin mi?',
DIALOG_DELETE_MESSAGE: '{0} silinsin mi?',
DIALOG_DELETE_MESSAGE: '{0} dosya(lar) silinsin mi?',
MSG_ERROR: 'Bir hata oldu',
MSG_UPLOAD_ERROR: 'Dosya(lar)ın yüklenmesi işlemi başarısız',
MSG_READDIR_ERROR: 'Belirtilen dizin okunurken bir hata oluştu: {0}',
Expand Down

0 comments on commit ccbfc96

Please sign in to comment.