[Libreoffice-commits] online.git: loleaflet/Makefile.am loleaflet/po loleaflet/src
Andras Timar
andras.timar at collabora.com
Wed Jan 17 19:52:35 UTC 2018
loleaflet/Makefile.am | 1 +
loleaflet/po/templates/loleaflet-ui.pot | 10 +++++++++-
loleaflet/src/control/Control.AlertDialog.js | 9 +++++----
3 files changed, 15 insertions(+), 5 deletions(-)
New commits:
commit a8f3876ea44c527f934573b3b9197dedb3b18d56
Author: Andras Timar <andras.timar at collabora.com>
Date: Wed Jan 17 16:55:11 2018 +0100
enable l10n of Control.AlertDialog.js
Change-Id: I841aa6b7ef02fd6681fc55f16976a38de69c54b6
Reviewed-on: https://gerrit.libreoffice.org/48061
Reviewed-by: Andras Timar <andras.timar at collabora.com>
Tested-by: Andras Timar <andras.timar at collabora.com>
diff --git a/loleaflet/Makefile.am b/loleaflet/Makefile.am
index 37e3064f..495cd47d 100644
--- a/loleaflet/Makefile.am
+++ b/loleaflet/Makefile.am
@@ -50,6 +50,7 @@ pot:
src/admin/AdminSocketHistory.js \
src/admin/AdminSocketSettings.js \
src/admin/Util.js \
+ src/control/Control.AlertDialog.js \
src/control/Control.ColumnHeader.js \
src/control/Control.ContextMenu.js \
src/control/Control.DocumentRepair.js \
diff --git a/loleaflet/po/templates/loleaflet-ui.pot b/loleaflet/po/templates/loleaflet-ui.pot
index 5a26ecdf..e3bcd7d8 100644
--- a/loleaflet/po/templates/loleaflet-ui.pot
+++ b/loleaflet/po/templates/loleaflet-ui.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2018-01-16 15:32+0100\n"
+"POT-Creation-Date: 2018-01-17 16:48+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -551,6 +551,14 @@ msgstr ""
msgid " s"
msgstr ""
+#: src/control/Control.AlertDialog.js:28
+msgid "The server encountered a %0 error while parsing the %1 command."
+msgstr ""
+
+#: src/control/Control.AlertDialog.js:41
+msgid "Download PDF export?"
+msgstr ""
+
#: src/control/Control.ContextMenu.js:129
msgid "Internal Cut"
msgstr ""
diff --git a/loleaflet/src/control/Control.AlertDialog.js b/loleaflet/src/control/Control.AlertDialog.js
index 4b937200..f91fceae 100644
--- a/loleaflet/src/control/Control.AlertDialog.js
+++ b/loleaflet/src/control/Control.AlertDialog.js
@@ -2,7 +2,7 @@
* L.Control.Dialog used for displaying alerts
*/
-/* global vex */
+/* global _ vex */
L.Control.AlertDialog = L.Control.extend({
onAdd: function (map) {
// TODO: Better distinction between warnings and errors
@@ -25,8 +25,9 @@ L.Control.AlertDialog = L.Control.extend({
// Handled by transparently retrying.
return;
} else if (e.cmd && e.kind) {
- var msg = 'The server encountered a \'' + e.kind + '\' error while' +
- ' parsing the \'' + e.cmd + '\' command.';
+ var msg = _('The server encountered a %0 error while parsing the %1 command.');
+ msg.replace('%0', e.kind);
+ msg.replace('%1', e.cmd);
vex.dialog.alert(msg);
}
@@ -37,7 +38,7 @@ L.Control.AlertDialog = L.Control.extend({
_onPrint: function (e) {
var url = e.url;
vex.dialog.confirm({
- message: 'Download PDF export?',
+ message: _('Download PDF export?'),
callback: L.bind(function (value) {
if (value) {
this._map._fileDownloader.src = url;
More information about the Libreoffice-commits
mailing list