[Libreoffice-commits] online.git: loleaflet/js
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Mar 6 15:02:46 UTC 2019
loleaflet/js/global.js | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 29626c36a337b33276343f613f69fb4527cb757d
Author: Tor Lillqvist <tml at collabora.com>
AuthorDate: Wed Mar 6 16:55:13 2019 +0200
Commit: Tor Lillqvist <tml at collabora.com>
CommitDate: Wed Mar 6 17:00:01 2019 +0200
I was misinformed: The _ function *is* needed also in normal Online
Not all calls to the _ function are magically replaced by the
FileServer, but only those that pass an explicit string literal.
Change-Id: I9917c569f0471551ade9e46ee9f87b4f326f581e
diff --git a/loleaflet/js/global.js b/loleaflet/js/global.js
index 3057361af..709935b33 100644
--- a/loleaflet/js/global.js
+++ b/loleaflet/js/global.js
@@ -76,6 +76,10 @@
global._ = function (string) {
return string;
}
+ } else {
+ global._ = function (string) {
+ return string.toLocaleString();
+ }
}
var docParams, wopiParams;
More information about the Libreoffice-commits
mailing list