summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@libreoffice.org>2017-08-31 17:54:23 -0300
committerOlivier Hallot <olivier.hallot@edx.srv.br>2017-09-01 00:21:22 +0200
commitec8bc0cdb172478c9825dc434219519f702c2ac7 (patch)
tree19dcd4d2e39e5f08e0c4c1ec314921b0e958833b
parentd32748eb92d52f1163ff560529ac488dfb25a3b7 (diff)
Add language detector when landing in helponline
Change-Id: I3481024a7503ea12d9bf8075e3045ab2b8801d20 Reviewed-on: https://gerrit.libreoffice.org/41773 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
-rw-r--r--help3xsl/index.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/help3xsl/index.html b/help3xsl/index.html
index 47cc54b268..9300f1b866 100644
--- a/help3xsl/index.html
+++ b/help3xsl/index.html
@@ -11,7 +11,8 @@
</head>
<body>
<script type="text/javascript">
- 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>
</html>