Hmm yeah kind of..

So I want to have the usual properties file for the page and besides this for each possible value of a property an extra properties files in which specific localized messages are located.

So for example an Index page it can have the following:

- Index.properties
- Index_en.properties
- Index_120.properties
- Index_120_en.properties
- Index_130.properties
- Index_130_en.properties
- ...


But when the page loads the value of the property is for example 120 then Index.properties and Index_120.properties wil have to be used.

I hope it is more clear now. So i need to load the messages catalogs depending on the property value.

Nathan


On 10/08/15 19:11, mailingl...@j-b-s.de wrote:
Sorry Nathan I do not understand: do you want to spread properties belonging to 
one particular page accross multiple property files?

Jens

Von meinem iPhone gesendet

Am 10.08.2015 um 09:08 schrieb Nathan Quirynen <nat...@pensionarchitects.be>:

Hi,

I have in some pages/components in my Tapestry (5.3.7) application the need to 
have localized messages based on some property value.

Simplified example:

Class SomeClass {
    String code;
}

In the page I have then a property of type SomeClass and based on this value I 
need different localized messages. So I was wondering if message catalog files 
like following would be possible:
[name-of-page-or-component]_[some_class_code]_[locale].properties --> 
Index_123_en.properties

Can I implement some kind of message provider or would it be possible by implementing a binding 
prefix "SomeClassBinding" that i use instead of "message:" for these cases? 
What is the way to go and some pointers on how to implement it are appreciated.

Nathan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org


Reply via email to