aboutsummaryrefslogtreecommitdiffstats
path: root/openo-portal/portal-extsys/src/main/webapp/extsys/vnfm/js/loadi18n_nsoc.js
diff options
context:
space:
mode:
authorsunqi310 <sun.qi310@zte.com.cn>2016-09-14 15:31:25 +0800
committersunqi310 <sun.qi310@zte.com.cn>2016-09-14 15:31:25 +0800
commit3d042d10258e3c6763bedb7da1071c7568788e73 (patch)
tree5b9ee3cafcf5d211b7205127807711703526502d /openo-portal/portal-extsys/src/main/webapp/extsys/vnfm/js/loadi18n_nsoc.js
parentd089cf2631c2d647b97977bff905a2bdbff93986 (diff)
Add extsys gui
Change-Id: Ifd4007f7f41b6efcc5abb120a1edf3e81f213d6d Signed-off-by: sunqi310 <sun.qi310@zte.com.cn>
Diffstat (limited to 'openo-portal/portal-extsys/src/main/webapp/extsys/vnfm/js/loadi18n_nsoc.js')
-rw-r--r--openo-portal/portal-extsys/src/main/webapp/extsys/vnfm/js/loadi18n_nsoc.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/openo-portal/portal-extsys/src/main/webapp/extsys/vnfm/js/loadi18n_nsoc.js b/openo-portal/portal-extsys/src/main/webapp/extsys/vnfm/js/loadi18n_nsoc.js
new file mode 100644
index 00000000..c809aa26
--- /dev/null
+++ b/openo-portal/portal-extsys/src/main/webapp/extsys/vnfm/js/loadi18n_nsoc.js
@@ -0,0 +1,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/'); \ No newline at end of file