From 382cbf5105ad40e19c09dff7d6c13264948db311 Mon Sep 17 00:00:00 2001 From: will Date: Wed, 26 Jan 2011 11:51:19 -0800 Subject: [PATCH] bug 4556: localized string replacement for serviceoffering.jsp, snapshot.jsp, systemvm.jsp --- .../classes/resources/messages.properties | 17 ++++ ui/jsp/serviceoffering.jsp | 91 +++++++++---------- ui/jsp/snapshot.jsp | 66 +++++++------- ui/jsp/systemvm.jsp | 48 +++++----- 4 files changed, 116 insertions(+), 106 deletions(-) diff --git a/client/WEB-INF/classes/resources/messages.properties b/client/WEB-INF/classes/resources/messages.properties index b33e65699e4..4ab3c81008a 100644 --- a/client/WEB-INF/classes/resources/messages.properties +++ b/client/WEB-INF/classes/resources/messages.properties @@ -115,6 +115,7 @@ label.no.alerts=No Recent Alerts label.host.alerts=Host Alerts label.disk.volume=Disk Volume label.snapshots=Snapshots +label.snapshot=Snapshot label.accounts=Accounts label.recent.errors=Recent Errors label.no.errors=No Recent Errors @@ -141,6 +142,7 @@ label.instances=Instances label.add.domain=Add Domain label.parent.domain=Parent Domain label.volumes=Volumes +label.volume=Volume label.initiated.by=Initiated By label.owner.account=Owner Account label.level=Level @@ -156,6 +158,8 @@ label.hosts=Hosts label.host=Host label.virtual.appliances=Virtual Appliances label.system.vms=System VMs +label.system.vm=System VM +label.system.vm.type=System VM Type label.statistics=Statistics label.ip.address=IP Address label.version=Version @@ -163,6 +167,7 @@ label.os.preference=OS Preference label.last.disconnected=Last Disconnected label.cpu=CPU label.memory.total=Memory Total +label.memory=Memory label.network.read=Network Read label.network.write=Network Write label.ip.or.fqdn=IP or FQDN @@ -302,6 +307,17 @@ label.add.by.group=Add By Group label.security.group.name=Security Group Name label.add.more=Add More label.nfs.server=NFS Server +label.storage.type=Storage Type +label.offer.ha=Offer HA +label.add.service.offering=Add Service Offering +label.shared=Shared +label.local=Local +label.num.cpu.cores=# of CPU Cores +label.cpu.mhz=CPU (in MHZ) +label.memory.mb=Memory (in MB) +label.interval.type=Interval Type +label.password.enabled=Password Enabled +label.active.sessions=Active Sessions label.lang.english=English label.lang.chinese=Chinese @@ -431,6 +447,7 @@ message.zone.step.3.desc=Please enter the following info to add a new pod message.basic.mode.desc=Choose this network model if you do *not* want to enable any VLAN support. All virtual instances created under this network model will be assigned an IP directly from the network and security groups are used to provide security and segregation. message.advanced.mode.desc=Choose this network model if you wish to enable VLAN support. This network model provides the most flexibility in allowing administrators to provide custom network offerings such as providing firewall, vpn, or load balancer support as well as enabling direct vs virtual networking. message.update.ssl=Please submit a new X.509 compliant SSL certificate to be updated to each console proxy virtual instance: +message.add.service.offering=Please fill in the following data to add a new service offering. #Errors error.login=Your username/password does not match our records. diff --git a/ui/jsp/serviceoffering.jsp b/ui/jsp/serviceoffering.jsp index 7d810311adf..efcefdd5dd7 100644 --- a/ui/jsp/serviceoffering.jsp +++ b/ui/jsp/serviceoffering.jsp @@ -1,12 +1,9 @@ -<%@ page import="java.util.*" %> - -<%@ page import="com.cloud.utils.*" %> - -<% - Locale browserLocale = request.getLocale(); - CloudResourceBundle t = CloudResourceBundle.getBundle("resources/resource", browserLocale); -%> - +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> + + + +
@@ -14,7 +11,7 @@

- Service Offering +

@@ -24,7 +21,7 @@
- <%=t.t("details")%>
+
(title)
-
- <%=t.t("ID")%>:
+ :
@@ -67,7 +64,7 @@
- <%=t.t("name")%>:
+ :
@@ -79,7 +76,7 @@
- <%=t.t("display.text")%>:
+ :
@@ -91,7 +88,7 @@
- <%=t.t("storage.type")%>:
+ :
@@ -101,7 +98,7 @@
- <%=t.t("CPU")%>:
+ :
@@ -111,7 +108,7 @@
- <%=t.t("memory")%>:
+ :
@@ -121,21 +118,21 @@
- <%=t.t("offer.HA")%>:
+ :
- <%=t.t("tags")%>:
+ :
@@ -148,7 +145,7 @@
- <%=t.t("domain")%>:
+ :
@@ -161,7 +158,7 @@
- <%=t.t("created")%>:
+ :
@@ -170,8 +167,8 @@
- - + +
@@ -184,7 +181,7 @@
Add Service Offering
@@ -193,67 +190,67 @@