[Libreoffice-commits] help.git: help3xsl/index2.html
Olivier Hallot
olivier.hallot at libreoffice.org
Mon Feb 12 18:08:36 UTC 2018
help3xsl/index2.html | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 1b361a83c014ff9c8c2b80bbe779387ef0a209f5
Author: Olivier Hallot <olivier.hallot at 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.hallot at libreoffice.org>
Tested-by: Olivier Hallot <olivier.hallot at 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>
More information about the Libreoffice-commits
mailing list