blob: 5a97de8d790a5f7769875b0140dfb216604c4bb7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
var lang = getLanguage();
function loadProperties(lang){
jQuery.i18n.properties({
language:lang,
name:'ngict-pm-iui-i18n',
path:'i18n/',
mode:'map',
callback: function() {
var i18nItems = $("[name_i18n=com_zte_ums_ngict_pm]");
for(var i=0;i<i18nItems.length;i++){
var $item = $(i18nItems.eq(i));
var itemId = $item.attr('id');
if(typeof($item.attr("title"))!="undefined"){
$item.attr("title", $.i18n.prop(itemId));
}else{
$item.text($.i18n.prop(itemId));
}
}
}
});
}
|