You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Anjali Abraham <an...@aztec.soft.net> on 2005/09/26 14:52:04 UTC

need help for localization

Hi All,
            I need help on how to go ahead for localization behavior to be
implemented through Tapestry4.0v.
I have already read
http://jakarta.apache.org/tapestry/UsersGuide/localization.html
<http://jakarta.apache.org/tapestry/UsersGuide/localization.html> . but
didnt understand the files to be included and what need to be the contents
of these files....
 
Please respond,
Thanks in advance,
 
Regards,
Anjali
 

Re: need help for localization

Posted by Ron Piterman <rp...@gmx.net>.
for ComponentX.jwc
create ComponentX_en_US.properties
which looks like
username.label=Username
password.label=Username

use from java code:
getMessages().getMessage("username.label");
use from template:
<span key="user.name">
of
<span jwcid="@Textfield" ... displayName="message:username.label" ... />

also
for
libraryX.library
create
libraryX_en_US.properties

which will available for all pages/components.

pages are also components, so use the same way.



����� Anjali Abraham:
> Hi All,
>             I need help on how to go ahead for localization behavior to be
> implemented through Tapestry4.0v.
> I have already read
> http://jakarta.apache.org/tapestry/UsersGuide/localization.html
> <http://jakarta.apache.org/tapestry/UsersGuide/localization.html> . but
> didnt understand the files to be included and what need to be the contents
> of these files....
>  
> Please respond,
> Thanks in advance,
>  
> Regards,
> Anjali
>  
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org