diff options
author | 2016-09-14 15:31:25 +0800 | |
---|---|---|
committer | 2016-09-14 15:31:25 +0800 | |
commit | 3d042d10258e3c6763bedb7da1071c7568788e73 (patch) | |
tree | 5b9ee3cafcf5d211b7205127807711703526502d /openo-portal/portal-extsys/src/main/webapp/extsys/sdn/i18n | |
parent | d089cf2631c2d647b97977bff905a2bdbff93986 (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/sdn/i18n')
3 files changed, 140 insertions, 0 deletions
diff --git a/openo-portal/portal-extsys/src/main/webapp/extsys/sdn/i18n/loadi18nApp.js b/openo-portal/portal-extsys/src/main/webapp/extsys/sdn/i18n/loadi18nApp.js new file mode 100644 index 00000000..df993437 --- /dev/null +++ b/openo-portal/portal-extsys/src/main/webapp/extsys/sdn/i18n/loadi18nApp.js @@ -0,0 +1,42 @@ +/*
+ * Copyright (C) 2015 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',
+ callback: function() {
+ var i18nItems = $('[name_i18n=org_openo_nfv_roc_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');
+ 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));
+ }
+ }
+ }
+ });
+}
+var lang = getLanguage();
+loadPropertiesSideMenu(lang, 'roc-sdn-iui-i18n', 'i18n/');
+
diff --git a/openo-portal/portal-extsys/src/main/webapp/extsys/sdn/i18n/roc-sdn-iui-i18n-en-US.properties b/openo-portal/portal-extsys/src/main/webapp/extsys/sdn/i18n/roc-sdn-iui-i18n-en-US.properties new file mode 100644 index 00000000..efdaea5c --- /dev/null +++ b/openo-portal/portal-extsys/src/main/webapp/extsys/sdn/i18n/roc-sdn-iui-i18n-en-US.properties @@ -0,0 +1,49 @@ +#
+# Copyright (C) 2015 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.
+#
+
+roc-sdn-iui-common-tip=Tip:
+
+roc-sdn-iui-text-register=Register SDN controller info
+
+roc-sdn-iui-message-growl-msg-title=SDN controller info
+roc-sdn-iui-message-query-fail=Query SDN controller failed.
+roc-sdn-iui-message-save-success=Save successfully.
+roc-sdn-iui-message-save-fail=Save failed.
+roc-sdn-iui-message-update-success=Update successfully.
+roc-sdn-iui-message-update-fail=Update failed.
+roc-sdn-iui-message-delete-confirm=Do you want to delete the current SDN controller?
+roc-sdn-iui-message-delete-success=SDN controller deleted successfully.
+roc-sdn-iui-message-delete-fail=SDN controller deleted failed.
+
+roc-sdn-iui-text-update=Modify SDN controller info
+roc-sdn-iui-text-registerBtn=Register
+roc-sdn-iui-text-name=Name
+roc-sdn-iui-text-type=Type
+roc-sdn-iui-text-userName=Username
+roc-sdn-iui-text-password=Password
+roc-sdn-iui-text-cancelBtn=Cancel
+roc-sdn-iui-text-saveBtn=Save
+roc-sdn-iui-text-status-normal=Normal
+roc-sdn-iui-text-status-fail=Alarm
+roc-sdn-iui-text-total=Total
+roc-sdn-iui-text-total-sdn= of SDN Controller
+
+roc-sdn-iui-validate-name=Please enter a name
+roc-sdn-iui-validate-url-required=Please enter the right URL
+roc-sdn-iui-validate-url=Example: http://10.0.0.1:8181
+roc-sdn-iui-validate-username=Please enter a username
+roc-sdn-iui-validate-password=Please enter a password
+roc-sdn-iui-text-url-tip=Example: http://10.0.0.1:8181
\ No newline at end of file diff --git a/openo-portal/portal-extsys/src/main/webapp/extsys/sdn/i18n/roc-sdn-iui-i18n-zh-CN.properties b/openo-portal/portal-extsys/src/main/webapp/extsys/sdn/i18n/roc-sdn-iui-i18n-zh-CN.properties new file mode 100644 index 00000000..a8e7dbcb --- /dev/null +++ b/openo-portal/portal-extsys/src/main/webapp/extsys/sdn/i18n/roc-sdn-iui-i18n-zh-CN.properties @@ -0,0 +1,49 @@ +#
+# Copyright (C) 2015 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.
+#
+
+roc-sdn-iui-common-tip=提示:
+
+roc-sdn-iui-text-register=注册SDN控制器信息
+
+roc-sdn-iui-message-growl-msg-title=SDN控制器信息
+roc-sdn-iui-message-query-fail=查询SDN控制器失败。
+roc-sdn-iui-message-save-success=保存成功。
+roc-sdn-iui-message-save-fail=保存失败。
+roc-sdn-iui-message-update-success=修改成功。
+roc-sdn-iui-message-update-fail=修改失败。
+roc-sdn-iui-message-delete-confirm=确定删除所选SDN控制器信息?
+roc-sdn-iui-message-delete-success=删除成功。
+roc-sdn-iui-message-delete-fail=删除失败。
+
+roc-sdn-iui-text-update=修改SDN控制器信息
+roc-sdn-iui-text-registerBtn=注册
+roc-sdn-iui-text-name=名称
+roc-sdn-iui-text-type=类型
+roc-sdn-iui-text-userName=用户名
+roc-sdn-iui-text-password=密码
+roc-sdn-iui-text-cancelBtn=取消
+roc-sdn-iui-text-saveBtn=保存
+roc-sdn-iui-text-status-normal=正常
+roc-sdn-iui-text-status-fail=报警
+roc-sdn-iui-text-total=共
+roc-sdn-iui-text-total-sdn= SDN控制器
+
+roc-sdn-iui-validate-name=请输入名称
+roc-sdn-iui-validate-url-required=请输入正确的URL
+roc-sdn-iui-validate-url=例如:http://10.0.0.1:8181
+roc-sdn-iui-validate-username=请输入用户名
+roc-sdn-iui-validate-password=请输入密码
+roc-sdn-iui-text-url-tip=例如:http://10.0.0.1:8181
\ No newline at end of file |