help3xsl/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit ec8bc0cdb172478c9825dc434219519f702c2ac7 Author: Olivier Hallot <[email protected]> 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 <[email protected]> Tested-by: Olivier Hallot <[email protected]> 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> _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
