Author: phuong_vu
Date: 2011-10-25 23:07:25 -0400 (Tue, 25 Oct 2011)
New Revision: 7879
Modified:
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/form/UIFormMultiValueInputSet.java
Log:
GTNPORTAL-2201 label not translated into French in upload file
Modified:
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/form/UIFormMultiValueInputSet.java
===================================================================
---
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/form/UIFormMultiValueInputSet.java 2011-10-26
02:54:20 UTC (rev 7878)
+++
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/form/UIFormMultiValueInputSet.java 2011-10-26
03:07:25 UTC (rev 7879)
@@ -24,15 +24,15 @@
import org.exoplatform.webui.config.annotation.EventConfig;
import org.exoplatform.webui.core.UIComponent;
import org.exoplatform.webui.event.Event;
+import org.exoplatform.webui.event.Event.Phase;
import org.exoplatform.webui.event.EventListener;
-import org.exoplatform.webui.event.Event.Phase;
import org.exoplatform.webui.form.validator.Validator;
import java.io.Writer;
import java.lang.reflect.Constructor;
import java.util.ArrayList;
-import java.util.Iterator;
import java.util.List;
+import java.util.ResourceBundle;
/**
* Author : Nhu Dinh Thuan
@@ -210,8 +210,11 @@
UIForm uiForm = getAncestorOfType(UIForm.class);
int size = getChildren().size();
- // ResourceBundle res = context.getApplicationResourceBundle() ;
-
+
+ ResourceBundle res = context.getApplicationResourceBundle() ;
+ String addItem = res.getString("UIFormMultiValueInputSet.label.add");
+ String removeItem =
res.getString("UIFormMultiValueInputSet.label.remove");
+
for (int i = 0; i < size; i++)
{
UIFormInputBase uiInput = getChild(i);
@@ -225,7 +228,7 @@
if ((size >= 2) || ((size == 1) && (uiInput.getValue() != null)))
{
writer.append("<img onclick=\"");
- writer.append(uiForm.event("Remove",
uiInput.getId())).append("\" title=\"Remove Item\"
alt=\"\"");
+ writer.append(uiForm.event("Remove",
uiInput.getId())).append("\" title=\"" + removeItem + "\"
alt=\"\"");
writer
.append(" class=\"MultiFieldAction Remove16x16Icon\"
src=\"/eXoResources/skin/sharedImages/Blank.gif\" />");
}
@@ -233,7 +236,7 @@
{
writer.append("<img onclick=\"");
- writer.append(uiForm.event("Add", getId())).append("\"
title=\"Add Item\" alt=\"\"");
+ writer.append(uiForm.event("Add", getId())).append("\"
title=\"" + addItem + "\" alt=\"\"");
writer
.append(" class=\"MultiFieldAction AddNewNodeIcon\"
src=\"/eXoResources/skin/sharedImages/Blank.gif\" />");
}
Show replies by date