[ 
https://issues.apache.org/jira/browse/OFBIZ-2148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Karim Rahimpur updated OFBIZ-2148:
----------------------------------

    Attachment: HtmlFormRenderer.java.patch

Just one small addition to exit the for loop as soon as the label is found.

> Localized values are not retrieved from LocalizedMaps (through 
> BasicVariableMapper).
> ------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-2148
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2148
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: any
>            Reporter: Karim Rahimpur
>            Assignee: Jacques Le Roux
>             Fix For: SVN trunk
>
>         Attachments: HtmlFormRenderer.java.patch, 
> HtmlFormRenderer.java.patch, UelUtil.java.patch
>
>
> *BasicVariableMapper* (from org.ofbiz.base.util.string.UelUtil) defines the 
> method _resolveVariable(...)_ which retrieves the value for a given variable 
> from the associated map _variables_.
> Even if _variables_ is a LocalizedMap and a value for a given locale is 
> available, resolveVariable does not return the localized value as it fails to 
> check that case.
> This results e.g. in descriptions for drop down options showing up only with 
> their original description and not with those defined in the 
> *EntityLabels.xml files:
> See [https://127.0.0.1:8443/ordermgr/control/FindRequest] or 
> [https://demo.hotwaxmedia.com/ordermgr/control/FindRequest] the options for 
> Status Id in any language that offers translations for the request type.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to