Entity data internationalization in tree widget

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Entity data internationalization in tree widget

Gintare Ragaisiene
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
Reply | Threaded
Open this post in threaded view
|

Re: Entity data internationalization in tree widget

Gintare Ragaisiene

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

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