From d54262c8df275b0483fc9a1c9462856ce4330906 Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 9 Feb 2017 15:34:14 +0100 Subject: [PATCH] Use the same disconnecter error translation key for all the apps --- customize.dist/translations/messages.de.js | 2 -- customize.dist/translations/messages.es.js | 2 -- customize.dist/translations/messages.fr.js | 2 -- customize.dist/translations/messages.js | 2 -- customize.dist/translations/messages.pl.js | 2 -- customize.dist/translations/messages.pt-br.js | 2 -- www/code/main.js | 4 ++-- www/pad/main.js | 4 ++-- www/slide/main.js | 4 ++-- 9 files changed, 6 insertions(+), 18 deletions(-) diff --git a/customize.dist/translations/messages.de.js b/customize.dist/translations/messages.de.js index 8b1139836..5915b4684 100644 --- a/customize.dist/translations/messages.de.js +++ b/customize.dist/translations/messages.de.js @@ -103,8 +103,6 @@ out.notifyRenamed = "{0} heißt nun {1}"; out.notifyLeft = "{0} hat die gemeinsame Sitzung verlassen"; - out.disconnectAlert = 'Netzwerkverbindung verloren!'; - out.tryIt = 'Probier\'s aus!'; out.recentPads = 'Deine letzten Pads (diese Liste ist nur in deinem Browser gespeichert))'; diff --git a/customize.dist/translations/messages.es.js b/customize.dist/translations/messages.es.js index e6f8460bb..be6f87b29 100644 --- a/customize.dist/translations/messages.es.js +++ b/customize.dist/translations/messages.es.js @@ -100,8 +100,6 @@ define(function () { out.notifyRenamed = "{0} ahora se conoce como {1}"; out.notifyLeft = "{0} ha dejado la sesión de colaboración"; - out.disconnectAlert = '¡Conexión a la red perdida!'; - out.tryIt = '¡PROBARLO!'; out.recentPads = 'Tus documentos recientes (almacenadas solo en el navegador)'; diff --git a/customize.dist/translations/messages.fr.js b/customize.dist/translations/messages.fr.js index 1bc60132e..cdd927e7f 100644 --- a/customize.dist/translations/messages.fr.js +++ b/customize.dist/translations/messages.fr.js @@ -118,8 +118,6 @@ define(function () { out.notifyRenamed = "{0} a changé son nom en {1}"; out.notifyLeft = "{0} a quitté la session collaborative"; - out.disconnectAlert = 'Perte de la connexion au réseau !'; - out.okButton = 'OK (Entrée)'; out.cancel = "Annuler"; diff --git a/customize.dist/translations/messages.js b/customize.dist/translations/messages.js index ee09575e7..ee121edb3 100644 --- a/customize.dist/translations/messages.js +++ b/customize.dist/translations/messages.js @@ -122,8 +122,6 @@ define(function () { out.notifyRenamed = "{0} is now known as {1}"; out.notifyLeft = "{0} has left the collaborative session"; - out.disconnectAlert = 'Network connection lost!'; - out.okButton = 'OK (enter)'; out.cancel = "Cancel"; diff --git a/customize.dist/translations/messages.pl.js b/customize.dist/translations/messages.pl.js index 65e0c2abf..de4a20a38 100644 --- a/customize.dist/translations/messages.pl.js +++ b/customize.dist/translations/messages.pl.js @@ -102,8 +102,6 @@ define(function () { out.notifyRenamed = "{0} jest teraz znany jako {1}"; out.notifyLeft = "{0} opuścił sesję współpracy"; - out.disconnectAlert = 'Utracono połączenie sieciowe!'; - out.tryIt = 'Wypróbuj!'; out.recentPads = 'Ostatnio otwarte dokumenty (przechowywane jedynie w twojej przeglądarce)'; diff --git a/customize.dist/translations/messages.pt-br.js b/customize.dist/translations/messages.pt-br.js index a2aaec567..ba737b62f 100644 --- a/customize.dist/translations/messages.pt-br.js +++ b/customize.dist/translations/messages.pt-br.js @@ -110,8 +110,6 @@ define(function () { out.notifyRenamed = "{0} agora é conhecido como {1}"; out.notifyLeft = "{0} deixou essa sessão colaborativa"; - out.disconnectAlert = 'Conexão de rede perdida!'; - out.tryIt = 'Experimente!'; out.recentPads = 'Seu bloco de nota recente (armazenado em seu navegador)'; diff --git a/www/code/main.js b/www/code/main.js index ba1208a2d..92c63560c 100644 --- a/www/code/main.js +++ b/www/code/main.js @@ -699,7 +699,7 @@ define([ // inform of network disconnect setEditable(false); toolbar.failed(); - Cryptpad.alert(Messages.disconnectAlert); + Cryptpad.alert(Messages.common_connectionLost); }; var onConnectionChange = config.onConnectionChange = function (info) { @@ -710,7 +710,7 @@ define([ toolbar.reconnecting(info.myId); Cryptpad.findOKButton().click(); } else { - Cryptpad.alert(Messages.disconnectAlert); + Cryptpad.alert(Messages.common_connectionLost); } }; diff --git a/www/pad/main.js b/www/pad/main.js index 34a587afa..4ad0c207e 100644 --- a/www/pad/main.js +++ b/www/pad/main.js @@ -739,7 +739,7 @@ define([ setEditable(false); // TODO inform them that the session was torn down toolbar.failed(); - Cryptpad.alert(Messages.disconnectAlert); + Cryptpad.alert(Messages.common_connectionLost); }; var onConnectionChange = realtimeOptions.onConnectionChange = function (info) { @@ -750,7 +750,7 @@ define([ toolbar.reconnecting(info.myId); Cryptpad.findOKButton().click(); } else { - Cryptpad.alert(Messages.disconnectAlert); + Cryptpad.alert(Messages.common_connectionLost); } }; diff --git a/www/slide/main.js b/www/slide/main.js index 226e0249e..7c75a42ce 100644 --- a/www/slide/main.js +++ b/www/slide/main.js @@ -782,7 +782,7 @@ define([ // inform of network disconnect setEditable(false); toolbar.failed(); - Cryptpad.alert(Messages.disconnectAlert); + Cryptpad.alert(Messages.common_connectionLost); }; var onConnectionChange = config.onConnectionChange = function (info) { @@ -793,7 +793,7 @@ define([ toolbar.reconnecting(info.myId); Cryptpad.findOKButton().click(); } else { - Cryptpad.alert(Messages.disconnectAlert); + Cryptpad.alert(Messages.common_connectionLost); } };