From 94d2f4472b6682ecb45fe60449c7032325020ed1 Mon Sep 17 00:00:00 2001 From: Caleb James DeLisle Date: Tue, 3 Oct 2017 12:10:16 +0300 Subject: [PATCH] Stop using presentSuccess because it is hidden behind the modal in slide --- customize.dist/translations/README.md | 6 ++++++ customize.dist/translations/messages.de.js | 1 - customize.dist/translations/messages.es.js | 1 - customize.dist/translations/messages.fr.js | 1 - customize.dist/translations/messages.js | 1 - customize.dist/translations/messages.pl.js | 1 - customize.dist/translations/messages.pt-br.js | 1 - customize.dist/translations/messages.ro.js | 1 - customize.dist/translations/messages.zh.js | 1 - www/slide/inner.js | 15 +++------------ 10 files changed, 9 insertions(+), 20 deletions(-) diff --git a/customize.dist/translations/README.md b/customize.dist/translations/README.md index e7323cade..422c9707b 100644 --- a/customize.dist/translations/README.md +++ b/customize.dist/translations/README.md @@ -111,3 +111,9 @@ These tests will check to make sure that your translation has an entry for every If you have any issues, reach out via any of the methods listed in the readme under **Contacting Us**. We're happy to help. +## Deleting a translation +When a key is nolonger used (such as presentSuccess) you can delete it using this bash one-liner. + +```shell +( export KEY=presentSuccess && grep -nr "$KEY" ./customize.dist/translations/ | sed 's/:.*$//' | while read x; do sed -i -e "/out\.$KEY =/d" $x; done ) +``` \ No newline at end of file diff --git a/customize.dist/translations/messages.de.js b/customize.dist/translations/messages.de.js index ec4d092a5..57e94ac16 100644 --- a/customize.dist/translations/messages.de.js +++ b/customize.dist/translations/messages.de.js @@ -53,7 +53,6 @@ out.shareSuccess = 'Die URL wurde in die Zwischenablage kopiert'; out.presentButtonTitle = "Präsentationsmodus starten"; - out.presentSuccess = 'Drücke ESC um den Präsentationsmodus zu verlassen!'; out.backgroundButtonTitle = 'Die Hintergrundfarbe der Präsentation ändern'; out.colorButtonTitle = 'Die Textfarbe im Präsentationsmodus ändern'; diff --git a/customize.dist/translations/messages.es.js b/customize.dist/translations/messages.es.js index 82e7fc0a9..b78673fc3 100644 --- a/customize.dist/translations/messages.es.js +++ b/customize.dist/translations/messages.es.js @@ -50,7 +50,6 @@ define(function () { out.shareSuccess = 'URL copiada al portapapeles'; out.presentButtonTitle = "Entrar en el modo presentación"; - out.presentSuccess = 'ESC para salir del modo presentación'; out.backgroundButtonTitle = 'Cambiar el color de fondo en el modo presentación'; out.colorButtonTitle = 'Cambiar el color de texto en el modo presentación'; diff --git a/customize.dist/translations/messages.fr.js b/customize.dist/translations/messages.fr.js index 118eb6f7b..c930a8997 100644 --- a/customize.dist/translations/messages.fr.js +++ b/customize.dist/translations/messages.fr.js @@ -136,7 +136,6 @@ define(function () { out.previewButtonTitle = "Afficher ou cacher la prévisualisation de Markdown"; out.presentButtonTitle = "Entrer en mode présentation"; - out.presentSuccess = 'Appuyer sur Échap pour quitter le mode présentation'; out.backgroundButtonTitle = 'Changer la couleur de fond de la présentation'; out.colorButtonTitle = 'Changer la couleur du texte en mode présentation'; diff --git a/customize.dist/translations/messages.js b/customize.dist/translations/messages.js index 09d650c7f..924b112af 100644 --- a/customize.dist/translations/messages.js +++ b/customize.dist/translations/messages.js @@ -138,7 +138,6 @@ define(function () { out.previewButtonTitle = "Display or hide the Markdown preview mode"; out.presentButtonTitle = "Enter presentation mode"; - out.presentSuccess = 'Hit ESC to exit presentation mode'; out.backgroundButtonTitle = 'Change the background color in the presentation'; out.colorButtonTitle = 'Change the text color in presentation mode'; diff --git a/customize.dist/translations/messages.pl.js b/customize.dist/translations/messages.pl.js index 339600ac0..9c24da181 100644 --- a/customize.dist/translations/messages.pl.js +++ b/customize.dist/translations/messages.pl.js @@ -52,7 +52,6 @@ define(function () { out.shareSuccess = 'Pomyślnie skopiowano URL'; out.presentButtonTitle = "Otwórz tryb prezentacji"; - out.presentSuccess = 'Naciśnij ESC aby wyjść z trybu prezentacji'; out.backgroundButtonTitle = 'Zmień kolor tła dla tej prezentacji'; out.colorButtonTitle = 'Zmień kolor tekstu dla tej prezentacji'; diff --git a/customize.dist/translations/messages.pt-br.js b/customize.dist/translations/messages.pt-br.js index e2c29fae1..79ba513c3 100644 --- a/customize.dist/translations/messages.pt-br.js +++ b/customize.dist/translations/messages.pt-br.js @@ -128,7 +128,6 @@ define(function () { out.previewButtonTitle = "Mostrar ou esconder o modo de visualização markdown"; out.presentButtonTitle = "Entrar no modo apresentação"; - out.presentSuccess = 'Pressione ESC para sair do modo de apresentação'; out.backgroundButtonTitle = 'Mudar cor do fundo da apresentação'; out.colorButtonTitle = 'Mudar a cor do texto no modo apresentação'; diff --git a/customize.dist/translations/messages.ro.js b/customize.dist/translations/messages.ro.js index 61881eb36..14a55f8ab 100644 --- a/customize.dist/translations/messages.ro.js +++ b/customize.dist/translations/messages.ro.js @@ -77,7 +77,6 @@ define(function () { out.templateSaved = "Șablon salvat!"; out.selectTemplate = "Selectează un șablon sau apasă escape"; out.presentButtonTitle = "Intră în modul de prezentare"; - out.presentSuccess = "Apasă ESC pentru a ieși din modul de prezentare"; out.backgroundButtonTitle = "Schimbă culoarea de fundal din prezentare"; out.colorButtonTitle = "Schimbă culoarea textului în modul de prezentare"; out.printButton = "Printează (enter)"; diff --git a/customize.dist/translations/messages.zh.js b/customize.dist/translations/messages.zh.js index d835f928e..c7ac7915a 100644 --- a/customize.dist/translations/messages.zh.js +++ b/customize.dist/translations/messages.zh.js @@ -116,7 +116,6 @@ define(function () { out.previewButtonTitle = "顯示或隱藏 Markdown 預覽模式"; out.presentButtonTitle = "輸入簡報模式"; - out.presentSuccess = '按 ESC 以退出簡報模式'; out.backgroundButtonTitle = '改變簡報的顏色背景'; out.colorButtonTitle = '在簡報模式下改變文字顏色'; diff --git a/www/slide/inner.js b/www/slide/inner.js index d0cb40b5f..e535e3f7a 100644 --- a/www/slide/inner.js +++ b/www/slide/inner.js @@ -224,7 +224,6 @@ define([ slideOptionsTmp.style = ''; parseLess(mkLess(less), function (err, css) { if (err) { - console.log(err); Cryptpad.alert( '' + Messages.slide_invalidLess + '' + '
' + @@ -302,7 +301,6 @@ define([ if (textColor) { metadata.color = textColor; } metadataMgr.updateMetadata(metadata); framework.localChange(); - console.log(metadataMgr.getMetadata()); }; var $back = $('