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