Stop using presentSuccess because it is hidden behind the modal in slide

pull/1/head
Caleb James DeLisle 7 years ago
parent 53f65f6a87
commit 94d2f4472b

@ -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**. If you have any issues, reach out via any of the methods listed in the readme under **Contacting Us**.
We're happy to help. 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 )
```

@ -53,7 +53,6 @@
out.shareSuccess = 'Die URL wurde in die Zwischenablage kopiert'; out.shareSuccess = 'Die URL wurde in die Zwischenablage kopiert';
out.presentButtonTitle = "Präsentationsmodus starten"; 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.backgroundButtonTitle = 'Die Hintergrundfarbe der Präsentation ändern';
out.colorButtonTitle = 'Die Textfarbe im Präsentationsmodus ändern'; out.colorButtonTitle = 'Die Textfarbe im Präsentationsmodus ändern';

@ -50,7 +50,6 @@ define(function () {
out.shareSuccess = 'URL copiada al portapapeles'; out.shareSuccess = 'URL copiada al portapapeles';
out.presentButtonTitle = "Entrar en el modo presentación"; 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.backgroundButtonTitle = 'Cambiar el color de fondo en el modo presentación';
out.colorButtonTitle = 'Cambiar el color de texto en el modo presentación'; out.colorButtonTitle = 'Cambiar el color de texto en el modo presentación';

@ -136,7 +136,6 @@ define(function () {
out.previewButtonTitle = "Afficher ou cacher la prévisualisation de Markdown"; out.previewButtonTitle = "Afficher ou cacher la prévisualisation de Markdown";
out.presentButtonTitle = "Entrer en mode présentation"; 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.backgroundButtonTitle = 'Changer la couleur de fond de la présentation';
out.colorButtonTitle = 'Changer la couleur du texte en mode présentation'; out.colorButtonTitle = 'Changer la couleur du texte en mode présentation';

@ -138,7 +138,6 @@ define(function () {
out.previewButtonTitle = "Display or hide the Markdown preview mode"; out.previewButtonTitle = "Display or hide the Markdown preview mode";
out.presentButtonTitle = "Enter presentation mode"; out.presentButtonTitle = "Enter presentation mode";
out.presentSuccess = 'Hit ESC to exit presentation mode';
out.backgroundButtonTitle = 'Change the background color in the presentation'; out.backgroundButtonTitle = 'Change the background color in the presentation';
out.colorButtonTitle = 'Change the text color in presentation mode'; out.colorButtonTitle = 'Change the text color in presentation mode';

@ -52,7 +52,6 @@ define(function () {
out.shareSuccess = 'Pomyślnie skopiowano URL'; out.shareSuccess = 'Pomyślnie skopiowano URL';
out.presentButtonTitle = "Otwórz tryb prezentacji"; 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.backgroundButtonTitle = 'Zmień kolor tła dla tej prezentacji';
out.colorButtonTitle = 'Zmień kolor tekstu dla tej prezentacji'; out.colorButtonTitle = 'Zmień kolor tekstu dla tej prezentacji';

@ -128,7 +128,6 @@ define(function () {
out.previewButtonTitle = "Mostrar ou esconder o modo de visualização markdown"; out.previewButtonTitle = "Mostrar ou esconder o modo de visualização markdown";
out.presentButtonTitle = "Entrar no modo apresentação"; 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.backgroundButtonTitle = 'Mudar cor do fundo da apresentação';
out.colorButtonTitle = 'Mudar a cor do texto no modo apresentação'; out.colorButtonTitle = 'Mudar a cor do texto no modo apresentação';

@ -77,7 +77,6 @@ define(function () {
out.templateSaved = "Șablon salvat!"; out.templateSaved = "Șablon salvat!";
out.selectTemplate = "Selectează un șablon sau apasă escape"; out.selectTemplate = "Selectează un șablon sau apasă escape";
out.presentButtonTitle = "Intră în modul de prezentare"; 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.backgroundButtonTitle = "Schimbă culoarea de fundal din prezentare";
out.colorButtonTitle = "Schimbă culoarea textului în modul de prezentare"; out.colorButtonTitle = "Schimbă culoarea textului în modul de prezentare";
out.printButton = "Printează (enter)"; out.printButton = "Printează (enter)";

@ -116,7 +116,6 @@ define(function () {
out.previewButtonTitle = "顯示或隱藏 Markdown 預覽模式"; out.previewButtonTitle = "顯示或隱藏 Markdown 預覽模式";
out.presentButtonTitle = "輸入簡報模式"; out.presentButtonTitle = "輸入簡報模式";
out.presentSuccess = '按 ESC 以退出簡報模式';
out.backgroundButtonTitle = '改變簡報的顏色背景'; out.backgroundButtonTitle = '改變簡報的顏色背景';
out.colorButtonTitle = '在簡報模式下改變文字顏色'; out.colorButtonTitle = '在簡報模式下改變文字顏色';

@ -224,7 +224,6 @@ define([
slideOptionsTmp.style = ''; slideOptionsTmp.style = '';
parseLess(mkLess(less), function (err, css) { parseLess(mkLess(less), function (err, css) {
if (err) { if (err) {
console.log(err);
Cryptpad.alert( Cryptpad.alert(
'<strong>' + Messages.slide_invalidLess + '</strong>' + '<strong>' + Messages.slide_invalidLess + '</strong>' +
'<br>' + '<br>' +
@ -302,7 +301,6 @@ define([
if (textColor) { metadata.color = textColor; } if (textColor) { metadata.color = textColor; }
metadataMgr.updateMetadata(metadata); metadataMgr.updateMetadata(metadata);
framework.localChange(); framework.localChange();
console.log(metadataMgr.getMetadata());
}; };
var $back = $('<button>', { var $back = $('<button>', {
@ -412,14 +410,9 @@ define([
CodeMirror.configureTheme(); CodeMirror.configureTheme();
var enterPresentationMode = function (shouldLog) { var enterPresentationMode = function () { Slide.show(true, editor.getValue()); };
Slide.show(true, editor.getValue());
if (shouldLog) {
Cryptpad.log(Messages.presentSuccess);
}
};
if (isPresentMode) { enterPresentationMode(true); } if (isPresentMode) { enterPresentationMode(); }
framework.onContentUpdate(function (newContent) { framework.onContentUpdate(function (newContent) {
CodeMirror.contentUpdate(newContent); CodeMirror.contentUpdate(newContent);
@ -463,9 +456,7 @@ define([
Slide.setTitle(framework._.title); Slide.setTitle(framework._.title);
framework._.toolbar.$rightside.append( framework._.toolbar.$rightside.append(
framework._.sfCommon.createButton('present', true).click(function () { framework._.sfCommon.createButton('present', true).click(enterPresentationMode)
enterPresentationMode(true);
})
); );
editor.on('change', framework.localChange); editor.on('change', framework.localChange);

Loading…
Cancel
Save