Re: Localized messages based on property value

2015-09-03 Thread Nathan Quirynen
Hey, I'm now using my own implementation of AbstractMessages as I described in my previous mail. I do exactly the same as in MessagesImpl. The only difference is that I add something to the baseName argument used in ResourceBundle.getBundle(baseName, ...). The selecting of the correct

Re: Localized messages based on property value

2015-08-12 Thread Nathan Quirynen
Hi Thiago, That's actually a clever solution, but seems a bit hacky and I'm not sure how it will also use the usual Index(_en).properties files? I solved it at the moment with adding a new binding prefix where i pass the key and property value like following:

Re: Localized messages based on property value

2015-08-12 Thread Thiago H de Paula Figueiredo
On Wed, 12 Aug 2015 11:37:29 -0300, Nathan Quirynen nat...@pensionarchitects.be wrote: Hi Thiago, Hi! That's actually a clever solution, but seems a bit hacky and I'm not sure how it will also use the usual Index(_en).properties files? If you create a Locale(en, 120) and a message

Re: Localized messages based on property value

2015-08-12 Thread Nathan Quirynen
On 12/08/15 17:36, Thiago H de Paula Figueiredo wrote: On Wed, 12 Aug 2015 11:37:29 -0300, Nathan Quirynen nat...@pensionarchitects.be wrote: Hi Thiago, Hi! That's actually a clever solution, but seems a bit hacky and I'm not sure how it will also use the usual Index(_en).properties

Re: Localized messages based on property value

2015-08-11 Thread Nathan Quirynen
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

Re: Localized messages based on property value

2015-08-11 Thread Thiago H de Paula Figueiredo
On Tue, 11 Aug 2015 03:29:13 -0300, Nathan Quirynen nat...@pensionarchitects.be wrote: 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

Re: Localized messages based on property value

2015-08-10 Thread mailingl...@j-b-s.de
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

Localized messages based on property value

2015-08-10 Thread Nathan Quirynen
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