From 94661db83d2d042dbd0be27ed67e36ad47dbd202 Mon Sep 17 00:00:00 2001 From: Giulio Cesare Solaroli Date: Thu, 10 Sep 2015 21:38:57 +0200 Subject: [PATCH] Fixed issue with browsers with no language set. --- frontend/delta/js/Clipperz/PM/Strings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/delta/js/Clipperz/PM/Strings.js b/frontend/delta/js/Clipperz/PM/Strings.js index 257e2c3..2943858 100644 --- a/frontend/delta/js/Clipperz/PM/Strings.js +++ b/frontend/delta/js/Clipperz/PM/Strings.js @@ -272,7 +272,7 @@ Clipperz.PM.Strings.Languages.initSetup = function() { var language; var languageParser; - language = navigator.language || navigator.userLanguage; // en, en-US, .... "de", "nb-no" + language = navigator.language || navigator.userLanguage || 'en'; // en, en-US, .... "de", "nb-no" languageParser = new RegExp("language=([a-z]{2}(?:\-[a-z]{2})?)(\&|$)", "i"); if (languageParser.test(window.location.search)) { language = RegExp.$1;