diff options
author | Olivier Hallot <olivier.hallot@libreoffice.org> | 2018-02-12 15:10:39 -0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2018-02-12 19:07:40 +0100 |
commit | 1b361a83c014ff9c8c2b80bbe779387ef0a209f5 (patch) | |
tree | 278750acd7dad22d5e6f248584f090bb8d01633f | |
parent | 145fe1d4c0d697cd15619dd682c622d3c146d95f (diff) |
Better handling of user language in help online
Change-Id: I6a14081321cfd94fe1efb1f2b5fd23f20d4a27fc
Reviewed-on: https://gerrit.libreoffice.org/49613
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
-rw-r--r-- | help3xsl/index2.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/help3xsl/index2.html b/help3xsl/index2.html index 58a17f6271..43816853c1 100644 --- a/help3xsl/index2.html +++ b/help3xsl/index2.html @@ -49,7 +49,8 @@ window.open(newURL,'_self'); }else{ // URL came from elsewhere, direct access to webroot, we redirect to main Help page - window.open('en-US/text/shared/main0108.html?&DbPAR=WRITER&System=WIN','_self'); + var userLang = navigator.language || navigator.userLanguage; + window.open(userLang + '/text/shared/main0108.html?&DbPAR=WRITER&System=WIN','_self'); } </script> </body> |