]> source.dussan.org Git - sonarqube.git/commitdiff
Fix l10n issue with IE
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Fri, 13 Jun 2014 08:59:50 +0000 (10:59 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Fri, 13 Jun 2014 08:59:58 +0000 (10:59 +0200)
sonar-server/src/main/js/translate.js

index 2d5883bf4447a5b1a7e58e37869b772d14f17d79..8dc0ba939216e5b325a396689151d04475177248 100644 (file)
@@ -75,7 +75,7 @@
 
 
   window.requestMessages = function() {
-    var currentLocale = navigator.language.replace('-', '_');
+    var currentLocale = (navigator.language || navigator.userLanguage).replace('-', '_');
     var cachedLocale = localStorage.getItem('l10n.locale');
     if (cachedLocale !== currentLocale) {
       localStorage.removeItem('l10n.timestamp');