You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Karim Rahimpur (JIRA)" <ji...@apache.org> on 2009/01/29 15:16:59 UTC

[jira] Updated: (OFBIZ-2148) Localized values are not retrieved from LocalizedMaps (through BasicVariableMapper).

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

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

    Attachment: UelUtil.java.patch

This modifies _BasicVariableMapper.resolveVariable(...)_ to take LocalizedMaps into account and retrieve the values for a given locale (if available in context).

> 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
>             Fix For: SVN trunk
>
>         Attachments: 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.