summaryrefslogtreecommitdiffstats
path: root/apiroute/apiroute-service
diff options
context:
space:
mode:
Diffstat (limited to 'apiroute/apiroute-service')
-rw-r--r--apiroute/apiroute-service/src/main/resources/iui-route/i18n/loadi18nApp_iui-route_view.js8
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)));
}