[Libreoffice-commits] help.git: help3xsl/index.html
Olivier Hallot
olivier.hallot at libreoffice.org
Thu Aug 31 22:21:44 UTC 2017
help3xsl/index.html | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit ec8bc0cdb172478c9825dc434219519f702c2ac7
Author: Olivier Hallot <olivier.hallot at libreoffice.org>
Date: Thu Aug 31 17:54:23 2017 -0300
Add language detector when landing in helponline
Change-Id: I3481024a7503ea12d9bf8075e3045ab2b8801d20
Reviewed-on: https://gerrit.libreoffice.org/41773
Reviewed-by: Olivier Hallot <olivier.hallot at edx.srv.br>
Tested-by: Olivier Hallot <olivier.hallot at edx.srv.br>
diff --git a/help3xsl/index.html b/help3xsl/index.html
index 47cc54b26..9300f1b86 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>
More information about the Libreoffice-commits
mailing list