From 9b98ed000957573ae417f10d80d2f9a0661fc3f7 Mon Sep 17 00:00:00 2001 From: will Date: Wed, 26 Jan 2011 14:47:50 -0800 Subject: [PATCH] bug 4556: localized string replacement for zone.jsp --- .../classes/resources/messages.properties | 3 +- ui/jsp/zone.jsp | 162 ++++++++---------- 2 files changed, 76 insertions(+), 89 deletions(-) diff --git a/client/WEB-INF/classes/resources/messages.properties b/client/WEB-INF/classes/resources/messages.properties index a58a6a1c1da..393308f2df4 100644 --- a/client/WEB-INF/classes/resources/messages.properties +++ b/client/WEB-INF/classes/resources/messages.properties @@ -104,6 +104,7 @@ label.private.ip=Private IP Address label.guest.ip=Guest IP Address label.guest.ip.range=Guest IP Range label.guest.netmask=Guest Netmask +label.guest.cidr=Guest CIDR label.memory.allocated=Memory Allocated label.memory.used=Memory Used label.cpu.allocated=CPU Allocated @@ -462,7 +463,6 @@ message.add.firewall=Add a firewall to zone message.add.load.balancer=Add a load balancer to zone message.add.ip.range.direct.network=Add an IP range to direct network in zone message.add.network=Add a new network for zone: -message.add.host=Add a host for zone , pod message.add.cluster=Add a hypervisor managed cluster for zone , pod message.add.cluster.zone=Add a hypervisor managed cluster for zone message.add.primary.storage=Add a new Primary Storage for zone , pod @@ -488,6 +488,7 @@ message.create.snapshot=Please confirm you want to create snapshot for this volu message.snapshot.schedule=Your snapshot schedule is currently set to message.add.volume=Please fill in the following data to add a new volume. message.attach.volume=Please fill in the following data to attach a new volume. If you are attaching a disk volume to a Windows based virtual machine, you will need to reboot the instance to see the attached disk. +message.add.pod=Add a new pod for zone #Errors diff --git a/ui/jsp/zone.jsp b/ui/jsp/zone.jsp index e486a8fdc0d..22e90f4e741 100644 --- a/ui/jsp/zone.jsp +++ b/ui/jsp/zone.jsp @@ -1,17 +1,15 @@ -<%@ 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" %> + + + +

- Zone +

@@ -21,7 +19,7 @@
- <%=t.t("details")%>
+
@@ -31,7 +29,7 @@

- Loading …

+

@@ -39,11 +37,11 @@
Title
-
- <%=t.t("ID")%>:
+ :
@@ -68,7 +66,7 @@
- <%=t.t("name")%>:
+ :
@@ -80,7 +78,7 @@
- <%=t.t("dns1")%>:
+ :
@@ -92,7 +90,7 @@
- <%=t.t("dns2")%>:
+ :
@@ -104,7 +102,7 @@
- <%=t.t("internaldns1")%>:
+ :
@@ -116,7 +114,7 @@
- <%=t.t("internaldns2")%>:
+ :
@@ -128,7 +126,7 @@
- <%=t.t("network.type")%>:
+ :
@@ -138,7 +136,7 @@
- <%=t.t("vlan")%>:
+ :
@@ -152,7 +150,7 @@
- <%=t.t("guestcidraddress")%>:
+ :
@@ -164,7 +162,7 @@
- <%=t.t("domain")%>:
+ :
@@ -174,8 +172,8 @@
- - + +
@@ -190,7 +188,7 @@
@@ -199,7 +197,7 @@
@@ -208,7 +206,7 @@
@@ -217,7 +215,7 @@
@@ -229,35 +227,35 @@