help3xsl/index2.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 1b361a83c014ff9c8c2b80bbe779387ef0a209f5 Author: Olivier Hallot <olivier.hal...@libreoffice.org> Date: Mon Feb 12 15:10:39 2018 -0200 Better handling of user language in help online Change-Id: I6a14081321cfd94fe1efb1f2b5fd23f20d4a27fc Reviewed-on: https://gerrit.libreoffice.org/49613 Reviewed-by: Olivier Hallot <olivier.hal...@libreoffice.org> Tested-by: Olivier Hallot <olivier.hal...@libreoffice.org> diff --git a/help3xsl/index2.html b/help3xsl/index2.html index 58a17f627..43816853c 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> _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits