summaryrefslogtreecommitdiffstats
path: root/help3xsl/help.html
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@libreoffice.org>2017-09-04 15:20:13 -0300
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2017-09-05 21:45:31 +0200
commit88da65789dd8c641d9f2c20b7240e120e2fb9537 (patch)
tree5c734ed42b790da242a18d09d234372b69d63844 /help3xsl/help.html
parentAdd es and ast for helponline localization (diff)
downloadhelp-88da65789dd8c641d9f2c20b7240e120e2fb9537.tar.gz
help-88da65789dd8c641d9f2c20b7240e120e2fb9537.zip
More localization WIP for helponline
* Added more languages in page UI * Language names in their own language in language dropdown * Attempt of switch to browser language by default Change-Id: Iea133b24e6121bb5da7af21fe5ca4ce9cde8c14d Reviewed-on: https://gerrit.libreoffice.org/41911 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'help3xsl/help.html')
-rw-r--r--help3xsl/help.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/help3xsl/help.html b/help3xsl/help.html
index 6b44ca3202..8dc4e67c28 100644
--- a/help3xsl/help.html
+++ b/help3xsl/help.html
@@ -22,7 +22,8 @@
window.open(newURL,'_self');
}else{
// URL came from elsewhere, direct access to webroot, we redirect to main Help page
- window.open('latest/en-US/text/shared/main0108.html?&DbPAR=WRITER&System=WIN','_self');
+ var userLang = navigator.language || navigator.userLanguage;
+ window.open('latest/'+userLang+'/text/shared/main0108.html?&DbPAR=WRITER&System=WIN','_self');
}
</script>
</body>