[Libreoffice-commits] online.git: loleaflet/debug loleaflet/dist
Andras Timar
andras.timar at collabora.com
Sat May 28 09:14:41 UTC 2016
loleaflet/debug/document/loleaflet.html | 6 ++++++
loleaflet/dist/loleaflet.html | 6 ++++++
2 files changed, 12 insertions(+)
New commits:
commit 62abb2533dab121156c8a5eef9db6d27e25cde65
Author: Andras Timar <andras.timar at collabora.com>
Date: Sat May 28 10:33:17 2016 +0200
loleaflet: bccu#1854 add optional 'lang' parameter to loleaflet.html
diff --git a/loleaflet/debug/document/loleaflet.html b/loleaflet/debug/document/loleaflet.html
index 500aa9d..ba2b8b1 100644
--- a/loleaflet/debug/document/loleaflet.html
+++ b/loleaflet/debug/document/loleaflet.html
@@ -102,6 +102,12 @@
var permission = getParameterByName('permission') || 'edit';
var timestamp = getParameterByName('timestamp');
var closebutton = getParameterByName('closebutton');
+ var lang = getParameterByName('lang');
+ if (lang) {
+ String.locale = lang;
+ wrongwopisrc = _('Wrong WOPISrc, usage: WOPISrc=valid encoded URI, or file_path, usage: file_path=/path/to/doc/');
+ emptyhosturl = _('The host URL is empty. The loolwsd server is probably misconfigured, please contact the administrator.');
+ }
if (wopiSrc === '' && filePath === '') {
vex.dialog.alert(wrongwopisrc);
}
diff --git a/loleaflet/dist/loleaflet.html b/loleaflet/dist/loleaflet.html
index 13e2bb9..6d5546d 100644
--- a/loleaflet/dist/loleaflet.html
+++ b/loleaflet/dist/loleaflet.html
@@ -102,6 +102,12 @@
var permission = getParameterByName('permission') || 'edit';
var timestamp = getParameterByName('timestamp');
var closebutton = getParameterByName('closebutton');
+ var lang = getParameterByName('lang');
+ if (lang) {
+ String.locale = lang;
+ wrongwopisrc = _('Wrong WOPISrc, usage: WOPISrc=valid encoded URI, or file_path, usage: file_path=/path/to/doc/');
+ emptyhosturl = _('The host URL is empty. The loolwsd server is probably misconfigured, please contact the administrator.');
+ }
if (wopiSrc === '' && filePath === '') {
vex.dialog.alert(wrongwopisrc);
}
More information about the Libreoffice-commits
mailing list