diff options
Diffstat (limited to 'umc-iui/src/main/resources/webroot/umc-pm/js/i18n/loadi18n.js')
-rw-r--r-- | umc-iui/src/main/resources/webroot/umc-pm/js/i18n/loadi18n.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/umc-iui/src/main/resources/webroot/umc-pm/js/i18n/loadi18n.js b/umc-iui/src/main/resources/webroot/umc-pm/js/i18n/loadi18n.js new file mode 100644 index 00000000..5a97de8d --- /dev/null +++ b/umc-iui/src/main/resources/webroot/umc-pm/js/i18n/loadi18n.js @@ -0,0 +1,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));
+ }
+ }
+ }
+ });
+}
+
+
|