Commit graph

7959 commits

Author SHA1 Message Date
Henry Castro
52b03a2d1a loleaflet: verify if "toLocaleString" function exists
This API has not been standarized yet

Change-Id: I63e1ac88dc660675420af266766163dbe13d31ce
2019-03-07 10:22:12 -04:00
Andras Timar
7e774f3642 docker: --enable-pdfimport and --disable-poppler in build config
Online does not use poppler anyway, it uses pdfium

Change-Id: Ia72b31072640874d2c54d4d4b28f5282e992b6ce
2019-03-07 12:30:20 +01:00
Eduard Ardeleanu
3301f01c0c fix: remove old svg for currency format button
Change-Id: I2224ed4c6d99b11ce8ab833f21223de82401ae75
Reviewed-on: https://gerrit.libreoffice.org/68840
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-03-07 10:13:30 +01:00
Henry Castro
70848989ad loleaflet: update node_shrinkwrap
Change-Id: Ibd1b6ed55d8ed7485e6a82cf3e698eb2cbafd034
2019-03-06 22:27:29 -04:00
Eduard Ardeleanu
1073127103 loleaflet: new icon for currency format button
Contains an icon proposal for format currency button from spreadsheet files.
Current icon contains a dollar sign, which can be misleading, especially when the UI is rendered in other languages than english.

Change-Id: Ie767caf11b6ca1644bd8ec31f16344fb281f606b
Reviewed-on: https://gerrit.libreoffice.org/68755
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-03-06 17:55:06 +01:00
Tor Lillqvist
29626c36a3 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
2019-03-06 17:00:01 +02:00
Tor Lillqvist
f5791f9e1f Send the HULLO message to the mobile app native code already in global.js
Apparently the connect() function in Socket.js is now dead code?

Now the iOS app seems to work as before.

Change-Id: Ib6c2b9a08e818ec8f4b5dbdfbf75f507c4bb7069
2019-03-06 15:30:49 +02:00
Tor Lillqvist
9dee582718 Bin the now duplicate and unnecessary FakeWebSocket things in Socket.js
global.js now defines windows.FakeWebSocket.

Change-Id: I9a430a684769ab071838e4e3e30372f26f761139
2019-03-06 15:28:54 +02:00
Tor Lillqvist
318efba053 Try to make l10n work again in the iOS app
In real Online, after recent commits localisation of messages in our
JavaScript is handled in the FileServer code. Calls to the _ function
in JavaScript being served are replaced with the translated string. We
can't do that in the mobile apps (without some re-work, and I doubt we
want to spend time on that now, there are more pressing problems). In
real Online, the _ function in global.js thus actually dead code.

But in the mobile apps, we don't have any FileServer, and we do want
the _ function to work as before, and we do want to include the
l10n-all.js file in the bundle.js.

Of course, if profiling eventually indicates that doing that *is* a
problem from performance and/or memory usage point of view, we do need
to re-work this. But for now I just want things to roughly work as
they did in the iOS app.

Change-Id: Ib77020010867e7aabaf68bbb892d150d15708213
2019-03-06 14:17:53 +02:00
Tor Lillqvist
97970bc081 Define window.ThisIsAMobileApp etc before they are used in global.js
Change-Id: I7ae2687019575fc27e4c5dff128c8a97595676ea
2019-03-06 13:36:25 +02:00
Tor Lillqvist
039913499b We need the FakeWebSocket code for the mobile apps here, too
We don't use (real) WebSockets for anything at all in the mobile apps.

Is the WebSocket (and FakeWebSocket) code in Socket.js still relevant?
Has it been superseded by what is now in global.js? Good question.
Next question please.

Change-Id: Ief4209b738ba1f0c1a8c496ae53bedcb1f7e14f9
2019-03-06 13:32:59 +02:00
Tor Lillqvist
c8aedbc218 No FileServer involved for the mobile apps, can't use <%FOO%> things
Move the <%FOO%> things to the non-mobileapp branches of the MOBILEAPP
m4 conditionals.

Change-Id: I3d6e51083f7926bb0c90b48367f284e99d64c3b4
2019-03-06 12:39:18 +02:00
Tor Lillqvist
a1feac0c24 Fix -Werror=stringop-truncation: Make sure FatalGdbString is NUL-terminated
(Note that when I say 'NUL' I mean the ASCII character called NUL,
i.e. a zero byte. Not to be confused with 'NULL'.)

Why FatalGdbString has to be a C style fixed size char array I don't
know. Or wait, I do know. Because SPEED!!! And using C strings safely
is trivial.

Change-Id: Id28b00a6e3219cf6f015c4209732f33216f83b22
2019-03-06 11:48:33 +02:00
Tor Lillqvist
8d52cf2c9f Fix iOS build in Xcode: Add header search path for boost
(But note that the iOS app is now completely broken at run-time,
nothing sane shows up.)

Change-Id: I685580bbc0113a075d2cebc54c7af8a3bbca6bd6
2019-03-06 11:03:01 +02:00
Henry Castro
31aa763470 loleaflet: remove timeago.min.js
simplify using Date.toLocaleDateString

Change-Id: Ib264cd90edd7ddacb3b944ee7f252648a629ab3f
2019-03-05 23:55:39 -04:00
Henry Castro
1d801b833f loleaflet: remove jquery.time ago
use Date.toLocaleDateString that returns a string with a language sensitive
representation of the date portion of this date

Change-Id: Id2e207e5b4d0dbc8d82498567c97105052d70b90
2019-03-05 23:50:39 -04:00
Henry Castro
83130d1e45 loleaflet: remove unused map geolocation code
Change-Id: I14f4ca2bade957f0105f31838efe26601d965943
2019-03-05 23:46:29 -04:00
Henry Castro
e81441f63b loleaflet: remove jquery-ui.js
This library is not used, reduce bundle size

Change-Id: I925ed1335a46f78ba74af55582261a86376d7aca
2019-03-05 23:42:24 -04:00
Henry Castro
4a31a3beac loleaflet: fix debug makefile rules
Change-Id: I90f7e1789e631d1a3194316e1c01012326f671ab
2019-03-05 23:37:27 -04:00
Henry Castro
3d91ea94a9 loleaflet: remove unused draw plugin
Change-Id: I6acdec7a5e04ba9cd370b80a3a04b54d370420a0
2019-03-05 23:20:24 -04:00
Henry Castro
c9685387b9 loleaflet: remove client side L10n
Change-Id: I4bd40e569441c22b902b5bac2cb21705a4565384
2019-03-05 22:38:13 -04:00
Henry Castro
304852ccd5 loleaflet: fix String.locale assignment
Change-Id: I901f635ef2cb176329ef8e836a5314efabbc026b
2019-03-05 22:05:51 -04:00
Henry Castro
ad9e0c7c4f ignore generated m4 files
Change-Id: I732287ca2384df1991e04a0b05cd841ca62d7c3f
2019-03-05 21:16:08 -04:00
Henry Castro
b879f9dd06 wsd: allow compression gzip for html and js resources
Change-Id: I0c6030c91e379cf1d78950516d2b6b8aa6bd018b
2019-03-05 21:14:04 -04:00
Henry Castro
306b12b9bc wsd: preprocess javascript file for L10n
Change-Id: Ib802beca673e1e90ad5dd9c33cd5191300ae7bf8
2019-03-05 20:56:46 -04:00
Henry Castro
c2aef68601 wsd: add boost::locale generation and caching
Change-Id: I75009a87038632ceaddb29094d340b6d9066d5ef
2019-03-05 19:40:58 -04:00
Henry Castro
fcfc257162 wsd: create a static function "parse"
Change-Id: Ifffae9a0d38bf64c41863a98395a2f41a6470441
2019-03-05 18:53:20 -04:00
Henry Castro
6144d55f44 wsd: tokenize symbol "_('') _("")"
Change-Id: I9c0e7f30a96a355f6d69b2c5a5244dbfbd863e08
2019-03-05 18:27:58 -04:00
Henry Castro
d3e8385fbb loleaflet: add LANG variable parameter
Change-Id: Ie822d1d0edb80884752196fd5fe210ab95de5d74
2019-03-05 18:16:57 -04:00
Henry Castro
59241a2ea4 configure:L10n: compile message catalog to binary format
Change-Id: Ia5170a70b80996623260578ece71c63db6510a25
2019-03-05 18:09:24 -04:00
Henry Castro
21315768c0 configure: add libraries from Boost Locale to the linker
Change-Id: Icd56a9d18cd42c0300430a5ba1ef4e866b93ccdb
2019-03-05 17:42:07 -04:00
Henry Castro
a6b2708ef5 configure: check "msgfmt" installation
Change-Id: Ib6661e3e79e4ceba6379097875d5d1e7998838e6
2019-03-05 17:31:57 -04:00
Henry Castro
82207d6967 m4: fix 'char exit()' conflicts with built-in declaration 'void exit(int)'
Change-Id: I87a12ac12511e044851e3189ede9c5cb76be26c5
2019-03-05 17:19:15 -04:00
Henry Castro
b1bec2f500 configure: add Boost.Locale library
use --with-boost-libdir=LIB_DIR

Change-Id: I7c01fa33ce1dafcfc636ddcdeae46111b2ccab8e
2019-03-05 16:58:22 -04:00
Henry Castro
ed89931ae8 wsd: use a tiny parser, variable substitution
Change-Id: I821d27ef504a01d0b040f2b7ae7f66e75b16eb96
2019-03-05 16:31:51 -04:00
Henry Castro
88a8810ee7 loleaflet: minify l10n files
Change-Id: I811d945e6767a0716244f8b1f42a8e1f2b727775
2019-03-05 15:40:59 -04:00
Henry Castro
3aebf7fea9 loleaflet: uglify l10n.js
Change-Id: I050d6d82e9d6b3df3cd51426931136b3f14eb730
2019-03-05 15:32:59 -04:00
Henry Castro
668b837c70 loleaflet: load l10n files according to parameter "lang"
Change-Id: I28e6aafa7446b2ea1edbb42bddb77d6d36e68983
2019-03-05 15:11:33 -04:00
Henry Castro
a5536109af loleaflet: remove 'link rel="localizations"' tags
Change-Id: I4887f36344d70b3c3a1c9e28d1486673199ab169
2019-03-05 15:04:59 -04:00
Henry Castro
70bdc4660e loleaflet: expand l10n files
Change-Id: I091cfefb57c7c5aad7a8256ae2192d62606c773f
2019-03-05 14:56:19 -04:00
Henry Castro
ab2051cd50 loleaflet: set format unix l10n.js
Change-Id: Ib5412e83b049954cb0ee56ea91f03289f539175a
2019-03-05 14:38:33 -04:00
Henry Castro
e512924544 loleaflet: execute l10n.js script after html parsing
Change-Id: Ia2be65348aae5ce68a96cbd0ce3ea029062ff48d
2019-03-05 14:32:28 -04:00
Henry Castro
c801696ab1 loleaflet: uglify global.js file
Change-Id: Ibcc265830c10042a918784b350fe93566147993a
2019-03-05 14:08:53 -04:00
Henry Castro
d529a40731 loleaflet: add javascript websocket bootstrap that...
is executed after parsing html

Change-Id: Ib62de3db2449bbe9dc474469c299036259f8f2de
2019-03-05 13:55:25 -04:00
Henry Castro
70d9923ea9 loleaflet: expand inline bundle.css style into html
Change-Id: Id26180777a1b9838c3a9b5dc1e541023d0299595
2019-03-05 11:56:02 -04:00
Henry Castro
20d781130a loleaflet: add defer attribute to the script tag
A script that will not run until after the page has loaded

Change-Id: I7a835138ba22e70150db4345629231c59b84973b
2019-03-05 10:28:41 -04:00
Henry Castro
032703ca16 loleaflet: indent global.js
Change-Id: Ib04a18bcedb26ce267a80fd7990454f590de1a3d
2019-03-05 10:15:44 -04:00
Henry Castro
046dbabc36 loleaflet: initialize the mobile toolbar of Calc document
Change-Id: Ibe8a906530ed0758534d4de278d1a8c246405fe8
2019-03-05 09:31:48 -04:00
Henry Castro
a29bd6449a loleaflet: initialize the mobile toolbar of Writer document
Change-Id: I6bb601d4587105b674815d9556b9461d3f8bb812
2019-03-05 09:26:38 -04:00
Henry Castro
f3c92a0c21 loleaflet: initialize the mobile toolbar of Impress document
Change-Id: I5445cd5d9135c41d350e430af2a85cc5b7b64b7b
2019-03-05 09:16:24 -04:00