From 6ec54555796505e22855c4145b84618d001cac92 Mon Sep 17 00:00:00 2001 From: jessica Date: Wed, 25 Aug 2010 11:37:55 -0700 Subject: [PATCH] If no translation is found, return original word (i.e. English word) --- .../classes/resources/resource.properties | 6 +---- .../classes/resources/resource_zh.properties | 19 +++++++++++---- ui/new/jsp/tab_instance.jsp | 24 +++++++++---------- .../com/cloud/utils/CloudResourceBundle.java | 2 +- 4 files changed, 28 insertions(+), 23 deletions(-) diff --git a/client/WEB-INF/classes/resources/resource.properties b/client/WEB-INF/classes/resources/resource.properties index b7a3baead51..0310e1c3f06 100644 --- a/client/WEB-INF/classes/resources/resource.properties +++ b/client/WEB-INF/classes/resources/resource.properties @@ -1,5 +1 @@ -computer = computer -disk = disk -computer_disk_hahaha = computer disk hahaha -monitor = monitor -keyboard = keyboard +Details = Details diff --git a/client/WEB-INF/classes/resources/resource_zh.properties b/client/WEB-INF/classes/resources/resource_zh.properties index 948c8e13203..307334f028f 100644 --- a/client/WEB-INF/classes/resources/resource_zh.properties +++ b/client/WEB-INF/classes/resources/resource_zh.properties @@ -1,5 +1,14 @@ -computer = 電腦 -disk = 硬碟 -computer_disk_hahaha = 電腦 硬碟 哈哈哈 !!! -monitor = 瑩幕 -keyboard = 鍵盤 +Details = 詳述 +Volume = 容積 +Statistics = 統計 +Zone = 區域 +Template = 模板 +Service = 服務 +HA = 高的可用性 +Created = 產生日期 +Account = 帳戶 +Domain = 領土 +Host = 主機 +ISO = 空白模板 + + diff --git a/ui/new/jsp/tab_instance.jsp b/ui/new/jsp/tab_instance.jsp index 599222ccad1..d3d2b6aeeb3 100755 --- a/ui/new/jsp/tab_instance.jsp +++ b/ui/new/jsp/tab_instance.jsp @@ -24,11 +24,11 @@
- Details <%=t.t("computer")%>
+ <%=t.t("Details")%>
- Volume
+ <%=t.t("Volume")%>
- Statistics
+ <%=t.t("Statistics")%>
@@ -47,7 +47,7 @@
- Zone:
+ <%=t.t("Zone")%>:
@@ -57,7 +57,7 @@
- Template:
+ <%=t.t("Template")%>:
@@ -67,7 +67,7 @@
- Service:
+ <%=t.t("Service")%>:
@@ -77,7 +77,7 @@
- HA:
+ <%=t.t("HA")%>:
@@ -89,7 +89,7 @@
- Created:
+ <%=t.t("Created")%>:
@@ -99,7 +99,7 @@
- Account:
+ <%=t.t("Account")%>:
@@ -109,7 +109,7 @@
- Domain:
+ <%=t.t("Domain")%>:
@@ -119,7 +119,7 @@
- Host:
+ <%=t.t("Host")%>:
@@ -129,7 +129,7 @@
- ISO:
+ <%=t.t("ISO")%>:
diff --git a/utils/src/com/cloud/utils/CloudResourceBundle.java b/utils/src/com/cloud/utils/CloudResourceBundle.java index 146c54e50bb..69e77275928 100755 --- a/utils/src/com/cloud/utils/CloudResourceBundle.java +++ b/utils/src/com/cloud/utils/CloudResourceBundle.java @@ -19,7 +19,7 @@ public class CloudResourceBundle { try { return _bundle.getString(key); } catch(Exception e) { - return "##" + key + "##"; + return key; //if translation is not found, just return original word (i.e. English). } }