Author: liem_nguyen
Date: 2010-01-12 03:28:00 -0500 (Tue, 12 Jan 2010)
New Revision: 1229
Added:
portal/trunk/portlet/exoadmin/src/main/webapp/WEB-INF/classes/locale/portlet/exoadmin/RegisterPortlet_vi.xml
Modified:
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/account/webui/component/UIRegisterInputSet.java
portal/trunk/portlet/exoadmin/src/main/webapp/WEB-INF/classes/locale/portlet/exoadmin/RegisterPortlet_en.properties
portal/trunk/portlet/exoadmin/src/main/webapp/WEB-INF/classes/locale/portlet/exoadmin/RegisterPortlet_ko.xml
Log:
GTNPORTAL-473 Simplified register portlet is not internationalized (Chau Ngoc Tuan)
Modified:
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/account/webui/component/UIRegisterInputSet.java
===================================================================
---
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/account/webui/component/UIRegisterInputSet.java 2010-01-12
05:00:58 UTC (rev 1228)
+++
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/account/webui/component/UIRegisterInputSet.java 2010-01-12
08:28:00 UTC (rev 1229)
@@ -40,25 +40,25 @@
*/
public class UIRegisterInputSet extends UIFormInputWithActions
{
- protected static final String USER_NAME = "User Name:";
+ protected static String USER_NAME = "username";
- protected static final String PASSWORD = "Password:";
+ protected static String PASSWORD = "password";
- protected static final String CONFIRM_PASSWORD = "Confirm Password:";
+ protected static String CONFIRM_PASSWORD = "confirmPassword";
- protected static final String FIRST_NAME = "First Name:";
+ protected static String FIRST_NAME = "firstName";
- protected static final String LAST_NAME = "Last Name:";
+ protected static String LAST_NAME = "lastName";
- protected static final String EMAIL_ADDRESS = "Email Address:";
+ protected static String EMAIL_ADDRESS = "emailAddress";
public UIRegisterInputSet(String name) throws Exception{
super(name);
addUIFormInput(new UIFormStringInput(USER_NAME, USER_NAME,
null).addValidator(MandatoryValidator.class)
- .addValidator(StringLengthValidator.class, 3,
30).addValidator(ResourceValidator.class).addValidator(
- ExpressionValidator.class, "^[\\p{L}][\\p{L}._\\-\\d]+$",
"ResourceValidator.msg.Invalid-char"));
-
+ .addValidator(StringLengthValidator.class, 3,
30).addValidator(ResourceValidator.class)
+ .addValidator(ExpressionValidator.class,
"^[\\p{L}][\\p{L}._\\-\\d]+$",
"ResourceValidator.msg.Invalid-char"));
+
addUIFormInput(new UIFormStringInput(PASSWORD, PASSWORD,
null).setType(UIFormStringInput.PASSWORD_TYPE)
.addValidator(MandatoryValidator.class).addValidator(PasswordStringLengthValidator.class,
6, 30));
Modified:
portal/trunk/portlet/exoadmin/src/main/webapp/WEB-INF/classes/locale/portlet/exoadmin/RegisterPortlet_en.properties
===================================================================
---
portal/trunk/portlet/exoadmin/src/main/webapp/WEB-INF/classes/locale/portlet/exoadmin/RegisterPortlet_en.properties 2010-01-12
05:00:58 UTC (rev 1228)
+++
portal/trunk/portlet/exoadmin/src/main/webapp/WEB-INF/classes/locale/portlet/exoadmin/RegisterPortlet_en.properties 2010-01-12
08:28:00 UTC (rev 1229)
@@ -20,3 +20,10 @@
UIRegisterForm.registerWithSuccess.message=You have successfully registered a new
account!
UIRegisterForm.title=Register New Account
UIRegisterForm.label.action.CheckUsernameAvailability=Search User
+
+UIRegisterForm.label.username=User Name:
+UIRegisterForm.label.password=Password:
+UIRegisterForm.label.confirmPassword=Confirm Password:
+UIRegisterForm.label.firstName= First Name:
+UIRegisterForm.label.lastName= Last Name:
+UIRegisterForm.label.emailAddress= Email Address:
\ No newline at end of file
Modified:
portal/trunk/portlet/exoadmin/src/main/webapp/WEB-INF/classes/locale/portlet/exoadmin/RegisterPortlet_ko.xml
===================================================================
---
portal/trunk/portlet/exoadmin/src/main/webapp/WEB-INF/classes/locale/portlet/exoadmin/RegisterPortlet_ko.xml 2010-01-12
05:00:58 UTC (rev 1228)
+++
portal/trunk/portlet/exoadmin/src/main/webapp/WEB-INF/classes/locale/portlet/exoadmin/RegisterPortlet_ko.xml 2010-01-12
08:28:00 UTC (rev 1229)
@@ -9,6 +9,12 @@
<action>
<CheckUsernameAvailability>사용자 검색</CheckUsernameAvailability>
</action>
+ <username>사용자 이름</username>
+ <password>비밀 번호</password>
+ <confirmPassword>비밀 번호 확인</confirmPassword>
+ <firstName>이름</firstName>
+ <lastName>성</lastName>
+ <emailAddress>이메일 주소</emailAddress>
</label>
</UIRegisterForm>
</bundle>
\ No newline at end of file
Added:
portal/trunk/portlet/exoadmin/src/main/webapp/WEB-INF/classes/locale/portlet/exoadmin/RegisterPortlet_vi.xml
===================================================================
---
portal/trunk/portlet/exoadmin/src/main/webapp/WEB-INF/classes/locale/portlet/exoadmin/RegisterPortlet_vi.xml
(rev 0)
+++
portal/trunk/portlet/exoadmin/src/main/webapp/WEB-INF/classes/locale/portlet/exoadmin/RegisterPortlet_vi.xml 2010-01-12
08:28:00 UTC (rev 1229)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<bundle>
+ <UIRegisterForm>
+ <registerWithSuccess>
+ <message>Bạn đã đăng ký thành công tài khoản.</message>
+ </registerWithSuccess>
+ <title>Đăng ký tài khoản mới</title>
+ <label>
+ <action>
+ <CheckUsernameAvailability>Kiểm tra tên đăng
nhập</CheckUsernameAvailability>
+ </action>
+ <username>Tên đăng nhập</username>
+ <password>Mật khẩu</password>
+ <confirmPassword>Xác nhận mật khẩu</confirmPassword>
+ <firstName>Tên</firstName>
+ <lastName>Họ</lastName>
+ <emailAddress>Địa chỉ email</emailAddress>
+ </label>
+ </UIRegisterForm>
+</bundle>
\ No newline at end of file