You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Giorgos Zervas <gi...@perlfect.com> on 2005/01/17 13:13:35 UTC

localizing @Script

Hi list,

I have a script component which produces a drop down menu for my web
application. I want the names of the menu items to be localized.

My first (failed) attempt was to have two script specification files:
Menu.script (default)
Menu_el.script (Greek)

Only the first one was picked up by Tapestry.

My second attempt was to try to pull out the messages from .properties
files. I tried creating:
Menu.properties
Meny_el.properties

but then I was unsure as to how I would access these messages in my
Menu.script.

I tried the following in my Menu.script which produced a
java.lang.NoSuchMethodException:
...
<set key="aLocalizedMsg" expression='getMessage("msg1")'/>
...

I suppose if I could figure out how to access the Script component in my
Menu.script file my problem would be solved as the getMessage() method
is defined in org.apache.tapestry.AbstractComponent from which @Script
inherits.

Any suggestions would be welcome.

Thanks,
-- 
Giorgos Zervas <gi...@perlfect.com>


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