remove-files: missing locale string

This commit is contained in:
jean-emmanuel 2019-04-02 14:49:29 +02:00
parent cbfc922a41
commit 19bb3672b2
4 changed files with 4 additions and 1 deletions

View file

@ -37,6 +37,7 @@ module.exports = {
// remote save
remotesave_open: 'Open (on the server)',
remotesave_save: 'Save (on the server)',
remotesave_overwrite: 'This file already exists, do you want to overwrite it ?',
remotesave_fail: 'The file could not be saved on the server, use "export" instead',
remotesave_success: 'File saved successfully',
remotesave_forbidden: 'You\'re note allowed to save on server, use "export instead"',

View file

@ -36,6 +36,7 @@ module.exports = {
// remote save
remotesave_open: 'Ouvrir (sur le serveur)',
remotesave_save: 'Enregistrer (sur le serveur)',
remotesave_overwrite: 'Un fichier du même nom éxiste déjà, voulez le remplacer ?',
remotesave_fail: 'Le fichier n\'a pas pu être enregistré sur le serveur, utilisez la fonction "exporter"',
remotesave_success: 'Le fichier a été enregistré avec succès',
remotesave_forbidden: 'Vous n\'êtes pas autorisé à sauvegarder sur le serveur, utilisez la fonction "exporter"',

View file

@ -36,6 +36,7 @@ module.exports = { // @https://github.com/suhr
// remote save
remotesave_open: 'Open (on the server)',
remotesave_save: 'Save (on the server)',
remotesave_overwrite: 'This file already exists, do you want to overwrite it ?',
remotesave_fail: 'The file could not be saved on the server, use "export" instead',
remotesave_success: 'File saved successfully',
remotesave_forbidden: 'You\'re note allowed to save on server, use "export instead"',

View file

@ -211,7 +211,7 @@ module.exports = {
} else {
if (save) {
if (files.some(x=>x.name===saveInput.value)) {
if (!confirm('Overwrite ?')) return
if (!confirm(locales('remotesave_overwrite'))) return
}
callback([path, saveInput.value])
popup.close()