diff --git a/config/alfresco/messages/webclient.properties b/config/alfresco/messages/webclient.properties
index 3372910e3d..c18cfc522f 100644
--- a/config/alfresco/messages/webclient.properties
+++ b/config/alfresco/messages/webclient.properties
@@ -2040,6 +2040,8 @@ go_up=Go up
# Tag picker
click_to_select_tag=Click to select tags
+add_a_tag=Add a tag
+tags=Tags
# Category browsing
category_browser_plugin_label=Categories
diff --git a/config/alfresco/web-client-config-properties.xml b/config/alfresco/web-client-config-properties.xml
index 7c02f29fc3..3246248688 100644
--- a/config/alfresco/web-client-config-properties.xml
+++ b/config/alfresco/web-client-config-properties.xml
@@ -726,7 +726,7 @@
-
+
diff --git a/source/java/org/alfresco/web/bean/ajax/PickerBean.java b/source/java/org/alfresco/web/bean/ajax/PickerBean.java
index 0e1e89c3fc..6d3666366d 100644
--- a/source/java/org/alfresco/web/bean/ajax/PickerBean.java
+++ b/source/java/org/alfresco/web/bean/ajax/PickerBean.java
@@ -64,6 +64,7 @@ public class PickerBean implements Serializable
private static final long serialVersionUID = 8950457520023294902L;
private static final String MSG_CATEGORIES = "categories";
+ private static final String MSG_TAGS = "tags";
private static final String ID_URL = "url";
private static final String ID_ICON = "icon";
private static final String ID_CHILDREN = "children";
@@ -295,7 +296,7 @@ public class PickerBean implements Serializable
if (parentRef == null)
{
out.writeNullValue(ID_ID);
- out.writeValue(ID_NAME, "Tags");
+ out.writeValue(ID_NAME, Application.getMessage(fc, MSG_TAGS));
out.writeValue(ID_ISROOT, true);
out.writeValue(ID_SELECTABLE, false);
}
diff --git a/source/java/org/alfresco/web/ui/repo/component/UIAjaxTagPicker.java b/source/java/org/alfresco/web/ui/repo/component/UIAjaxTagPicker.java
index c725fd721b..4dc15d679d 100644
--- a/source/java/org/alfresco/web/ui/repo/component/UIAjaxTagPicker.java
+++ b/source/java/org/alfresco/web/ui/repo/component/UIAjaxTagPicker.java
@@ -19,7 +19,6 @@
package org.alfresco.web.ui.repo.component;
import java.io.IOException;
-import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.ResourceBundle;
@@ -43,6 +42,9 @@ import org.springframework.web.jsf.FacesContextUtils;
public class UIAjaxTagPicker extends BaseAjaxItemPicker
{
private static final String MSG_CLICK_TO_SELECT_TAG = "click_to_select_tag";
+ private static final String MSG_ADD = "add";
+ private static final String MSG_ADD_A_TAG = "add_a_tag";
+ private static final String MSG_REMOVE = "remove";
@Override
public String getFamily()
@@ -80,6 +82,7 @@ public class UIAjaxTagPicker extends BaseAjaxItemPicker
return this.label;
}
+ @SuppressWarnings("unchecked")
@Override
/**
* @see javax.faces.component.UIComponentBase#encodeBegin(javax.faces.context.FacesContext)
@@ -168,8 +171,8 @@ public class UIAjaxTagPicker extends BaseAjaxItemPicker
out.write("