summaryrefslogtreecommitdiffstats
path: root/help3xsl/help2.js
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2018-08-16 08:58:09 +0200
committerOlivier Hallot <olivier.hallot@libreoffice.org>2018-08-16 13:52:05 +0200
commit9f22fa7cf557ef87ec61372c9e7743d04bbd5725 (patch)
tree3f5bc4de325239f5c8eeefff356af3071bc10c5b /help3xsl/help2.js
parentDon't embed links to all the languages into every page. (diff)
downloadhelp-9f22fa7cf557ef87ec61372c9e7743d04bbd5725.tar.gz
help-9f22fa7cf557ef87ec61372c9e7743d04bbd5725.zip
Translate the language names in JS.
Change-Id: I7185a7d0981abbacef4a152ee6ac5352ebe970cd Reviewed-on: https://gerrit.libreoffice.org/59150 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl/help2.js')
-rw-r--r--help3xsl/help2.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/help3xsl/help2.js b/help3xsl/help2.js
index 15a744ddb7..501a754a9a 100644
--- a/help3xsl/help2.js
+++ b/help3xsl/help2.js
@@ -143,7 +143,7 @@ function setupLanguages(target, page) {
if (!langNav.classList.contains('loaded')) {
var html = '';
languagesSet.forEach(lang => {
- html += '<a href="' + target + lang + page + '">' + lang + '</a>';
+ html += '<a href="' + target + lang + page + '">' + ((lang in languageNames)? languageNames[lang]: lang) + '</a>';
});
langNav.innerHTML = html;
langNav.classList.add('loaded');