diff options
author | Olivier Hallot <olivier.hallot@libreoffice.org> | 2017-09-04 15:20:13 -0300 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2017-09-05 21:45:31 +0200 |
commit | 88da65789dd8c641d9f2c20b7240e120e2fb9537 (patch) | |
tree | 5c734ed42b790da242a18d09d234372b69d63844 /help3xsl/help.html | |
parent | 9d09fe1dd6d9ad7036a42152e558d19cfced237f (diff) |
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.html | 3 |
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> |