diff options
author | Jan Holesovsky <kendy@collabora.com> | 2018-08-15 16:25:51 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-08-16 09:22:24 +0200 |
commit | 653e3bce0d373cea952f9ca36052569c362f6438 (patch) | |
tree | 736b82de782ad7adc5b26fd64a8fa6df5239e076 /help3xsl/online_transform.xsl | |
parent | 06e774ff62d12d9d41168190525f0dea4e62ef1b (diff) |
Translate the language names in JS.
Change-Id: I7185a7d0981abbacef4a152ee6ac5352ebe970cd
Reviewed-on: https://gerrit.libreoffice.org/59140
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'help3xsl/online_transform.xsl')
-rw-r--r-- | help3xsl/online_transform.xsl | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl index 167eb57f21..6743d14779 100644 --- a/help3xsl/online_transform.xsl +++ b/help3xsl/online_transform.xsl @@ -152,6 +152,7 @@ <link type="text/css" href="{$target}default.css" rel="Stylesheet" /> <script type="text/javascript" src="{$target}help2.js"></script> <script type="text/javascript" src="{$target}languages.js"></script> + <script type="text/javascript" src="{$target}{$lang}/langnames.js"></script> <script type="text/javascript" src="{$target}fuse.js"></script> <script type="text/javascript" src="{$target}paginathing.js"></script> <meta name="viewport" content="width=device-width,initial-scale=1"/> @@ -190,13 +191,7 @@ <div class="lang"> <input id="langs" name="language-menu" type="checkbox" onchange="setupLanguages('{$target}', '{$htmlpage}');"/> <label for="langs"><xsl:value-of select="$ui_language"/></label> - <nav id="langs-nav"> - <!--xsl:for-each select="$tmp_doc_ui//list//variable"> - <xsl:variable name ="ui_l1" select="@id"/> - <xsl:variable name ="ui_l2" select="."/> - <a href="{$target}{$ui_l1}{$htmlpage}"><xsl:value-of select="$ui_l2"/></a> - </xsl:for-each--> - </nav> + <nav id="langs-nav"/><!-- is filled in via setupLanguages() on demand --> </div> </xsl:if> </div> |