Possibly fixed lang detection script

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@939 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Alexis Deveria 2009-11-12 21:28:04 +00:00
parent 6f4a74dad9
commit 6d30a6b7ee
1 changed files with 1 additions and 5 deletions

View File

@ -12,12 +12,8 @@ var put_locale = function(svgCanvas, given_param){
if (lang_param == "")
return;
}
if(typeof(lang_param) != 'string') {
alert(typeof(lang_param));
alert(lang_param)
}
// don't bother on first run if language is English
if(lang_param.indexOf("en") == 0) return;
if(String(lang_param).indexOf("en") == 0) return;
}
var url = "locale/lang." + lang_param + ".js";