mirror of
http://git.whoc.org.uk/git/password-manager.git
synced 2024-11-14 18:49:03 +01:00
Fixed issue with browsers with no language set.
This commit is contained in:
parent
e161d4d46b
commit
94661db83d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user