[ 
https://issues.apache.org/jira/browse/OFBIZ-1698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12577752#action_12577752
 ] 

Bruno Busco commented on OFBIZ-1698:
------------------------------------

Still checking for UiLabels definition redundancy. I can report two examples 
found:

Label: AccountingAccountNumber
Defined in: AccountingUiLabels.xml (10 languages), EcommerceUiLabels.xml (14 
languages), OrderUiLabels.xml (4 languages)
Used in: ecommerce, order, party [and NOT in accounting :( ]

Label: AccountingBillingAccount
Defined in: AccountingUiLabels.xml (10 languages), EcommerceUiLabels.xml (13 
langiages), OrderUiLabels.xml (4 languages), PartyUiLabels.xml (10 languages)
Used in: accounting, ecommerce, order, party

I think i have found a generic rule that we could follow, here it is, please 
review it.

1) Define a dependence hierarchy among applications (even between core 
applications). If two applications are at the same level (i.e. depends each 
other, one must be declared at an higher level in the hierarchy) (higher level 
means that the application is more dependent from others)

2) If a label is used in more than one application it should be defined ONLY in 
the lower level application UiLabels file.

3) All labels defined in a AppNameUiLabels.xml files MUST be named 
AppNameLabelName

What do you think about? Does this make sense?

> Locale labels in language different from the fallback sometime are not 
> displayed
> --------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1698
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1698
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Bruno Busco
>            Assignee: Jacques Le Roux
>
> A label is not displayed in the selected language but in the fallback one 
> when ALL the following are true:
> - A language different from the one specified as "locale.properties.fallback" 
> in framework/common/config/general.properties is selected
> - The label is defined in more than one XXXUiLabels.XML file (say 
> File1UiLabels.xml and File2UiLabels.xml)
> - The screen includes first File1UiLabels.xml and then File2UiLabels.xml
> - In File1UiLabels.xml there is NO translation for the selected language
> - In File2UiLabels.xml there is the translation for the selected language
> This bug was not present in Release 4.0 and i think could have been 
> introduced with the new locale system.
> You can check the bug going in the trunk demo in the ecommerce main page and 
> selecting italian. -> Labels "Cart Summary" and "Special Offers" are not 
> translated.
> In the R4.0 demo it is all OK

-- 
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