From 16d03106f9680f7c26f46ac14a996de669391fbc Mon Sep 17 00:00:00 2001 From: will Date: Fri, 21 Jan 2011 15:44:53 -0800 Subject: [PATCH] bug 4556: localize string replacements for index.jsp, account.jsp, alert.jsp, and cluster.jsp --- .../classes/resources/messages.properties | 71 ++++++++ ui/index.jsp | 38 +--- ui/jsp/account.jsp | 171 +++++++++--------- ui/jsp/alert.jsp | 37 ++-- ui/jsp/cluster.jsp | 105 +++++------ 5 files changed, 225 insertions(+), 197 deletions(-) diff --git a/client/WEB-INF/classes/resources/messages.properties b/client/WEB-INF/classes/resources/messages.properties index aa3523cc0fa..776e0e508c7 100644 --- a/client/WEB-INF/classes/resources/messages.properties +++ b/client/WEB-INF/classes/resources/messages.properties @@ -36,6 +36,65 @@ label.cluster=Cluster label.domain.name=Domain Name label.advanced=Advanced label.details=Details +label.users=Users +label.detaching.disk=Detaching Disk +label.id=ID +label.role=Role +label.account.name=Account Name +label.vms=VMs +label.ips=IPs +label.bytes.received=Bytes Received +label.bytes.sent=Bytes Sent +label.state=State +label.save=Save +label.cancel=Cancel +label.add.account=Add Account +label.add.user=Add User +label.waiting=Waiting +label.api.key=API Key +label.secret.key=Secret Key +label.email=Email +label.first.name=First Name +label.last.name=Last Name +label.timezone=Timezone +label.instance.limits=Instance Limits +label.ip.limits=Public IP Limits +label.volume.limits=Volume Limits +label.snapshot.limits=Snapshot Limits +label.template.limits=Template Limits +label.adding=Adding +label.sent=Sent +label.user=User +label.domain.admin=Domain Admin +label.admin=Admin +label.by.role=by role +label.type=Type +label.type.id=Type ID +label.description=Description +label.hypervisor.type=Hypervisor Type +label.cluster.type=Cluster Type +label.host.name=Host Name +label.vcenter.datastore=vCenter Datastore +label.vcenter.address=vCenter Address +label.vcenter.username=vCenter Username +label.vcenter.password=vCenter Password +label.vcenter.datacenter=vCenter Datacenter +label.vcenter.host=vCenter Host +label.protocol=Protocol +label.nfs=NFS +label.iscsi=iSCSI +label.vmfs=VMFS +label.server=Server +label.path=Path +label.target.iqn=Target IQN +label.lun=LUN +label.tags=Tags + +label.lang.english=English +label.lang.chinese=Chinese + +label.theme.default=Default Theme +label.theme.grey=Custom - Grey label.menu.dashboard=Dashboard label.menu.instances=Instances @@ -58,6 +117,8 @@ label.menu.my.isos=My ISOs label.menu.featured.isos=Featured ISOs label.menu.community.isos=Community ISOs label.menu.accounts=Accounts +label.menu.my.accounts=My Accounts +label.menu.all.accounts=All Accounts label.menu.domains=Domains label.menu.events=Events label.menu.alerts=Alerts @@ -69,15 +130,25 @@ label.menu.system.vms=System VMs label.menu.configuration=Configuration label.menu.service.offerings=Service Offerings label.menu.disk.offerings=Disk Offerings +label.menu.network.offerings=Network Offerings label.menu.global.settings=Global Settings label.menu.security.groups=Security Groups + label.vm.start=Start VM label.vm.stop=Stop VM label.vm.reboot=Reboot VM label.vm.destroy=Destroy VM #Messages +message.edit.limits=Please specify limits to the following resources. A "-1" indicates no limit to the amount of resources create. +message.disable.account=Please confirm you want to disable this account. By disabling the account, all users for this account will no longer have access to their cloud resources. All running virtual machines will be immediately shut down. +message.lock.account=Please confirm you want to lock this account. By locking the account, all users for this account will no longer be able to manage their cloud resources. Existing resources can still be accessed. +message.enable.account=Please confirm you want to enable this account.user +message.new.user=Specify the following to add a new user to the account +message.edit.confirm=Please confirm your changes before clicking 'Save' +message.add.host=Please specify the following parameters to add a new host +message.add.primary=Please specify the following parameters to add a new primary storage #Errors error.login=Your username/password does not match our records. diff --git a/ui/index.jsp b/ui/index.jsp index c93e7e2e570..2bc8973b7b7 100644 --- a/ui/index.jsp +++ b/ui/index.jsp @@ -114,23 +114,23 @@
-

English

+

-

Default Theme

+

@@ -161,20 +161,6 @@

,

-
@@ -535,7 +521,7 @@
- My Accounts + @@ -546,7 +532,7 @@
- All Accounts + @@ -708,7 +694,7 @@
- Network Offering +
@@ -732,12 +718,6 @@ diff --git a/ui/jsp/account.jsp b/ui/jsp/account.jsp index 9d134ae0156..e3aa0358da5 100644 --- a/ui/jsp/account.jsp +++ b/ui/jsp/account.jsp @@ -1,20 +1,15 @@ -<%@ page import="java.util.*" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> + + + + -<%@ page import="com.cloud.utils.*" %> - -<% - Locale browserLocale = request.getLocale(); - CloudResourceBundle t = CloudResourceBundle.getBundle("resources/resource", browserLocale); -%> - - -
-

- Accounts

+

- <%=t.t("Details")%>
+
- <%=t.t("Users")%>
+
(title)
-
- <%=t.t("ID")%>:
+ :
@@ -66,7 +61,7 @@
- <%=t.t("Role")%>:
+ :
@@ -76,7 +71,7 @@
- Account Name:
+ :
@@ -88,7 +83,7 @@
- <%=t.t("Domain")%>:
+ :
@@ -98,7 +93,7 @@
- <%=t.t("VMs")%>:
+ :
@@ -108,7 +103,7 @@
- <%=t.t("IPs")%>:
+ :
@@ -118,7 +113,7 @@
- <%=t.t("Bytes.Received")%>:
+ :
@@ -128,7 +123,7 @@
- <%=t.t("Bytes.Sent")%>:
+ :
@@ -138,7 +133,7 @@
- <%=t.t("State")%>:
+ :
@@ -147,8 +142,8 @@
- - + +
@@ -157,7 +152,7 @@
@@ -172,18 +167,18 @@
@@ -205,7 +200,7 @@

- Waiting … +

@@ -213,14 +208,14 @@
- ID:
+ :
@@ -230,7 +225,7 @@
- User Name:
+ :
@@ -240,7 +235,7 @@
- State:
+ :
@@ -250,7 +245,7 @@
- API Key:
+ :
@@ -260,7 +255,7 @@
- Secret Key:
+ :
@@ -270,7 +265,7 @@
- Account Name:
+ :
@@ -280,7 +275,7 @@
- Role:
+ :
@@ -290,7 +285,7 @@
- Domain:
+ :
@@ -300,7 +295,7 @@
- Email:
+ :
@@ -310,7 +305,7 @@
- First Name:
+ :
@@ -320,7 +315,7 @@
- Last Name:
+ :
@@ -330,7 +325,7 @@
- Timezone:
+ :
@@ -343,33 +338,33 @@