You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Gintare Ragaisiene <gi...@gmail.com> on 2009/08/04 12:27:28 UTC

Entity data internationalization in tree widget

Hi,

   I'm trying to translate GlAccount table data which is visible in
"Accounting->Global GL settings ->Navigate Accounts" tree. I have entity
labels xml file and tree widget. And no translation is appiered in UI, only
english wich is defoult. What I should do to make it work?

here is my entity labels file GsAccountingEntityLabels.xml :

<resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

    <property key="glAccount.accountName.100000">
        <value xml:lang="en">Assets</value>
        <value xml:lang="lt">Turtas</value>
    </property>

    <property key="GsTestUiLabelMap">
        <value xml:lang="en">Test</value>
        <value xml:lang="lt">Testas</value>
    </property>

</resource>

here is my tree widget wich is in AccountingTrees.xml :

<tree name="GlAccountTree" entity-name="GlAccount"
root-node-name="node-root" default-render-style="expand-collapse"
default-wrap-style="accountItem">

        <node name="node-root" render-style="simple">
            <sub-node node-name="node-body">
                <entity-and entity-name="GlAccount">
                    <field-map field-name="parentGlAccountId"
from-field="null"/>
                    <order-by field-name="glAccountId"/>
                </entity-and>
            </sub-node>
        </node>

        <node name="node-body">
            <entity-one entity-name="GlAccount"
value-field="glAccount"></entity-one>

            <link target="GlAccountNavigate" text="${glAccountId}
${glAccount.accountName} ${postedBalance} - ${accountName} -
${uiLabelMap.GsTestUiLabelMap}">
                <parameter param-name="glAccountId"/>
                <parameter param-name="trail"
from-field="currentNodeTrailPiped"/>
            </link>

            <sub-node node-name="node-body">
                <entity-and entity-name="GlAccount">
                    <field-map field-name="parentGlAccountId"
from-field="glAccountId"/>
                    <order-by field-name="glAccountId"/>
                </entity-and>
            </sub-node>

        </node>
</tree>

And I've attached screeshot to see results.


Thanks and regards,
Gintare

Re: Entity data internationalization in tree widget

Posted by gintare2009 <gi...@gmail.com>.

  No answer... Maybe my question is not clear ?

  Or maybe is it not possible to get entity data translation in <link> tag
"text" attribute?


-- 
View this message in context: http://www.nabble.com/Entity-data-internationalization-in-tree-widget-tp24805989p24846680.html
Sent from the OFBiz - User mailing list archive at Nabble.com.