- if( ns._localeLang ) {
- if( !ns._locales[ns._localeLang] ) {
- jQuery.ajax({
- url: "js/locale/"+ ns._localeLang +".js",
- async: false,
- dataType: "json",
- success: function(res) {
- ns._locales[ns._localeLang] = res;
- },
- error: function(xhr, textStatus, errorThrown) {
- alert(textStatus +": "+ errorThrown);
- },
- });
- }
-
- text = ns._locales[ns._localeLang][text] || text;
- }