Possibly fixed lang detection script
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@939 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
6f4a74dad9
commit
6d30a6b7ee
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue