[Libreoffice-commits] online.git: loleaflet/dist loleaflet/Makefile
Andras Timar
andras.timar at collabora.com
Mon May 23 20:33:22 UTC 2016
loleaflet/Makefile | 1 +
loleaflet/dist/loleaflet.html | 5 +++--
2 files changed, 4 insertions(+), 2 deletions(-)
New commits:
commit 55c77c6deb16c694c50a70c98ea0110eae3d5159
Author: Andras Timar <andras.timar at collabora.com>
Date: Mon May 23 22:32:56 2016 +0200
loleaflet: enable l10n of two error messages
diff --git a/loleaflet/Makefile b/loleaflet/Makefile
index f7b575e..5cff678 100644
--- a/loleaflet/Makefile
+++ b/loleaflet/Makefile
@@ -30,6 +30,7 @@ dist: all
pot:
xgettext --from-code=UTF-8 --keyword=_ --output=po/loleaflet-ui.pot \
+ dist/errormessages.js \
dist/toolbar/toolbar.js \
src/control/Control.Tabs.js \
src/core/Socket.js
diff --git a/loleaflet/dist/loleaflet.html b/loleaflet/dist/loleaflet.html
index a8eac6b..c27cb69 100644
--- a/loleaflet/dist/loleaflet.html
+++ b/loleaflet/dist/loleaflet.html
@@ -49,6 +49,7 @@
<script src="/loleaflet/%VERSION%/branding.js"></script> <!-- logo onclick handler -->
<script>vex.defaultOptions.className = 'vex-theme-plain';</script>
<script>var _ = function (string) {return string.toLocaleString();};</script>
+ <script src="/loleaflet/%VERSION%/errormessages.js"></script>
<!--The "controls" div holds map controls such as the Zoom button and
it's separated from the map in order to have the controls on the top
@@ -102,10 +103,10 @@
var timestamp = getParameterByName('timestamp');
var closebutton = getParameterByName('closebutton');
if (wopiSrc === '' && filePath === '') {
- vex.dialog.alert('Wrong WOPISrc, usage: WOPISrc=valid encoded URI, or file_path, usage: file_path=/path/to/doc/');
+ vex.dialog.alert(wrongwopisrc);
}
if (host === '') {
- vex.dialog.alert('The host URL is empty. The loolwsd server is probably misconfigured, please contact the administrator.');
+ vex.dialog.alert(emptyhosturl);
}
var docURL = wopiSrc !== '' ? wopiSrc : filePath;
More information about the Libreoffice-commits
mailing list