diff options
author | Zhaoxing Meng <meng.zhaoxing1@zte.com.cn> | 2018-07-14 06:27:17 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-07-14 06:27:17 +0000 |
commit | 2c6426336be4251d5ac3461de4708aa10da43805 (patch) | |
tree | 1106f721b4b5a89d64fe339fcccf59cb12417204 | |
parent | 21253185c17ef038e71146112fc948b7c9ad572f (diff) | |
parent | 38e3f07a034aa0e9579a1adcee251b94ef2784ae (diff) |
Merge "Remove Chinese comments"
-rw-r--r-- | apiroute/apiroute-service/src/main/resources/iui-route/i18n/loadi18nApp_iui-route_view.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apiroute/apiroute-service/src/main/resources/iui-route/i18n/loadi18nApp_iui-route_view.js b/apiroute/apiroute-service/src/main/resources/iui-route/i18n/loadi18nApp_iui-route_view.js index f1b0277..a85a09a 100644 --- a/apiroute/apiroute-service/src/main/resources/iui-route/i18n/loadi18nApp_iui-route_view.js +++ b/apiroute/apiroute-service/src/main/resources/iui-route/i18n/loadi18nApp_iui-route_view.js @@ -17,16 +17,16 @@ function loadPropertiesSideMenu(lang, propertiesFileNamePrefix, propertiesFilePa jQuery.i18n.properties({ // language:lang, name:propertiesFileNamePrefix, - path:propertiesFilePath, // 资源文件路径 - mode:'map', // 用 Map 的方式使用资源文件中的值 - callback: function() {// 加载成功后设置显示内容 + path:propertiesFilePath, + mode:'map', + callback: function() { var i18nItems = $('[name_i18n=org_onap_msb_route_ui_i18n]'); for(var i=0;i<i18nItems.length;i++){ var $item = $(i18nItems.eq(i)); var itemId = $item.attr('id'); var itemTitle = $item.attr('title'); - /** id存在时元素内容需要国际化,title存在时元素title需要国际化 */ + if(typeof($item.attr("title")) == "string"){ $item.attr("title", ($.i18n.prop(itemTitle))); } |