[Libreoffice-commits] online.git: loleaflet/html

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Apr 22 14:38:10 UTC 2019


 loleaflet/html/loleaflet.html.m4 |   13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

New commits:
commit 0ae32391d0797b8d02fead8f5bd422eeee47002a
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Mon Apr 22 16:08:49 2019 +0300
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Mon Apr 22 17:33:25 2019 +0300

    There is no l10n directory with localisation JSON files in the iOS app
    
    The localisation is handled differently on iOS, see the
    L10N_IOS_ALL_JS stuff in loleaflet/Makefile.am and the script
    loleaflet/util/create-l10n-all-js.pl.
    
    That part of loleaflet.html is not needed in the iOS app. Whether it
    will be needed in the Android app remains to be seen. Possibly we will
    want to handle localisation in that the same way as in the iOS app. Or
    not. So for now, do this change only for iOS.

diff --git a/loleaflet/html/loleaflet.html.m4 b/loleaflet/html/loleaflet.html.m4
index 256fc4db7..4acb7f875 100644
--- a/loleaflet/html/loleaflet.html.m4
+++ b/loleaflet/html/loleaflet.html.m4
@@ -89,11 +89,14 @@ ifelse(MOBILEAPP,[true],
 ifelse(IOSAPP,[true],
   [<link rel="stylesheet" href="Branding/branding.css">])
 ifelse(MOBILEAPP,[true],
-  [<link rel="localizations" href="l10n/uno-localizations-override.json" type="application/vnd.oftn.l10n+json"/>
-   <link rel="localizations" href="l10n/localizations.json" type="application/vnd.oftn.l10n+json"/>
-   <link rel="localizations" href="l10n/locore-localizations.json" type="application/vnd.oftn.l10n+json"/>
-   <link rel="localizations" href="l10n/help-localizations.json" type="application/vnd.oftn.l10n+json"/>
-   <link rel="localizations" href="l10n/uno-localizations.json" type="application/vnd.oftn.l10n+json"/>],
+  [
+   ifelse(IOSAPP,[true],
+     [],
+     [<link rel="localizations" href="l10n/uno-localizations-override.json" type="application/vnd.oftn.l10n+json"/>
+      <link rel="localizations" href="l10n/localizations.json" type="application/vnd.oftn.l10n+json"/>
+      <link rel="localizations" href="l10n/locore-localizations.json" type="application/vnd.oftn.l10n+json"/>
+      <link rel="localizations" href="l10n/help-localizations.json" type="application/vnd.oftn.l10n+json"/>
+      <link rel="localizations" href="l10n/uno-localizations.json" type="application/vnd.oftn.l10n+json"/>])],
   [<link rel="localizations" href="%SERVICE_ROOT%/loleaflet/%VERSION%/l10n/uno-localizations-override.json" type="application/vnd.oftn.l10n+json"/>
    <link rel="localizations" href="%SERVICE_ROOT%/loleaflet/%VERSION%/l10n/localizations.json" type="application/vnd.oftn.l10n+json"/>
    <link rel="localizations" href="%SERVICE_ROOT%/loleaflet/%VERSION%/l10n/locore-localizations.json" type="application/vnd.oftn.l10n+json"/>


More information about the Libreoffice-commits mailing list