diff options
Diffstat (limited to 'apiroute/apiroute-service/src/main/resources/iui-metrics/i18n')
3 files changed, 203 insertions, 0 deletions
diff --git a/apiroute/apiroute-service/src/main/resources/iui-metrics/i18n/loadi18nApp_iui-metrics_view.js b/apiroute/apiroute-service/src/main/resources/iui-metrics/i18n/loadi18nApp_iui-metrics_view.js new file mode 100644 index 0000000..47eea0b --- /dev/null +++ b/apiroute/apiroute-service/src/main/resources/iui-metrics/i18n/loadi18nApp_iui-metrics_view.js @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +function loadPropertiesSideMenu(lang, propertiesFileNamePrefix, propertiesFilePath){ + jQuery.i18n.properties({ + // language:lang, + name:propertiesFileNamePrefix, + path:propertiesFilePath, // 资源文件路径 + mode:'map', // 用 Map 的方式使用资源文件中的值 + callback: function() {// 加载成功后设置显示内容 + + var i18nItems = $('[name_i18n=org_openo_msb_metrics_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))); + } + if(undefined != itemId && typeof($item.attr("placeholder"))=="undefined"){ + $item.text($.i18n.prop(itemId)); + }else if(undefined != itemId && typeof($item.attr("placeholder"))!="undefined"){ + $item.attr("placeholder", $.i18n.prop(itemId)); + } + } + } + }); +} + + diff --git a/apiroute/apiroute-service/src/main/resources/iui-metrics/i18n/msb-iui-metrics-i18n-en-US.properties b/apiroute/apiroute-service/src/main/resources/iui-metrics/i18n/msb-iui-metrics-i18n-en-US.properties new file mode 100644 index 0000000..4521677 --- /dev/null +++ b/apiroute/apiroute-service/src/main/resources/iui-metrics/i18n/msb-iui-metrics-i18n-en-US.properties @@ -0,0 +1,82 @@ +# +# Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + + +org_openo_msb_metrics_btn_refresh=Refresh +org_openo_msb_metrics_iserr=This function cannot be accessed +org_openo_msb_metrics_jvm_title=JVM Status +org_openo_msb_metrics_jvm_time=JVM Run Time: +org_openo_msb_metrics_memory=Memory +org_openo_msb_metrics_thread=Thread +org_openo_msb_metrics_thread_num=Totals: +org_openo_msb_metrics_http_title=HTTP Access +org_openo_msb_metrics_rest_title=Rest interface traffic rankings +org_openo_msb_metrics_requests_title=HTTP traffic rankings +org_openo_msb_metrics_http_table_title=HTTP Access detailed list + +org_openo_msb_metrics_http_table_sn=SN +org_openo_msb_metrics_http_table_restname=Rest Name +org_openo_msb_metrics_http_table_count=Visits +org_openo_msb_metrics_http_table_max=Max response seconds +org_openo_msb_metrics_http_table_min=Min response seconds +org_openo_msb_metrics_http_table_mean=Mean response seconds +org_openo_msb_metrics_http_table_m1=1 minute visits on average +org_openo_msb_metrics_http_table_m5=5 minute visits on average + +org_openo_msb_metrics_jvm_memory_radius=JVM Memory Usage +org_openo_msb_metrics_jvm_memory_bar=JVM Memory Distribution +org_openo_msb_metrics_jvm_memory_bar_init=initialization +org_openo_msb_metrics_jvm_memory_bar_used=used +org_openo_msb_metrics_jvm_memory_bar_total=all + +org_openo_msb_metrics_jvm_memory_bar_heap=Heap +org_openo_msb_metrics_jvm_memory_bar_non-heap=Non-Heap +org_openo_msb_metrics_jvm_memory_bar_total-heap=Total +org_openo_msb_metrics_jvm_thread_chart=Thread Distribution +org_openo_msb_metrics_rest_bar_count=Visit Times + +org_openo_msb_route_content_title=Service Detail +//table +org_openo_msb_route-table-sLengthMenu=View _MENU_ records +org_openo_msb_route-table-sZeroRecords=No matching records found +org_openo_msb_route-table-sInfo=Found total _TOTAL_ records +org_openo_msb_route-table-sInfoEmpty=No records found to show +org_openo_msb_route-table-sGroupActions=_TOTAL_ records selected: +org_openo_msb_route-table-sAjaxRequestGeneralError=Could not complete request. Please check your internet connection. +org_openo_msb_route-table-sEmptyTable=No data available in table +org_openo_msb_route-table-sPrevious=Prev +org_openo_msb_route-table-sNext=Next +org_openo_msb_route-table-sPage=Page +org_openo_msb_route-table-sPageOf=of +org_openo_msb_route-table-search=Search: +org_openo_msb_route-table-infofilter=(Filter from _MAX_ Records) + + +org_openo_msb_metrics_hour=h/ +org_openo_msb_metrics_second=s +org_openo_msb_metrics_minute=m/ + +org_openo_msb_metrics_chart_save_picture=save picture as +org_openo_msb_metrics_chart_click_save=click save + +org_openo_msb_metrics_chart_line_change=switch line/bar chart + + + + + + + diff --git a/apiroute/apiroute-service/src/main/resources/iui-metrics/i18n/msb-iui-metrics-i18n-zh-CN.properties b/apiroute/apiroute-service/src/main/resources/iui-metrics/i18n/msb-iui-metrics-i18n-zh-CN.properties new file mode 100644 index 0000000..2080e4e --- /dev/null +++ b/apiroute/apiroute-service/src/main/resources/iui-metrics/i18n/msb-iui-metrics-i18n-zh-CN.properties @@ -0,0 +1,78 @@ +# +# Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + + +org_openo_msb_metrics_btn_refresh=刷新 +org_openo_msb_metrics_iserr=暂未提供此功能 +org_openo_msb_metrics_jvm_title=JVM状态 +org_openo_msb_metrics_jvm_time=JVM运行时间: +org_openo_msb_metrics_memory=内存 +org_openo_msb_metrics_thread=线程 +org_openo_msb_metrics_thread_num=线程总数: +org_openo_msb_metrics_http_title=HTTP访问 +org_openo_msb_metrics_rest_title=Rest接口访问量排行榜 +org_openo_msb_metrics_requests_title=HTTP访问量排行榜 +org_openo_msb_metrics_http_table_title=HTTP访问详细列表 + +org_openo_msb_metrics_http_table_sn=序号 +org_openo_msb_metrics_http_table_restname=访问名 +org_openo_msb_metrics_http_table_count=访问数 +org_openo_msb_metrics_http_table_max=最长响应秒数 +org_openo_msb_metrics_http_table_min=最短响应秒数 +org_openo_msb_metrics_http_table_mean=平均响应秒数 +org_openo_msb_metrics_http_table_m1=1分钟平均访问次数 +org_openo_msb_metrics_http_table_m5=5分钟平均访问次数 + +org_openo_msb_metrics_jvm_memory_radius=JVM 内存使用率 +org_openo_msb_metrics_jvm_memory_bar=JVM内存分布 +org_openo_msb_metrics_jvm_memory_bar_init=初始化 +org_openo_msb_metrics_jvm_memory_bar_used=已使用 +org_openo_msb_metrics_jvm_memory_bar_total=全部 + +org_openo_msb_metrics_jvm_memory_bar_heap=堆内存 +org_openo_msb_metrics_jvm_memory_bar_non-heap=非堆内存 +org_openo_msb_metrics_jvm_memory_bar_total-heap=总内存 +org_openo_msb_metrics_jvm_thread_chart=线程分布图 +org_openo_msb_metrics_rest_bar_count=访问次数 + +org_openo_msb_route_content_title=微服务详情 + +//表格相关 +org_openo_msb_route-table-sLengthMenu=每页 _MENU_ 条结果 +org_openo_msb_route-table-sZeroRecords=没有匹配结果 +org_openo_msb_route-table-sInfo=总共找到 _TOTAL_ 条结果 +org_openo_msb_route-table-sInfoEmpty=共 0 项 +org_openo_msb_route-table-sGroupActions=_TOTAL_ 条结果被选择: +org_openo_msb_route-table-sAjaxRequestGeneralError=不能完成请求,请检查您的网络连接情况。 +org_openo_msb_route-table-sEmptyTable=表中数据为空 +org_openo_msb_route-table-sPrevious=前页 +org_openo_msb_route-table-sNext=下页 +org_openo_msb_route-table-sPage=第 +org_openo_msb_route-table-sPageOf=页,总页数: +org_openo_msb_route-table-search=搜索: +org_openo_msb_route-table-infofilter=(从 _MAX_ 条记录过滤) + +org_openo_msb_metrics_hour=小时 +org_openo_msb_metrics_second=秒 +org_openo_msb_metrics_minute=分 + +org_openo_msb_metrics_chart_save_picture=保存为图片 +org_openo_msb_metrics_chart_click_save=点击保存 +org_openo_msb_metrics_chart_line_change=折线图/柱状图切换 + + + + |