[gatein-issues] [JBoss JIRA] (GTNPORTAL-3491) [Gadget] Hard-coded English labels in Title and Field Name
H. Trang Vu (JIRA)
issues at jboss.org
Sun May 25 23:07:56 EDT 2014
[ https://issues.jboss.org/browse/GTNPORTAL-3491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
H. Trang Vu updated GTNPORTAL-3491:
-----------------------------------
Attachment: VI-Title-FieldName.png
In [Gadgets.js|https://github.com/gatein/gatein-portal/blob/3.7.1.Final/gadgets/core/src/main/javascript/gatein-features/gatein-container/Gadgets.js], the translation of gadget title and field display_name isn't taken into account.
{code:title=Gadgets.js}
...
gadgets.IfrGadgetService.prototype.setTitle = function(title) {
var element = $("#" + this.f).closest(".UIGadget").find("div.GadgetTitle").eq(0);
if(element)
{
element.html(title.replace(/&/g, '&').replace(/</g, '<'));
}
};
...
gadgets.IfrGadget.prototype.generateForm = function(gadget) {
....
labelEl.innerHTML = prefs[att].displayName + ": ";
attEl.appendChild(labelEl);
...
};
{code}
> [Gadget] Hard-coded English labels in Title and Field Name
> ----------------------------------------------------------
>
> Key: GTNPORTAL-3491
> URL: https://issues.jboss.org/browse/GTNPORTAL-3491
> Project: GateIn Portal
> Issue Type: Enhancement
> Security Level: Public(Everyone can see)
> Components: Internationalization and Localization
> Affects Versions: 3.5.10.Final, 3.7.1.Final
> Reporter: H. Trang Vu
> Attachments: VI-Title-FieldName.png
>
>
> Steps to reproduce:
> * Login as root
> * Go to Application Registry, add *Services Management* gadget into a category
> * Switch to Vietnamese
> * Open Dashboard
> * Add *Services Management* gadget
> * The gadget title is always in English
> * Click pencil icon to edit gadget setting
> ** "Services URL" is always in English
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
More information about the gatein-issues
mailing list