mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Added new multilingual marker icon and associated tooltip.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6243 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -68,7 +68,7 @@ new_edition_details=New edition details
|
|||||||
create_new_edition_using=Create a new edition using
|
create_new_edition_using=Create a new edition using
|
||||||
translations_checked_out_error=Cannot create a new edition because the following translations are checked out.
|
translations_checked_out_error=Cannot create a new edition because the following translations are checked out.
|
||||||
available_translations=Available translations
|
available_translations=Available translations
|
||||||
|
marker_tooltip=Change your Content Language to view or edit text in different languages.
|
||||||
|
|
||||||
|
|
||||||
# Date Pattern
|
# Date Pattern
|
||||||
|
@@ -30,6 +30,7 @@ import javax.faces.component.UIComponent;
|
|||||||
import javax.faces.context.FacesContext;
|
import javax.faces.context.FacesContext;
|
||||||
import javax.faces.context.ResponseWriter;
|
import javax.faces.context.ResponseWriter;
|
||||||
|
|
||||||
|
import org.alfresco.web.app.Application;
|
||||||
import org.apache.myfaces.renderkit.html.HtmlTextareaRenderer;
|
import org.apache.myfaces.renderkit.html.HtmlTextareaRenderer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -48,9 +49,12 @@ public class MultilingualTextAreaRenderer extends HtmlTextareaRenderer
|
|||||||
{
|
{
|
||||||
super.encodeEnd(facesContext, component);
|
super.encodeEnd(facesContext, component);
|
||||||
|
|
||||||
|
String tooltip = Application.getMessage(facesContext, "marker_tooltip");
|
||||||
ResponseWriter out = facesContext.getResponseWriter();
|
ResponseWriter out = facesContext.getResponseWriter();
|
||||||
out.write("<img src='");
|
out.write("<img src='");
|
||||||
out.write(facesContext.getExternalContext().getRequestContextPath());
|
out.write(facesContext.getExternalContext().getRequestContextPath());
|
||||||
out.write("/images/icons/multilingual_marker.gif' style='margin-left: 6px; _vertical-align: -2px;' />");
|
out.write("/images/icons/multilingual_marker.gif' title='");
|
||||||
|
out.write(tooltip);
|
||||||
|
out.write("' style='margin-left: 6px; _vertical-align: -2px;' />");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -30,6 +30,7 @@ import javax.faces.component.UIComponent;
|
|||||||
import javax.faces.context.FacesContext;
|
import javax.faces.context.FacesContext;
|
||||||
import javax.faces.context.ResponseWriter;
|
import javax.faces.context.ResponseWriter;
|
||||||
|
|
||||||
|
import org.alfresco.web.app.Application;
|
||||||
import org.apache.myfaces.renderkit.html.HtmlTextRenderer;
|
import org.apache.myfaces.renderkit.html.HtmlTextRenderer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -48,9 +49,12 @@ public class MultilingualTextRenderer extends HtmlTextRenderer
|
|||||||
{
|
{
|
||||||
super.encodeEnd(facesContext, component);
|
super.encodeEnd(facesContext, component);
|
||||||
|
|
||||||
|
String tooltip = Application.getMessage(facesContext, "marker_tooltip");
|
||||||
ResponseWriter out = facesContext.getResponseWriter();
|
ResponseWriter out = facesContext.getResponseWriter();
|
||||||
out.write("<img src='");
|
out.write("<img src='");
|
||||||
out.write(facesContext.getExternalContext().getRequestContextPath());
|
out.write(facesContext.getExternalContext().getRequestContextPath());
|
||||||
out.write("/images/icons/multilingual_marker.gif' style='margin-left: 6px; vertical-align: -4px; _vertical-align: -2px;' />");
|
out.write("/images/icons/multilingual_marker.gif' title='");
|
||||||
|
out.write(tooltip);
|
||||||
|
out.write("' style='margin-left: 6px; vertical-align: -4px; _vertical-align: -2px;' />");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 608 B After Width: | Height: | Size: 547 B |
Reference in New Issue
Block a user