Commit graph

154 commits

Author SHA1 Message Date
Samuel Mehrbrodt
f5954a015b Browsersync: Also sync html files
Change-Id: I55db923954fc0c59e1726640c980a539a12293ba
Reviewed-on: https://gerrit.libreoffice.org/72455
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-05-20 09:59:45 +02:00
Henry Castro
ee7e1f136a Revert "loleaflet: move jquery.contextMenu.js to loleaflet/js"
This is no longer required because d6fe8ff085

This reverts commit 2ea141c02f.
2019-05-10 10:05:06 -04:00
Alexandru Vlăduţu
ef1669b389 loleaflet: update vex.js library
Change-Id: I6b32c6a60a27aa27eb32784bb73e40c979f67def
Reviewed-on: https://gerrit.libreoffice.org/71726
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-05-03 12:17:02 +02:00
Henry Castro
2ea141c02f loleaflet: move jquery.contextMenu.js to loleaflet/js
for next patch I require to modify the contextMenu
to trigger on touch start event.

I should do updating archived-packages, but ...

Change-Id: I20f1fbda1e7e60f97cd790c055599edcf8da9d1a
2019-05-02 18:19:59 -04:00
Henry Castro
9c2ca2d502 loleaflet: makefile: create variable to expand more JS libs
It simplifies and expand more Javascript Libraries to be used in
"loleaflet" bundle

Change-Id: I94aab1989fcef844344a297cd511c796ba642bd4
2019-05-02 15:53:28 -04:00
Andras Timar
5f10b44f00 Extract iOS strings with prop2po from Translate Toolkit + update pots
Change-Id: I0b7a7f2b9dd9bcbc52117fbe3e1009cc5f629ea2
2019-04-13 21:59:41 +02:00
Jan Holesovsky
ea659b3d99 Use the app name more generally, not only on iOS.
Preparation for using it on Android too.

Change-Id: Iee7778b2625a02a98daff5df87c39f4ab1d18144
Reviewed-on: https://gerrit.libreoffice.org/70651
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
2019-04-12 13:44:40 +02:00
Alexandru Vlăduţu
51e849bf5d loleaflet: optimize slideshow spinner
This commit fixes 2 issues:

- a UX issue described by tdf#124544 (slideshow spinner is not
displayed for the correct duration - user shown a blank screen while the
browser downloads slideshow.svg)

- an additional HTTP request is being made to loading.html just to
display an ordinary spinner (that can be otherwise loaded via css for
example)

tdf#124544

Change-Id: I90d1e73d1514d736dd58a53caa5921b42bc1bd75
Reviewed-on: https://gerrit.libreoffice.org/70250
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-04-04 13:46:29 +02:00
Alexandru Vlăduţu
0821940ae7 loleaflet: check document hyperlink before open
Change-Id: Ie2b1ba8baf49136fa805ab5b3a52f7b7fb5827df
Reviewed-on: https://gerrit.libreoffice.org/70113
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-04-02 14:45:13 +02:00
Samuel Mehrbrodt
7f63e7658d Fix path (again)
After 59306e2f4c "loleaflet: rename toolbar.js to Control.Toolbar.js"

Change-Id: Iaa5556da289e23b8942a020b75a805c87dc03c70
2019-04-01 10:27:32 +02:00
Andras Timar
30851bb57e add plist2pot.sh to Makefile
Change-Id: I7cbd25ccb6ceaa4ce5a90eca1db2d7d5631edbe7
2019-03-29 22:34:42 +01:00
Tor Lillqvist
74f19fce6f We insert global.js in loleaflet.html and shouldn't include it in bundle.js
Also, make loleaflet.html depend also on the two files that are inserted into
it with the m4 syscmd thing, bundle.css and global.js.

Change-Id: Iba261aeff70786eec114e5508b748dadd8663038
2019-03-21 17:20:27 +02:00
Jan Holesovsky
345df913de Revert "loleaflet: remove jquery-ui.js"
This is needed for the functionality of the dialogs.

This reverts commit e81441f63b.
2019-03-20 09:44:39 +01:00
Andras Timar
9c74b8e14f put back po->json make rule
Change-Id: Idbd45a48f3215f36b68e444a83c4eb07ea37e1bb
2019-03-18 14:20:26 +01:00
Samuel Mehrbrodt
58eab0bbb5 Fix path
Change-Id: Ie04f809e6d6b1c87a4fe4d66132c9c51551b0b04
Reviewed-on: https://gerrit.libreoffice.org/69383
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-03-18 11:44:32 +01:00
Jan Holesovsky
e5ecc92659 Revert "loleaflet: execute l10n.js script after html parsing"
This reverts commit e512924544.

Change-Id: I9b322b45cd13b69c4438d48227237dd8062aee05
2019-03-15 18:24:25 +01:00
Jan Holesovsky
117bb3a837 Revert "loleaflet: expand l10n files"
This reverts commit 70bdc4660e.
2019-03-15 18:24:25 +01:00
Jan Holesovsky
153e2d06fa Revert "loleaflet: uglify l10n.js"
This reverts commit 3aebf7fea9.
2019-03-15 18:24:25 +01:00
Jan Holesovsky
8ccc087b18 Revert "loleaflet: minify l10n files"
This reverts commit 88a8810ee7.
2019-03-15 18:24:25 +01:00
Jan Holesovsky
51080df3b9 Revert "configure:L10n: compile message catalog to binary format"
This reverts commit 59241a2ea4.
2019-03-15 17:27:27 +01:00
Jan Holesovsky
5fe925f18f Revert "loleaflet: remove client side L10n"
This reverts commit c9685387b9.

Change-Id: Ie11c04ffad8260c3c1d6357f18dd9f2a42912859
2019-03-15 17:25:41 +01:00
Jan Holesovsky
9fa34e5a7f Revert "Try to make l10n work again in the iOS app"
This reverts commit 318efba053.
2019-03-15 17:23:28 +01:00
Henry Castro
315fc0b3e8 loleaflet: move main.js to src/ directory
Simplify building loleaflet.

Change-Id: I3cdc6455b21e683b0331997766badd606c6aca43
2019-03-11 17:30:07 -04:00
Henry Castro
c1ba96f951 loleaflet: move toolbar.js to src/control directory
Simplify building loleaflet.

TODO. Convert to L.Control.Toolbar

Change-Id: I6abedd19caa6f0c22267c661e67480507dcd8336
2019-03-11 14:51:56 -04:00
Henry Castro
4612d10244 loleaflet: integrate "Path.Transform" extension to the main build
In order to simplify "loleaflet" building, the plugin "Path.Transform"
was moved to loleaflet main build.

Please use the file "loleaflet/build/deps.js" if you need to integrate
more files from "leaflet" plugins

Change-Id: Ib3bfa6fd3255811034856849a4f62cc1bf430af5
Reviewed-on: https://gerrit.libreoffice.org/69007
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-03-10 15:09:07 +01: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
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
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
59241a2ea4 configure:L10n: compile message catalog to binary format
Change-Id: Ia5170a70b80996623260578ece71c63db6510a25
2019-03-05 18:09:24 -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
70bdc4660e loleaflet: expand l10n files
Change-Id: I091cfefb57c7c5aad7a8256ae2192d62606c773f
2019-03-05 14:56:19 -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
Szymon Kłos
8a61a53027 Integrate browser-sync
Tool to automatically reload used .css and .js files.
To make it work symlinks are created instead of a copy
if browsersync is enabled.

1. install:
npm install -g browser-sync

2. use configure option: --enable-browsersync

3. remove loleaflet/dist directory

4. run server:
LOOL_SERVE_FROM_FS=1 make run -j10

5. run browsersync:
browser-sync start --config browsersync-config.js

or

make sync-writer

Change-Id: Iebee1cc0b9a03bc866954ff33e3cb8a10b48e0af
2019-02-21 09:23:47 +01:00
Jan Holesovsky
b7513394bd android: Copy the test documents to the assets too.
Change-Id: Iaaf8d70b84adf7945461a50c4771dc984ffa08ff
2019-02-13 14:56:05 +01:00
Jan Holesovsky
e79f5f7ec6 android: Create the html, js and css and copy it to the right place.
Change-Id: I3efbba0ae369387796e2d08b3003e4f469610dda
2019-02-13 13:22:25 +01:00
Jan Holesovsky
b270b4e42c Makefile: Reintroduce the check for missing .uno: commands.
Change-Id: If290ff9878fac6f9100246cad4fbc87b559fc7b7
2019-01-22 14:52:40 +01:00
Jan Holesovsky
801643baf0 Actually, let's ship both these jQuery themes.
Change-Id: I3e546e155d50fb280fe12c31b8c33523ac8e9f11
2019-01-10 12:37:46 +01:00
Jan Holesovsky
83dc72115d Update the dialog closing button's image.
Change-Id: I2a5d9d62bda4e20e24a5bdeeea1befad594918b1
2019-01-10 11:32:23 +01:00
Szymon Kłos
0eb1bcb8ce Zoom & move LOKDialogs using gestures
Change-Id: I313ef0ed1b801d8a3d3aadfca7c2eb001499e7db
2018-12-07 12:39:28 +01:00
Szymon Kłos
c9ddadfcaf Added modification indicator
Change-Id: Iba028758671ec4e9bd7db375a2511d2d3699aa55
2018-12-07 12:39:27 +01:00
Henry Castro
f71f67bddc loleaflet: add path transformation plugin
added, indented plug-ins from the repository:

+ https://github.com/w8r/Leaflet.Path.Drag  commit
df9c39b5a567150e445c448e2404d801f3a517c4

+ https://github.com/w8r/Leaflet.Path.Transform commit
6feed9bf21ed86b2beb52dbc4b11d47c3709d8ea

Change-Id: I6c0762fd8fd943cc136dcc9a7a1b476c7be794e0
2018-12-07 12:39:27 +01:00
Henry Castro
54bddfa696 loleaflet: fix select tag drop-down list
Change-Id: I2350ff8a0e17ca9b2709460e3ed333a64d2c76e4
2018-12-07 12:39:27 +01:00
Andras Timar
8347d2578d Enable l10n for most of strings in document sign feature
Change-Id: I5159051b2c42bee26e788766f29244bd2ca2f234
2018-12-04 11:54:20 +01:00
Tor Lillqvist
fe3832f3c6 Use --with-iosapp-name to set the name displayed in the Help>About dialog
Change-Id: I04b0e7c152ee69b038ec30549c203a54eecf4780
2018-11-27 00:35:57 +02:00
Tor Lillqvist
393c8ff278 Move the malihu-custom-scrollbar-plugin js and css into our tree for hacking
I plan to add some hacks into it to fix the horrible jumping around
after touch-based interaction, specifically for the iOS app.

Change-Id: Ia6cfbfe7f487b52ba7652e49eb3fdb59af0c82ae
2018-11-15 18:33:41 +02:00
Andras Timar
2f38e98ea6 loleaflet: update list of localizable files
Change-Id: I1542466cbc8165da93f28ab6378dad456a3d8998
2018-11-15 11:25:42 +01:00
Tor Lillqvist
6d2a60643b Make l10n of the messages from our JS code work in the mobile app
The l10n-for-node code does not work in the app. Instead of loading
the required JSON files at run-time, include all those translations
that seem complete enough as JavaScript code in the bundle.js. Use a
manaully curated list of translations, in a Perl script that generates
the JavaScript code in question.

Change-Id: I45d5cda477140ee63bb3fc8d9f1f4260bcdb97a7
2018-11-12 22:55:03 +02:00
Tor Lillqvist
58ee16d4ed Do generate the loleaflet/dist/l10n/*.json files for iOS
Not used yet by the app but I am working on figuring out some way.
2018-11-09 19:58:32 +02:00
Tor Lillqvist
e58a28fe95 We don't need the admin stuff in the mobile app 2018-11-09 19:05:33 +02:00
Andras Timar
fb1b7d6b44 remove obsolete comment
Change-Id: I69168335c479b94ad4352a64631c1605e4314abe
2018-10-29 13:10:29 +01:00
Tor Lillqvist
fd758496a5 Add --enable-gtkapp configury option
Change-Id: Ib805581663aeec62d713f87ca72ab3cfe95db79f
2018-10-17 01:22:24 +03:00
Tor Lillqvist
e713d8c323 No l10n in the iOS app for now 2018-09-07 16:43:39 +03:00
Tor Lillqvist
1ae4a32067 Factor out loleaflet/dist construction for iOS app building
The idea is that on a Linux box you have a tree of online that you
configure with --enable-iosapp. Then running 'make' there will only
create the stuff in loleaflet/dist. That loleaflet/dist can then be
copied to the Mac where you build the iOS app.

(To me, this approach seemed for now simpler than to get all the
PKG_CONFIG etc stuff working that running configure normally requires,
and run all the node, npm, and associated crack, on a Mac.)

Change-Id: Id2e495d0521922d0666fdab5fdcb5fcd460136f1
2018-09-03 17:10:19 +03:00
Henry Castro
f8c1c1a74a loleaflet: run eslint when toolbar.js is modified
Change-Id: I84272849e20fefea775118960b876e62112c3701
2018-08-14 10:43:32 -04:00
Henry Castro
9f456079e1 loleaflet: remove the script tags that they already were bundled them
Change-Id: I791c6c6850b39d5327c5c3c521138531f3a6f148
2018-05-27 09:19:36 -04:00
Henry Castro
52be172307 loleaflet: update node_shrinkwrap
Change-Id: Icf4683c074c6c4dc6e478412230a431137bdb7fa
2018-05-27 07:55:55 -04:00
Henry Castro
7d03ebcf55 loleaflet: use the recursive Makefile to avoid parallel node_modules target
Change-Id: I1bc7d8bc4b228d104196dbd2355576bcd94c913d
2018-05-27 00:25:14 -04:00
Henry Castro
fab4cbb5e9 loleaflet: fixed js lint errors in admin/src/Base.js
Change-Id: I7d2ae94d75fe68d0973dac940a5837b9c8b93eba
2018-05-26 23:59:37 -04:00
Henry Castro
3571919a50 loleaflet: isolate the admin build process
Change-Id: Ib48ef2b0e6c778a65be949da1eb164cf5f87692d
2018-05-26 23:32:16 -04:00
Henry Castro
42b46bbaa3 loleaflet: add rule to bundle admin files
Change-Id: Id3d25855d697ad607ae30ffffa1a9c6f565b6e6d
2018-05-26 21:45:50 -04:00
Henry Castro
d3a3dc7d13 loleaflet: move some images from draw plugin
Change-Id: If53aea32c745e62493d87ae129a7da2bdc242deb
2018-05-26 10:55:45 -04:00
Henry Castro
1ad2e5bd65 loleaflet: ensure set NODE_PATH environment variable
Change-Id: If0a632c258f740112352e9ad6a4f250bf2e2c9d8
2018-05-26 10:40:59 -04:00
Henry Castro
f838e0998e loleaflet: fix make -j N
Change-Id: I994ff4b352c93ff910d93f5f176c4e7ced2dc21d
2018-05-26 10:27:19 -04:00
Henry Castro
940f0228ed loleaflet: remove unused dir
Change-Id: I0b706797b691bca773a96a0b551feda5c29c246a
2018-05-26 10:16:18 -04:00
Andras Timar
b1948bff68 remove unused evol-colorpicker
Change-Id: I3eaf2040aa8cfaefb7861c33bceac7c1e5d7866a
Reviewed-on: https://gerrit.libreoffice.org/54806
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2018-05-25 23:07:15 +02:00
Henry Castro
50dd72d34f loleaflet: move cursors to images directory
Change-Id: Iea2f5753da022fec70d17fd325764cc46b371483
2018-05-24 14:45:59 -04:00
Henry Castro
9978c51595 loleaflet: lint draw plugins
I forgot to add it, in previous commit

Change-Id: I9fce42d39d07f6d60910e2fc6fec86b78888b9d6
2018-05-24 13:42:07 -04:00
Henry Castro
242b86454d loleaflet: fixed js lint errors in js/global.js
Change-Id: I81d9371e6bfb8eec9e3290e863d89d3f1cb53c40
2018-05-24 10:45:42 -04:00
Henry Castro
7b17fc3a3f loleaflet: modularize toolbar.js file
Change-Id: Ic09d97b7f19aebec80a48161ff3f2a8c7db61328
2018-05-20 10:13:29 -04:00
Henry Castro
486a525cdf loleaflet: debug: do not bundle the draw plugin files
Change-Id: I022f121410eb0a3cd59b2b3b1a160ff7d244ad53
2018-05-17 17:22:25 -04:00
Andras Timar
8f8fbd64df fix file paths 'make pot'
Change-Id: I135c05955e4b8752d527838162f4a7ed345fcc6d
2018-05-11 16:38:47 +02:00
Henry Castro
04f17a012f loleaflet: fix build in admin files
Change-Id: I0e96b18e6319ce0d4456c16f0fce008e4e4c4966
2018-05-10 14:48:50 -04:00
Henry Castro
8618885b31 use Makefile to build loleaflet
Concatenate and minify all javascript files in the release build but not
in the debug build. Also, it is enabled to use a build directory

Change-Id: Ia120447a827cfe236241ddf188bf43a088f877a7
Reviewed-on: https://gerrit.libreoffice.org/52802
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
2018-05-10 20:30:16 +02:00
Henry Castro
472cae55e7 loeaflet: debug w2toolbar
avoid minify w2toolbar for debugging purposes

Change-Id: I6a24f498511d4b03a04e68af0aa3715bb8c1b48b
2018-03-27 23:05:07 -04:00
Andras Timar
239d5a09a3 remove src/control/Control.MetricInput.js from list of localizable files, because it was deleted
Change-Id: I1583c81aef924c7f61b6b1722666c5fd1137e418
2018-02-21 23:07:52 +01:00
Samuel Mehrbrodt
3ae85e20a6 Ignore errors when draw directory is not deletable
Change-Id: Iec3567129f96b69174421ca1ec652dccf6a6b56c
Reviewed-on: https://gerrit.libreoffice.org/48911
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2018-01-31 10:24:13 +01:00
Andras Timar
a8f3876ea4 enable l10n of Control.AlertDialog.js
Change-Id: I841aa6b7ef02fd6681fc55f16976a38de69c54b6
Reviewed-on: https://gerrit.libreoffice.org/48061
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2018-01-17 20:52:17 +01:00
Jan Holesovsky
1f1a76e5ef l10n: use translations of .uno: commands from LibreOffice
This is a combination of 22 commits.

l10n: New script for collecting the used .uno: commands.

Change-Id: I9c6f3f03a4042f8e5ba1f258ce468fc0f4abd169
Reviewed-on: https://gerrit.libreoffice.org/45981
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit 99161841dcee3b066153a7f7af0e98d6ef7f8a2c)

l10n: Don't repeat the strings in the menu definition, use the uno commands.

Change-Id: If8ccd753cd88056c64c10e3f9f7b951208fafdb8
Reviewed-on: https://gerrit.libreoffice.org/45983
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit 5b87f2fca5d6f84d0ac637021e87e2dc41dd13c7)

l10n: "type: 'unocommand'" is implicit when there is "uno:" in the item.

Change-Id: I2fe50e4860848920f551cc6a3fda5ebe5f49b3f2
Reviewed-on: https://gerrit.libreoffice.org/46011
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit d38664c023f374dc66361d00be89c08a0e5bbc20)

l10n: Fix mis-typed .uno: commands.

Change-Id: Ia2d695d584d48b92def364c3936655909aabd076
Reviewed-on: https://gerrit.libreoffice.org/46012
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit e68789ac2c9c3bfa661ae815ff27cd4bb038bc2c)

l10n: Don't extract uno: when name: is provided for that entry.

Change-Id: I85619915cf66a71c7ab982c2949390bd82df9abb
Reviewed-on: https://gerrit.libreoffice.org/46013
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit 293c5d45083823ae1c1f4e0519928c0b5d23dced)

l10n: Implement --check to notice not covered .uno: commands early.

Change-Id: I928f2cef8d9a869c10fa6c6370a7ce1c811631c8
Reviewed-on: https://gerrit.libreoffice.org/46014
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit 457f929357adf7f52e0fc9281d41df3f29859467)

l10n: Further decrease the use of own Online strings...

...if those can be deducted from .uno: commands.

Change-Id: I9c2459a12ee95e936a7ec37f6270012d811cdf86
Reviewed-on: https://gerrit.libreoffice.org/46018
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit 70ecee2bb6398aafdf6c71aeecf6e9eb6330fb70)

l10n: Let's avoid redirect, and write the unocommands.js directly.

Change-Id: Ifda0de27881ba415ff062368483524080dce5189
Reviewed-on: https://gerrit.libreoffice.org/46020
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit b6fa6f376c41d6787ab1cbb52218e7ff1064b83a)

l10n: Generate translations of the .uno: commands + update the current ones.

Change-Id: I77377412e4776a830f15973a35b83e8eca299f05
Reviewed-on: https://gerrit.libreoffice.org/46047
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit b2bfb2349ec2934a611bb4c1393e9f17aedb0ba2)

l10n: Translate also the right-click menu .uno: commands.

Change-Id: Ie5cedaaa10febe78ba319f9e9b03fdd44c94f468
Reviewed-on: https://gerrit.libreoffice.org/46048
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit 861c252d5204dfac7b8f5fb4505efcc29eafeb3d)

l10n: len(sys.argv) is 1, when the command is invoked without options

Change-Id: Ie9a47955e9a031ee0484c0703f67bad7077bbd76
Reviewed-on: https://gerrit.libreoffice.org/46078
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit f096cf33977620f368ecc7c5b64164ab2303060b)

l10n: remove obsolete unocommandsl10n.sh

Change-Id: I4e9945407aff4a4fa1444079f8ecec1782a71c9c
Reviewed-on: https://gerrit.libreoffice.org/46079
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit 4f0d5d7a2431bf5e132bdcd85285c10c0fd21322)

l10n: Make sure to distinct between apps + between main menu and context menu.

The strings can differ considerably, making some menu entries not
understandable at all.

Change-Id: I36ffa8b01df119a7655a711ec859391af16836c9
Reviewed-on: https://gerrit.libreoffice.org/46097
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit 53d9593edb32bbc5db3fe430ac5f20a1bdd4e127)

l10n: Fix the Table menu in Impress.

Change-Id: I2cb8b98ecc1a18174b26dfaa9c96ad3829ff5989
Reviewed-on: https://gerrit.libreoffice.org/46099
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit be100fe06abbeabed05b0c8a02c4f6067fcfc774)

l10n: first check for 'lang', then require unocommands

Change-Id: Ib8f94bbdd163a89bef4886d68816628e124e9ef8
(cherry picked from commit d94a53a0e363f6edf3a139d26c4b9603ef14389f)

l10n: get Language menu translations for free

Change-Id: I8b5628457cf713d8fdb0d4de6935b7e1d54ad093
Reviewed-on: https://gerrit.libreoffice.org/46158
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit 53b8a60d5d85fc1a3909809ea51a23cb20453bea)

l10n: Calc and Impress should use _UNO('.uno:LanguageMenu') too.

Change-Id: I987821d9d9b0f40baea1879d28177e8e0c58a3a3
Reviewed-on: https://gerrit.libreoffice.org/46418
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit ba61ec9da2c073d2d728c5bb8df8912f5117fd5e)

l10n: Calc row, column and sheet tab context menu translations from LibreOffice

Change-Id: I1f566a71e5fdc66304e82bc2bcfb0f9ced2f5d2a
Reviewed-on: https://gerrit.libreoffice.org/46430
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit e8847b9ef174288b73650a4e63e8a6b0cfb43b4c)

l10n: Some toolbar button tooltip translations from LibreOffice

Change-Id: I4a8d050c7ae8efc7d1932f16dc35455f1a182d8a
Reviewed-on: https://gerrit.libreoffice.org/46444
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit d51a760957480ea412519f677dae7a2294c324cd)

l10n: localize 'Undo' and 'Redo' labels on Document Repair dialog

Change-Id: Ibd4236f85a6db92b7d6456f6f22115b35079da83
Reviewed-on: https://gerrit.libreoffice.org/47252
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit f8bf2c28608c139279aaa484603da8cc539ff948)

l10n: 5 more toolbar strings from LO core

Change-Id: I398a0d7c28a8295c3b8e5077903b5fa7d3d5c45c
Reviewed-on: https://gerrit.libreoffice.org/47310
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2018-01-03 14:57:08 +01:00
Andras Timar
40a53cf28e l10n: reproducible way of extracting translations from LO core
Change-Id: If17639d79105efa782e724842ff7132d6b718dbc
2018-01-03 08:39:28 +01:00
Andras Timar
6aa893badf l10n: admin console fixes
Change-Id: I047e90c4977bcca2a8968d1af5422742b4ae43db
Reviewed-on: https://gerrit.libreoffice.org/47288
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2018-01-03 08:15:02 +01:00
Pranav Kant
0dbca24c8b lokdialog: Kill JS special character dialog; use the tunneled one
Change-Id: I4f86b3d8a1a05a522eeadaac69d14965106c47d0
Reviewed-on: https://gerrit.libreoffice.org/46466
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit 30bae27622d3b6a2aa7af2e13f5da50a89f9e91e)
2017-12-19 17:35:15 +05:30
Pranav Kant
66556c1668 Copy jquery-ui image files to dist/ during normal make
No need of dist-hook now to do the same. The good thing is that now
these images will also be available to a developer which was earlier not
possible without manually copying the files left & right. This means no
more annoying errors in developer's browser console.

Change-Id: Ie180720086feace00b61891f56ee3532f5f9df7b
2017-11-10 11:33:45 +05:30
Christian Glombek
b61bcd2e53 Fix build from non-git source archives like tar or zip
Change-Id: I359056c9ad2550b625eb3e7b8e71d841eedea93b
Reviewed-on: https://gerrit.libreoffice.org/41553
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-09-03 01:30:27 +02:00
Andras Timar
0bfd359a7c loleaflet: create destination file's directory with po2json.py
... because the Makefile did not work on SLED11SP4 (?!)

Change-Id: I4e7468149f1c5461aeeb05d3a68e62cda1e329e5
Reviewed-on: https://gerrit.libreoffice.org/39778
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2017-07-31 19:42:32 +02:00
Jan Holesovsky
21192c4306 Generate the l10n json files only when the appropriate po's change.
Change-Id: I17c0f022775ec631e6493ba81fa41752f6841188
2017-05-05 11:28:26 +02:00
Jan Holesovsky
fdb5f6f09f Build the translations even for the developers.
Change-Id: Ida8e705c500c9698afc32427815a5b12ab076ac9
Reviewed-on: https://gerrit.libreoffice.org/37018
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2017-04-27 10:01:03 +02:00
Andras Timar
c38e5de273 loleaflet: without quotes the target file name was truncated at 'ui-bg_highlight-soft_'
Change-Id: I0f7ffb0babf4295a48e1684a24bb24a0fd7ab8f4
Reviewed-on: https://gerrit.libreoffice.org/36725
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2017-04-20 11:00:37 +02:00
Marco Viscido
0bb650e7c4 keep expired document and query them to get the historical content
A Document has its own snapshots set.
A snapshot is a string representation of a JSON object.
AdminModel keeps also the expired document objects.
Query each document object in order to get their own history.
Admin accepts an "history" command then returns a json object.
An administrator checks the history by dashboard.

Change-Id: I73c87eff334cdb5a4a58043b2b66f18a56240b3a
Reviewed-on: https://gerrit.libreoffice.org/35926
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
2017-04-19 04:08:38 +02:00
Andras Timar
baa07c0997 loleaflet: src/control/Control.ContextMenu.js contains translatable strings
Change-Id: I4010eb296a1771f0e8fbfa5078b4847193cfc188
Reviewed-on: https://gerrit.libreoffice.org/36491
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2017-04-12 22:26:43 +02:00
Andras Timar
e5fbdb2cde loleaflet: add new localizable files to Makefile.am and regenerate pot file
Change-Id: I6a91186eba13da6745c2cddb6e96b7b148d797dc
2017-03-13 13:03:19 +01:00
Andras Timar
fdb71825c4 loleaflet: use --duplicates=merge option of html2po
Change-Id: Id2bba4580910a7dd02c0a11302e4ae1dd2c15acb
2017-01-09 15:48:16 +01:00
Pranav Kant
053f5b5d9f Unused variable
Change-Id: I1e8ba0dc8683193d7ce0680854cb43286fc0dd98
2017-01-05 13:14:42 +05:30