ofbiz-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacques Le Roux (JIRA)" <j...@apache.org>
Subject [jira] Commented: (OFBIZ-129) Automatic Translation of view entity fields from the real entity linked to the view
Date Wed, 02 Aug 2006 07:06:14 GMT
    [ http://issues.apache.org/jira/browse/OFBIZ-129?page=comments#action_12425157 ] 
Jacques Le Roux commented on OFBIZ-129:

Sounds good to me.

> Automatic Translation of view entity fields from the real entity linked to the view
> -----------------------------------------------------------------------------------
>                 Key: OFBIZ-129
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-129
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: Windows
>            Reporter: Marco Risaliti
>            Priority: Minor
>         Attachments: i18n_view_entity.patch
> I have seen that in same forms the heading of the fields was not translated and checking
in to the source I have verified that in case of using the view entity those fields was not
translated automatically from the real entity linked to the view.
> The first solution can be to insert also the view entities into the EntityLabels properties
file but in this case a lot of replication of data will be happened.
> To be more clear I will try to explain with an example.
> A lot of fields into the forms use the view entity UomAndType that can be used to show
the type and unit of misure.
> In this case I will have to create the following row into CommonEntityLabels.properties
> UomType.description.LENGTH_MEASURE=Length
> Uom.description.LEN_cm=Centimeter
> and to solve the view entity issue I had to insert also this row in the same property
> UomAndType.description.LEN_cm.LENGTH_MEASURE=Centimeter
> UomAndType.typeDescription.LEN_cm.LENGTH_MEASURE=Length
> This cause a lot of data replication into the EntityLabels properties and so I prefer
that the Entity Engine will retrieve automatically the translation of the heading of the fields
from the real entity linked to the view.
> I have modified the GenericEntity.get() method to apply this new mechanism that you can
find attached to this issue.
> I have tried this patch a lot but I prefer if some of the major expert of OFBIZ can test
it before commits because this method it's hugely into the forms.
> In the patch you can find also the new header for this class and you can find also Valid
Status Change for Shipment to test this new mechanism.
> I wait for you feedback on this patch and I'm at your disposal for discuss on it.
> Thanks a lot
> Marco 

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message