From cbc8153dd5c5afffef07c25f48b3fd16807b478d Mon Sep 17 00:00:00 2001 From: will Date: Tue, 25 Jan 2011 10:29:19 -0800 Subject: [PATCH] bug 4556: localized string replacement for instance.jsp - removed old change name and group dialogs as they are not being used anymore --- .../classes/resources/messages.properties | 55 +++ ui/jsp/instance.jsp | 352 ++++++++---------- ui/scripts/cloud.core.instance.js | 2 - 3 files changed, 200 insertions(+), 209 deletions(-) diff --git a/client/WEB-INF/classes/resources/messages.properties b/client/WEB-INF/classes/resources/messages.properties index 18190deb55f..0c8868e6b50 100644 --- a/client/WEB-INF/classes/resources/messages.properties +++ b/client/WEB-INF/classes/resources/messages.properties @@ -8,6 +8,7 @@ label.login=Login label.welcome=Welcome label.logout=Logout label.advanced.search=Advance Search +label.search label.close=Close label.name=Name label.status=Status @@ -123,6 +124,7 @@ label.account.id=Account ID label.account=Account label.display.text=Display Text label.disk.size=Disk Size +label.size=Size label.add.disk.offering=Add Disk Offering label.custom.disk.size=Custom Disk Size label.no=No @@ -192,6 +194,28 @@ label.enabling.vpn.access=Enabling VPN Access label.disabling.vpn.access=Disabling VPN Access label.adding.user=Adding User label.service.offering=Service Offering +label.nics=NICs +label.os.type=OS Type +label.ha.enabled=HA Enabled +label.attached.iso=Attached ISO +label.group=Group +label.availability.zone=Availability Zone +label.iso.boot=ISO Boot +label.prev=Prev +label.next=Next +label.back=Back +label.virtual.network=Virtual Network +label.additional.networks=Additional Networks +label.name.optional=Name (Optional) +label.group.optional=Group (Optional) +label.primary.network=Primary Network +label.submit=Submit +label.submmited.by=[Submitted by: ] +label.no.thanks=No Thanks +label.gateway=Gateway +label.netmask=Netmask +label.no.isos=No available ISOs + label.lang.english=English label.lang.chinese=Chinese @@ -237,7 +261,22 @@ label.menu.network.offerings=Network Offerings label.menu.global.settings=Global Settings label.menu.security.groups=Security Groups +label.step.1=Step 1 +label.step.2=Step 2 +label.step.3=Step 3 +label.step.4=Step 4 +label.step.5=Step 5 +label.step.1.title=Step 1: Select a Template +label.step.2.title=Step 2: Service Offering +label.step.3.title=Step 3: Select a Disk Offering +label.step.4.title=Step 4: Network +label.step.5.title=Step 5: Review +label.go.step.2=Go to Step 2 +label.go.step.3=Go to Step 3 +label.go.step.4=Go to Step 4 +label.go.step.5=Go to Step 5 +label.vm.add=Add VM label.vm.start=Start VM label.vm.stop=Stop VM label.vm.reboot=Reboot VM @@ -263,6 +302,22 @@ message.enable.vpn.access=VPN is currently disabled for this IP Address. Would message.disable.vpn.access=Please confirm you want to disable VPN Access. message.acquire.public.ip=Please select a zone from which you want to acquire your new IP from. message.allow.vpn.access=Please enter a username and password of the user that you want to allow VPN access. +message.virtual.network.desc=A dedicated virtualized network for your account. The broadcast domain is contained within a VLAN and all public network access is routed out by a virtual router. +message.step.1.desc=Please select a template for your new virtual instance. You can also choose to select a blank template from which an ISO image can be installed onto. +message.step.1.continue=Please select a template or ISO to continue +message.step.2.desc= +message.step.2.continue=Please select a service offering to continue +message.step.3.desc= +message.step.3.continue=Please select a disk offering to continue +message.step.4.desc=Please select the primary network that your virtual instance will be connected to. +message.step.4.continue=Please select at least one network to continue +message.additional.networks.desc=Please select additional network(s) that your virtual instance will be connected to. +message.security.group.usage=(Use Ctrl-click to select all applicable security groups) +message.detach.iso.confirm=Please confirm that you want to detach the ISO from the virtual instance +message.attach.iso.confirm=Please confirm that you want to attach the ISO to the virtual instance +message.change.offering.confirm=Please confirm that you wish to change the service offering of your virtual instance. +message.volume.create.template.confirm=Please confirm you wish to create a template for this disk volume. Creation of the template can range from several minutes to longer depending on the size of the volume. + #Errors error.login=Your username/password does not match our records. diff --git a/ui/jsp/instance.jsp b/ui/jsp/instance.jsp index 0de0dcb8ecc..a35c209cab6 100644 --- a/ui/jsp/instance.jsp +++ b/ui/jsp/instance.jsp @@ -1,21 +1,16 @@ -<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> + + + -<%@ page import="java.util.*" %> - -<%@ page import="com.cloud.utils.*" %> - -<% - Locale browserLocale = request.getLocale(); - CloudResourceBundle t = CloudResourceBundle.getBundle("resources/resource", browserLocale); -%> -

- Instance +

@@ -27,28 +22,28 @@
- <%=t.t("NICs")%>
+
- <%=t.t("Volumes")%>
+
- <%=t.t("Statistics")%>
+
Title
-
@@ -84,7 +79,7 @@
- <%=t.t("ID")%>:
+ :
@@ -95,7 +90,7 @@
- <%=t.t("Zone")%>:
+ :
@@ -105,7 +100,7 @@
- <%=t.t("Name")%>:
+ :
@@ -114,22 +109,10 @@
- -
-
-
- <%=t.t("Template")%>:
+ :
@@ -139,7 +122,7 @@
- <%=t.t("OS.Type")%>:
+ :
@@ -151,7 +134,7 @@
- <%=t.t("Service")%>:
+ :
@@ -161,21 +144,21 @@
- <%=t.t("HA.Enabled")%>:
+ :
- <%=t.t("Created")%>:
+ :
@@ -185,7 +168,7 @@
- <%=t.t("Account")%>:
+ :
@@ -195,7 +178,7 @@
- <%=t.t("Domain")%>:
+ :
@@ -205,7 +188,7 @@
- <%=t.t("Host")%>:
+ :
@@ -215,7 +198,7 @@
- <%=t.t("ISO.attached")%>:
+ :
@@ -225,7 +208,7 @@
- <%=t.t("Group")%>:
+ :
@@ -237,8 +220,8 @@
- - + +
@@ -249,7 +232,7 @@
@@ -261,7 +244,7 @@
@@ -273,7 +256,7 @@
@@ -287,7 +270,7 @@

- CPU

+

Total: @@ -314,7 +297,7 @@

- Network Read:
+ :
@@ -324,7 +307,7 @@
- Network Write:
+ :
@@ -348,7 +331,7 @@

- A virtual private network that is fronted by a virtual router. An optional guest CIDR can be specified. +

@@ -364,7 +347,7 @@

- A virtual private network that is fronted by a virtual router. An optional guest CIDR can be specified. +

@@ -385,15 +368,15 @@
- Step 1
+
- Step 2
+
- Step 3
+
- Step 4
+
- Step 5
+
@@ -403,21 +386,17 @@

- Step 1: Select a Template

+

- Please select a template for your new virtual instance. You can also choose to select - a blank template from which an ISO image can be installed onto. +

+ : - - -
    @@ -426,14 +405,15 @@
- Search
+
- Blank Template
+
@@ -463,7 +443,7 @@
- Prev Next +
@@ -474,7 +454,7 @@
- Go to Step 2
+
@@ -484,15 +464,15 @@
- Step 3
+
- Step 4
+
- Step 5
+
@@ -501,12 +481,9 @@
-

- Step 2: Service Offering

+

+

-

@@ -517,7 +494,7 @@
@@ -543,15 +520,15 @@
- Step 3
+
- Step 4
+
- Step 5
+
@@ -561,7 +538,8 @@

- Step 3: Select a Disk Offering

+ +

@@ -572,7 +550,8 @@
@@ -602,15 +581,15 @@
- Step 3
+
- Step 4
+
- Step 5
+
@@ -620,9 +599,9 @@

- Step 4: Network

+

- Please select the primary network that your virtual instance will be connected to. +

@@ -631,7 +610,7 @@
@@ -691,15 +670,15 @@
- Step 3
+
- Step 4
+
- Step 5
+
@@ -709,7 +688,7 @@

- Step 5: Last Step

+

@@ -722,7 +701,7 @@
- Name (optional): + :
@@ -745,7 +724,7 @@
- Zone:
+ :
@@ -754,7 +733,7 @@
- Hypervisor:
+ :
@@ -763,7 +742,7 @@
- Template: + :
@@ -773,7 +752,7 @@
- Service Offering:
+ :
@@ -782,7 +761,7 @@
- Disk Offering: + :
@@ -792,7 +771,7 @@
- Primary Network:
+ :
@@ -801,9 +780,9 @@
- Back
+
- Submit
+
@@ -821,10 +800,10 @@
- Hypervisor: + :
- [Submitted by: ]
+ @@ -847,7 +826,7 @@
- [Submitted by: ]
+ @@ -873,7 +852,7 @@
+