Skip to content

Commit 33481b8

Browse files
committed
Updated locales
1 parent a6c6e83 commit 33481b8

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -409,15 +409,15 @@ const dialogFactory = (core, proc, win) => {
409409
}, cb);
410410

411411
const mkdirDialog = (action, currentPath) => dialog('prompt', {
412-
message: 'Create new directory',
413-
value: 'New directory'
412+
message: __('DIALOG_MKDIR_MESSAGE'),
413+
value: __('DIALOG_MKDIR_PLACEHOLDER')
414414
}, usingPositiveButton(value => {
415415
const newPath = pathJoin(currentPath.path, value);
416416
action(() => vfs.mkdir({path: newPath}), value, __('MSG_MKDIR_ERROR'));
417417
}));
418418

419419
const renameDialog = (action, file) => dialog('prompt', {
420-
message: `Rename ${file.filename}`,
420+
message: __('DIALOG_RENAME_MESSAGE', file.filename),
421421
value: file.filename
422422
}, usingPositiveButton(value => {
423423
const idx = file.path.lastIndexOf(file.filename);
@@ -427,7 +427,7 @@ const dialogFactory = (core, proc, win) => {
427427
}));
428428

429429
const deleteDialog = (action, file) => dialog('confirm', {
430-
message: `Delete ${file.filename}`
430+
message: __('DIALOG_DELETE_MESSAGE', file.filename),
431431
}, usingPositiveButton(() => {
432432
action(() => vfs.unlink(file), true, __('MSG_DELETE_ERROR'));
433433
}));

locales.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ export const en_EN = {
66
LBL_STATUS: '{0} directories, {1} files, {2} bytes total',
77
LBL_DATE: 'Date', // FIXME: Move to client
88
LBL_LOADING: 'Loading {0}',
9+
DIALOG_MKDIR_MESSAGE: 'Create new directory',
10+
DIALOG_MKDIR_PLACEHOLDER: 'New directory',
11+
DIALOG_RENAME_MESSAGE: 'Rename {0} ?',
12+
DIALOG_DELETE_MESSAGE: 'Delete {0} ?',
913
MSG_ERROR: 'An error occured',
1014
MSG_UPLOAD_ERROR: 'Failed to upload file(s)',
1115
MSG_READDIR_ERROR: 'An error occured while reading directory: {0}',
@@ -23,6 +27,10 @@ export const nb_NO = {
2327
LBL_STATUS: '{0} mapper, {1} filer, {2} bytes totalt',
2428
LBL_DATE: 'Dato',
2529
LBL_LOADING: 'Laster {0}',
30+
DIALOG_MKDIR_MESSAGE: 'Lag ny mappe',
31+
DIALOG_MKDIR_PLACEHOLDER: 'Ny mappe',
32+
DIALOG_RENAME_MESSAGE: 'Omdøpe {0} ?',
33+
DIALOG_DELETE_MESSAGE: 'Slette {0} ?',
2634
MSG_ERROR: 'En feil oppstod',
2735
MSG_UPLOAD_ERROR: 'Feil under opplasting av fil(er)',
2836
MSG_READDIR_ERROR: 'En feil oppstod under lesing av mappe: {0}',

0 commit comments

Comments
 (0)