aboutsummaryrefslogtreecommitdiffstats
path: root/discovery-ui/src/main/resources/iui/microservices/i18n
diff options
context:
space:
mode:
authorHuabingZhao <zhao.huabing@zte.com.cn>2017-07-04 05:15:15 +0000
committerHuabingZhao <zhao.huabing@zte.com.cn>2017-07-04 05:51:17 +0000
commit5353f7df61d16d6624ba033627a7d09160fb679c (patch)
treec5dd805b7c1655589a0edaf0a6a7d54e78fec539 /discovery-ui/src/main/resources/iui/microservices/i18n
parenta3fa8cc2c6fa2883bc88a8244cbce5cacfd4fadf (diff)
migrate discovery source codes from OPEN-O
Change-Id: I65396f0ed5f85542e8b17b509fc30073bf7f959e Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
Diffstat (limited to 'discovery-ui/src/main/resources/iui/microservices/i18n')
-rw-r--r--discovery-ui/src/main/resources/iui/microservices/i18n/loadi18nApp_iui-discover_view.js43
-rw-r--r--discovery-ui/src/main/resources/iui/microservices/i18n/msb-iui-discover-i18n-en-US.properties164
-rw-r--r--discovery-ui/src/main/resources/iui/microservices/i18n/msb-iui-discover-i18n-zh-CN.properties161
3 files changed, 368 insertions, 0 deletions
diff --git a/discovery-ui/src/main/resources/iui/microservices/i18n/loadi18nApp_iui-discover_view.js b/discovery-ui/src/main/resources/iui/microservices/i18n/loadi18nApp_iui-discover_view.js
new file mode 100644
index 0000000..a1cbb23
--- /dev/null
+++ b/discovery-ui/src/main/resources/iui/microservices/i18n/loadi18nApp_iui-discover_view.js
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2016 ZTE, Inc. and others.
+ *
+ * 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_onap_msb_discover_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/discovery-ui/src/main/resources/iui/microservices/i18n/msb-iui-discover-i18n-en-US.properties b/discovery-ui/src/main/resources/iui/microservices/i18n/msb-iui-discover-i18n-en-US.properties
new file mode 100644
index 0000000..b02510e
--- /dev/null
+++ b/discovery-ui/src/main/resources/iui/microservices/i18n/msb-iui-discover-i18n-en-US.properties
@@ -0,0 +1,164 @@
+#
+# Copyright 2016 ZTE, Inc. and others.
+#
+# 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_onap_msb_discover_title=MicroService Bus-Service Discover
+org_onap_msb_discover_banner_title= —— Service Discover
+org_onap_msb_discover_btn_mng=Service Manage
+org_onap_msb_discover_search_tip=Please enter the service key
+org_onap_msb_discover_btn_search=Search
+
+org_onap_msb_route_chinese_name=
+org_onap_msb_route_english_name=MicroService Bus
+org_onap_msb_discover_form_servicelist=Service List
+
+org_onap_msb_discover_btn_addservice=Service Register
+org_onap_msb_discover_form_service_no=No
+org_onap_msb_discover_form_servicename=Service Name
+org_onap_msb_discover_form_version=Version
+org_onap_msb_discover_form_protocol=Protocol
+org_onap_msb_discover_form_visualrange=Visualrange
+org_onap_msb_discover_form_serviceurl=Url
+org_onap_msb_discover_form_status=Status
+org_onap_msb_discover_form_control=Control
+
+
+org_onap_msb_discover_mng_title=MicroService Bus-Service Manage
+org_onap_msb_discover_admin_banner_title= —— Service Manage
+org_onap_msb_discover_btn_list=Service Discover
+
+org_onap_msb_discover_searchtype_all=All
+org_onap_msb_discover_searchtype_servicename=Service Name
+org_onap_msb_discover_searchtype_host=HOST
+org_onap_msb_discover_searchtype_url=URL
+org_onap_msb_discover_searchtype_namespace=NameSpace
+
+//table
+org_onap_msb_route-table-sLengthMenu=View _MENU_ records
+org_onap_msb_route-table-sZeroRecords=No matching records found
+org_onap_msb_route-table-sInfo=Found total _TOTAL_ records
+org_onap_msb_route-table-sInfoEmpty=No records found to show
+org_onap_msb_route-table-sGroupActions=_TOTAL_ records selected:
+org_onap_msb_route-table-sAjaxRequestGeneralError=Could not complete request. Please check your internet connection.
+org_onap_msb_route-table-sEmptyTable=No data available in table
+org_onap_msb_route-table-sPrevious=Prev
+org_onap_msb_route-table-sNext=Next
+org_onap_msb_route-table-sPage=Page
+org_onap_msb_route-table-sPageOf=of
+org_onap_msb_route-table-search=Search:
+org_onap_msb_route-table-infofilter=(Filter from _MAX_ Records)
+
+org_onap_msb_discover_err_service_del_ask=Sure to delete[Name:{0} - Version:{1}]Service?
+org_onap_msb_discover_service_del_success=Service Delete success
+org_onap_msb_discover_service_del_fail=Service delete failed:
+
+
+org_onap_msb_route_property_ttl=Tip:
+org_onap_msb_discover_property_normal=normal
+org_onap_msb_discover_property_abnormal=abnormal
+org_onap_msb_route_form_intersystem=OutSystem
+org_onap_msb_route_form_insystem=InSystem
+
+org_onap_msb_discover_property_lb_param=Load balance param
+org_onap_msb_discover_property_health_param=Health check param
+
+org_onap_msb_route_box_btn_delete=Delete
+org_onap_msb_route_box_btn_update=Edit
+org_onap_msb_route_box_btn_view=View
+
+
+org_onap_msb_discover_form_saveinfo=Service Info saving...
+org_onap_msb_discover_form_baseinfo=Basic Info
+org_onap_msb_discover_form_advancedinfo=Advanced
+org_onap_msb_discover_property_default_1=default:1
+org_onap_msb_discover_property_default_10=default:10
+org_onap_msb_discover_property_second=s
+org_onap_msb_route_form_btn_cancel=Cancel
+org_onap_msb_route_form_btn_save=Save
+org_onap_msb_route_form_btn_close=Close
+
+
+org_onap_msb_discover_form_version_tip=format:v(lowercase) + digital
+org_onap_msb_discover_form_lb=Load balance
+org_onap_msb_discover_form_ifpublish=Whether to publish to service route
+org_onap_msb_discover_form_ifhttppublish=Whether to redefine new publish port
+org_onap_msb_discover_form_publishport=Publish port
+org_onap_msb_discover_form_publishport_range=range:{0}-{1}
+org_onap_msb_discover_form_hostlist=Host List
+org_onap_msb_discover_form_addhost=Add Host
+org_onap_msb_discover_form_publish=Service Publish
+org_onap_msb_discover_form_target_tip=Published as
+org_onap_msb_route_form_btn_reset=Reset
+org_onap_msb_route_form_btn_return=Return
+org_onap_msb_route_form_btn_close=Close
+
+org_onap_msb_discover_lbpolicy_round=round-robin
+org_onap_msb_discover_lbpolicy_leastconn=least_conn
+org_onap_msb_discover_lbpolicy_clientcustom=client_custom
+org_onap_msb_discover_form_title_add=Service Register
+org_onap_msb_discover_form_title_update=Service Edit
+org_onap_msb_discover_form_title_view= Service View
+org_onap_msb_discover_node_title=Add Host
+org_onap_msb_discover_node_title_update=Edit Host
+
+org_onap_msb_discover_validator_ttl_empty=The new TTL cannot be empty
+org_onap_msb_discover_validator_interval_empty=The checkInterval cannot be empty
+org_onap_msb_discover_validator_timeOut_empty=The timeOut cannot be empty
+org_onap_msb_discover_validator_healthurl_empty=The check URL cannot be empty
+org_onap_msb_discover_err_host_repeat=The host ({0}:{1})) has been in existence
+org_onap_msb_discover_err_host_del_ask=Are you sure to delete Host[{0}:{1}]?
+org_onap_msb_discover_err_host_leastone=Please enter at least one HOST address
+org_onap_msb_discover_err_visualrange_empty= Please select the service visibleRange
+org_onap_msb_discover_err_url_empty=Protocol for {0} services: URL cannot be empty
+org_onap_msb_discover_err_service_repeat=Service(Name:{0},Protocol:{1},namespace:{2}) has been published
+
+
+
+org_onap_msb_discover_validator_ip_format=Please fill in the correct IP
+org_onap_msb_discover_validator_url_head_format=url address Begin with /, cannot end with /
+org_onap_msb_discover_validator_url_head_only_format=url address Begin with/
+org_onap_msb_discover_validator_url_format=The service URL format:ip:port/url
+org_onap_msb_discover_validator_url_line_format=Name cannot contain /
+org_onap_msb_discover_validator_content_format=Special symbols and Chinese name can not be filled in
+org_onap_msb_discover_validator_name_empty=Please enter the service name
+org_onap_msb_discover_validator_url_empty=Please enter the URL address
+org_onap_msb_discover_validator_server_empty=Please enter the Host address
+org_onap_msb_discover_validator_protocol_empty=Please select a service protocol
+org_onap_msb_discover_validator_type_empty=Please select a service type
+org_onap_msb_discover_validator_digits=Please enter a number为系统配置,不允许输入
+org_onap_msb_discover_validator_min=number must be > 0
+org_onap_msb_discover_validator_zero=number must be > 0
+org_onap_msb_discover_validator_host_ip_empty=Please enter the Host IP
+org_onap_msb_discover_validator_host_port_empty=Please enter the Host Port
+
+org_onap_msb_discover_form_namespace=NameSpace
+org_onap_msb_discover_form_networkPlaneType=Network Plane
+org_onap_msb_discover_form_networkPlaneType_tip=Multiple use | space
+org_onap_msb_discover_form_publish_port_tip=Multiple use | space(https|http)
+org_onap_msb_discover_property_ha_role=ha_role
+
+org_onap_msb_discover_form_labels=Labels
+org_onap_msb_discover_form_labels_tip=Format key:value, press enter to add a new Label
+org_onap_msb_discover_err_label_format=Label is wrong,Format must be "key:value"
+
+org_onap_msb_discover_form_metadata_tip=Format key:value, press enter to add a new Label
+org_onap_msb_discover_err_metadata_format=Label is wrong,Format must be "key:value"
+
+org_onap_msb_discover_validator_healthurl_http=HTTP HealthCheck URL must be start with 'http://'
+org_onap_msb_discover_validator_healthurl_tcp=TCP HealthCheck URL Format:IP|domain name:Port
+org_onap_msb_discover_err_namespace_err=namespace:{0} is the system configuration, is not allowed to enter
+
+org_onap_msb_discover_validator_publish_port_format=publish port is wrong,Multiple use | space
+
diff --git a/discovery-ui/src/main/resources/iui/microservices/i18n/msb-iui-discover-i18n-zh-CN.properties b/discovery-ui/src/main/resources/iui/microservices/i18n/msb-iui-discover-i18n-zh-CN.properties
new file mode 100644
index 0000000..cfcbf5c
--- /dev/null
+++ b/discovery-ui/src/main/resources/iui/microservices/i18n/msb-iui-discover-i18n-zh-CN.properties
@@ -0,0 +1,161 @@
+#
+# Copyright 2016 ZTE, Inc. and others.
+#
+# 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_onap_msb_discover_title=ZTE 微服务-服务发现
+org_onap_msb_discover_banner_title= —— 微服务发现
+org_onap_msb_discover_btn_mng=服务管理
+org_onap_msb_discover_search_tip=请输入服务关键字
+org_onap_msb_discover_btn_search=查 询
+
+org_onap_msb_route_chinese_name=微服务
+org_onap_msb_route_english_name=MicroService Bus
+org_onap_msb_discover_form_servicelist=服务列表
+
+org_onap_msb_discover_btn_addservice=服务注册
+org_onap_msb_discover_form_service_no=序号
+org_onap_msb_discover_form_servicename=服务名
+org_onap_msb_discover_form_version=版本号
+org_onap_msb_discover_form_protocol=服务协议
+org_onap_msb_discover_form_visualrange=服务可见范围
+org_onap_msb_discover_form_serviceurl=服务URL
+org_onap_msb_discover_form_status=状态
+org_onap_msb_discover_form_control=操作
+
+
+org_onap_msb_discover_mng_title=ZTE 微服务-服务管理
+org_onap_msb_discover_admin_banner_title= —— 微服务管理
+org_onap_msb_discover_btn_list=服务发现
+
+org_onap_msb_discover_searchtype_all=全部
+org_onap_msb_discover_searchtype_servicename=服务名
+org_onap_msb_discover_searchtype_host=服务HOST
+org_onap_msb_discover_searchtype_url=服务URL
+org_onap_msb_discover_searchtype_namespace=命名空间
+
+//表格相关
+org_onap_msb_route-table-sLengthMenu=每页 _MENU_ 条结果
+org_onap_msb_route-table-sZeroRecords=没有匹配结果
+org_onap_msb_route-table-sInfo=总共找到 _TOTAL_ 条结果
+org_onap_msb_route-table-sInfoEmpty=共 0 项
+org_onap_msb_route-table-sGroupActions=_TOTAL_ 条结果被选择:
+org_onap_msb_route-table-sAjaxRequestGeneralError=不能完成请求,请检查您的网络连接情况。
+org_onap_msb_route-table-sEmptyTable=表中数据为空
+org_onap_msb_route-table-sPrevious=前页
+org_onap_msb_route-table-sNext=下页
+org_onap_msb_route-table-sPage=第
+org_onap_msb_route-table-sPageOf=页,总页数:
+org_onap_msb_route-table-search=搜索:
+org_onap_msb_route-table-infofilter=(从 _MAX_ 条记录过滤)
+
+org_onap_msb_discover_err_service_del_ask=确定删除[服务名:{0} - 版本号:{1}]服务?
+org_onap_msb_discover_service_del_success=服务删除成功
+org_onap_msb_discover_service_del_fail=服务删除失败:
+
+org_onap_msb_route_property_ttl=提示:
+org_onap_msb_discover_property_normal=正常
+org_onap_msb_discover_property_abnormal=异常
+org_onap_msb_route_form_intersystem=系统间
+org_onap_msb_route_form_insystem=系统内
+
+org_onap_msb_discover_property_lb_param=负载均衡参数
+org_onap_msb_discover_property_health_param=健康检查参数
+
+org_onap_msb_route_box_btn_delete=删除
+org_onap_msb_route_box_btn_update=修改
+org_onap_msb_route_box_btn_view=查看
+
+
+org_onap_msb_discover_form_saveinfo=服务信息保存中...
+org_onap_msb_discover_form_baseinfo=基本信息
+org_onap_msb_discover_form_advancedinfo=高级属性
+org_onap_msb_discover_property_default_1=默认值:1
+org_onap_msb_discover_property_default_10=默认值:10
+org_onap_msb_discover_property_second=秒
+org_onap_msb_route_form_btn_cancel=取消
+org_onap_msb_route_form_btn_save=保存
+org_onap_msb_route_form_btn_close=关闭
+
+
+org_onap_msb_discover_form_version_tip=格式:v(小写)+数字
+org_onap_msb_discover_form_lb=负载均衡策略
+org_onap_msb_discover_form_ifpublish=是否发布到服务路由
+org_onap_msb_discover_form_ifhttppublish=是否自定义发布端口
+org_onap_msb_discover_form_publishport=发布端口
+org_onap_msb_discover_form_publishport_range=范围:{0}-{1}
+org_onap_msb_discover_form_hostlist=服务实例列表
+org_onap_msb_discover_form_addhost=添加实例
+org_onap_msb_discover_form_publish=服务发布地址
+org_onap_msb_discover_form_target_tip=发布为
+org_onap_msb_route_form_btn_reset=重置
+org_onap_msb_route_form_btn_return=返回
+org_onap_msb_route_form_btn_close=关闭
+
+org_onap_msb_discover_lbpolicy_round=轮询
+org_onap_msb_discover_lbpolicy_leastconn=最小连接数
+org_onap_msb_discover_lbpolicy_clientcustom=客户端自定义
+org_onap_msb_discover_form_title_add=服务注册
+org_onap_msb_discover_form_title_update=服务修改
+org_onap_msb_discover_form_title_view=服务查看
+org_onap_msb_discover_node_title=添加微服务实例
+org_onap_msb_discover_node_title_update=修改微服务实例
+
+org_onap_msb_discover_validator_ttl_empty=请输入健康检查TTL值
+org_onap_msb_discover_validator_interval_empty=请输入健康检查checkInterval值
+org_onap_msb_discover_validator_timeOut_empty=请输入健康检查TimeOut值
+org_onap_msb_discover_validator_healthurl_empty=请输入健康检查URL值
+org_onap_msb_discover_err_host_repeat=服务实例({0}:{1})已存在
+org_onap_msb_discover_err_host_del_ask=确定删除服务实例[{0}:{1}]?
+org_onap_msb_discover_err_host_leastone=请至少输入一个实例地址
+org_onap_msb_discover_err_visualrange_empty=请选择服务可见范围
+org_onap_msb_discover_err_url_empty=协议为{0}的服务:URL地址不能为空
+org_onap_msb_discover_err_service_repeat=MSB服务(服务名:{0},协议:{1},命名空间:{2})已发布
+
+//输入效验提示
+org_onap_msb_discover_validator_ip_format=请填写正确的IP地址
+org_onap_msb_discover_validator_url_head_format=url地址以/开头,不能以/结尾
+org_onap_msb_discover_validator_url_head_only_format=url地址以/开头
+org_onap_msb_discover_validator_url_format=服务地址格式:ip:port/url
+org_onap_msb_discover_validator_url_line_format=名称不能包含/
+org_onap_msb_discover_validator_content_format=名称不能输入特殊符号和中文
+org_onap_msb_discover_validator_name_empty=请输入服务名
+org_onap_msb_discover_validator_url_empty=请输入URL地址
+org_onap_msb_discover_validator_server_empty=请输入服务器地址
+org_onap_msb_discover_validator_protocol_empty=请选择服务协议
+org_onap_msb_discover_validator_type_empty=请选择服务类型
+org_onap_msb_discover_validator_digits=请输入整数
+org_onap_msb_discover_validator_min=不能为负数
+org_onap_msb_discover_validator_zero=不能为负数或0
+org_onap_msb_discover_validator_host_ip_empty=请输入实例IP
+org_onap_msb_discover_validator_host_port_empty=请输入实例Port
+
+org_onap_msb_discover_form_namespace=命名空间
+org_onap_msb_discover_form_networkPlaneType=网络平面
+org_onap_msb_discover_form_networkPlaneType_tip=多个请用|分隔
+org_onap_msb_discover_form_publish_port_tip=多个请用|分隔(https|http)
+org_onap_msb_discover_property_ha_role=主备状态
+
+org_onap_msb_discover_form_labels=服务标签
+org_onap_msb_discover_form_labels_tip=格式key:value,按回车键添加新标签,双击标签修改
+org_onap_msb_discover_err_label_format=服务标签格式有误,标签格式key:value
+
+org_onap_msb_discover_form_metadata_tip=格式key:value,按回车键添加,双击修改
+org_onap_msb_discover_err_metadata_format=MetaData格式有误,格式key:value
+
+org_onap_msb_discover_validator_healthurl_http=HTTP健康检查URL值须以http://开头
+org_onap_msb_discover_validator_healthurl_tcp=TCP健康检查URL格式:IP|域名:Port
+org_onap_msb_discover_err_namespace_err=命名空间:{0}为系统配置,不允许输入
+
+org_onap_msb_discover_validator_publish_port_format=端口格式有误,多个请用|分隔 \ No newline at end of file