Le 05/09/2014 16:48, Adrian Crum a écrit :
> - Concerning labels management, the creation of an extension for rarely
> used languages would allow to not load all languages in OFBiz.

I am not sure what this means, but the only languages that are "loaded" (kept in memory) are the ones that current users have selected.
It's more for adding label traduction on standard OFBiz file.
For example if I want add a new traduction on some entity label, I can override on the fly by a hot-deploy definition but need :
 * create an extend-entity of each updated labels
 * duplicate label files on hot-deploy and improve it.

Other possibility, is by patch :
Index: framework/common/config/CommonEntityLabels.xml
===================================================================
--- framework/common/config/CommonEntityLabels.xml    (révision 1623319)
+++ framework/common/config/CommonEntityLabels.xml    (copie de travail)
@@ -89,6 +89,7 @@
         <value xml:lang="en">GENERAL_MAILING</value>
         <value xml:lang="es">Mailing</value>
         <value xml:lang="fr">Mailing</value>
+ <value xml:lang="fr_CT">Liste d'échange</value><!-- Les français catalan parle français-->
         <value xml:lang="it">Posta generale</value>
         <value xml:lang="pt_BR">Correio</value>
         <value xml:lang="th">GENERAL_MAILING</value>

And an other better way is by semantic patch
<add node="property:[key=DataSource.description.GENERAL_MAILING]">
    <![CDATA[
<value xml:lang="fr_BY">Liste d'échange</value><!-- Les français du berry parle français-->
     ]]>
</add>

If you store all traduction labels in a extension, you can use on each production site where this language would be used without load more the standard OFBiz file.

Nicolas

Reply via email to