You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Antony Adopo <sa...@gmail.com> on 2013/10/10 23:49:07 UTC

Adding new "EcommerceUiLabels" doesn't work

Hello Ofbizers,

I try to add new labels in EcommerceUiLabels.xml (Also CommonUiLabels.xml)
for instance :
<code>
 <property key="EcommerceNewCollections">
        <value xml:lang="en">New collections</value>
        <value xml:lang="fr">Nouvelles collections</value>
    </property>
</code>

But It doesn't work. Even I restart many times ofbiz and my computer. But
the first (native) Labels work .

Please Help

Thanks

Re: Adding new "EcommerceUiLabels" doesn't work

Posted by Jacques Le Roux <ja...@les7arts.com>.
Antony, you have to be sure that you "include" the corresponding ui labels file in the screen widget definition which calls the ultimately rendered HTML source (either a widget form or a ftl template)
So if it's in a hot-deploy component don't forget it there. See how it's done in ecommerce screens...

Jacques

Antony Adopo wrote:
> lol, forgot it , it was just to specify that it is code.
> 
> But I add only :
> <property key="EcommerceNewCollections">
>        <value xml:lang="en">New collections</value>
>>       <value xml:lang="fr">Nouvelles collections</value>
>  </property>
> 
> It doesn't work when I call it by ${uiLabelMap.EcommerceNewCollections}
> 
> 
> 2013/10/11 Jacques Le Roux <ja...@les7arts.com>
> 
>> It should work, but what are those <code></code> ?
>> 
>> Jacques
>> 
>> Antony Adopo wrote:
>>> Hello Ofbizers,
>>> 
>>> I try to add new labels in EcommerceUiLabels.xml (Also CommonUiLabels.xml)
>>> for instance :
>>> <code>
>>> <property key="EcommerceNewCollections">
>>>        <value xml:lang="en">New collections</value>
>>>        <value xml:lang="fr">Nouvelles collections</value>
>>>    </property>
>>> </code>
>>> 
>>> But It doesn't work. Even I restart many times ofbiz and my computer. But
>>> the first (native) Labels work .
>>> 
>>> Please Help
>>> 
>>> Thanks

Re: Adding new "EcommerceUiLabels" doesn't work

Posted by Sumit Pandit <su...@tcs.com>.
Hi Anthony, 
Make sure following - 

1.   <property key="EcommerceNewCollections">
            <value xml:lang="en">New collections</value>
    >       <value xml:lang="fr">Nouvelles collections</value>
      </property>
    I can see an extra ">" in starting of french translation, please verify.

2. Make sure that EcommerceUiLabels.xml file has been included in screen you are calling.

3. For purpose of testing, try to define this property at somewhere beginning of EcommerceUiLabels.xml file. 

Otherwise it should work!

--
Thanks And Regards
Sumit Pandit
Tata Consultancy Services
Cell:- +917503046188
____________________________________________


----- Original Message -----
| From: "Antony Adopo" <sa...@gmail.com>
| To: user@ofbiz.apache.org
| Sent: Friday, October 11, 2013 4:09:53 AM
| Subject: Re: Adding new "EcommerceUiLabels" doesn't work
| 
| lol, forgot it , it was just to specify that it is code.
| 
| But I add only :
|  <property key="EcommerceNewCollections">
|         <value xml:lang="en">New collections</value>
| >       <value xml:lang="fr">Nouvelles collections</value>
|   </property>
| 
| It doesn't work when I call it by
| ${uiLabelMap.EcommerceNewCollections}
| 
| 
| 2013/10/11 Jacques Le Roux <ja...@les7arts.com>
| 
| > It should work, but what are those <code></code> ?
| >
| > Jacques
| >
| > Antony Adopo wrote:
| > > Hello Ofbizers,
| > >
| > > I try to add new labels in EcommerceUiLabels.xml (Also
| > CommonUiLabels.xml)
| > > for instance :
| > > <code>
| > > <property key="EcommerceNewCollections">
| > >        <value xml:lang="en">New collections</value>
| > >        <value xml:lang="fr">Nouvelles collections</value>
| > >    </property>
| > > </code>
| > >
| > > But It doesn't work. Even I restart many times ofbiz and my
| > > computer. But
| > > the first (native) Labels work .
| > >
| > > Please Help
| > >
| > > Thanks
| >
| 
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you



Re: Adding new "EcommerceUiLabels" doesn't work

Posted by Antony Adopo <sa...@gmail.com>.
lol, forgot it , it was just to specify that it is code.

But I add only :
 <property key="EcommerceNewCollections">
        <value xml:lang="en">New collections</value>
>       <value xml:lang="fr">Nouvelles collections</value>
  </property>

It doesn't work when I call it by ${uiLabelMap.EcommerceNewCollections}


2013/10/11 Jacques Le Roux <ja...@les7arts.com>

> It should work, but what are those <code></code> ?
>
> Jacques
>
> Antony Adopo wrote:
> > Hello Ofbizers,
> >
> > I try to add new labels in EcommerceUiLabels.xml (Also
> CommonUiLabels.xml)
> > for instance :
> > <code>
> > <property key="EcommerceNewCollections">
> >        <value xml:lang="en">New collections</value>
> >        <value xml:lang="fr">Nouvelles collections</value>
> >    </property>
> > </code>
> >
> > But It doesn't work. Even I restart many times ofbiz and my computer. But
> > the first (native) Labels work .
> >
> > Please Help
> >
> > Thanks
>

Re: Adding new "EcommerceUiLabels" doesn't work

Posted by Jacques Le Roux <ja...@les7arts.com>.
It should work, but what are those <code></code> ?

Jacques

Antony Adopo wrote:
> Hello Ofbizers,
> 
> I try to add new labels in EcommerceUiLabels.xml (Also CommonUiLabels.xml)
> for instance :
> <code>
> <property key="EcommerceNewCollections">
>        <value xml:lang="en">New collections</value>
>        <value xml:lang="fr">Nouvelles collections</value>
>    </property>
> </code>
> 
> But It doesn't work. Even I restart many times ofbiz and my computer. But
> the first (native) Labels work .
> 
> Please Help
> 
> Thanks