Re: Localized validation messages

2006-12-19 Thread Greg Ward
On 12/19/06, Marilen Corciovei <[EMAIL PROTECTED]> wrote: In fact you don't need to overwrite the ValidationStrings.properties which is supposed to be the default one. You just need to have the ValidationStrings_{locale_code}.properties. In order to add french validation to Tapestry I created a T

Re: Localized validation messages

2006-12-19 Thread Martin Strand
for custom validation messages you can do something like this: note the % in front of the message key read more here: http://tapestry.apache.org/tapestry4.1/usersguide/validation.html On Tue, 19 Dec 2006 11:22:31 +0100, Cyrille37 <[EMAIL PROTECTED]> wrote: Marilen Corciovei a écrit : In fa

Re: Localized validation messages

2006-12-19 Thread andyhot
http://tapestry.apache.org/tapestry4.1/usersguide/localization.html See the namespace message catalogs Marilen Corciovei wrote: On Tue, 2006-12-19 at 11:22 +0100, Cyrille37 wrote: Marilen Corciovei a écrit : In fact you don't need to overwrite the ValidationStrings.properties which

Re: Localized validation messages

2006-12-19 Thread Marilen Corciovei
On Tue, 2006-12-19 at 11:22 +0100, Cyrille37 wrote: > Marilen Corciovei a écrit : > > In fact you don't need to overwrite the ValidationStrings.properties > > which is supposed to be the default one. You just need to have the > > ValidationStrings_{locale_code}.properties. In order to add french >

Re: Localized validation messages

2006-12-19 Thread Cyrille37
Marilen Corciovei a écrit : In fact you don't need to overwrite the ValidationStrings.properties which is supposed to be the default one. You just need to have the ValidationStrings_{locale_code}.properties. In order to add french validation to Tapestry I created a Tapestry-french-validation.jar

Re: Localized validation messages

2006-12-19 Thread Marilen Corciovei
In fact you don't need to overwrite the ValidationStrings.properties which is supposed to be the default one. You just need to have the ValidationStrings_{locale_code}.properties. In order to add french validation to Tapestry I created a Tapestry-french-validation.jar in the lib with the following

Re: Localized validation messages

2006-12-18 Thread cyrille37
Norbert Sándor wrote: > > I think you have to use this "dirty" solution. > Ok, I'll use another way : injecting the message into the Validator -- View this message in context: http://www.nabble.com/Localized-validation-messages-tf2842493.html#a7938551 Sent

Re: Localized validation messages

2006-12-18 Thread Norbert Sándor
I think you have to use this "dirty" solution. There is an issue about this problem, it is currently scheduled for 4.1.2 (http://issues.apache.org/jira/browse/TAPESTRY-698). Regards: Norbi Cyrille37 írta: Hello, I was coming mad when trying to localize my validation messages. After some sear

Localized validation messages

2006-12-18 Thread Cyrille37
Hello, I was coming mad when trying to localize my validation messages. After some search I've found a thread in that list which explain that: [quote] That's because Tapestry looks for "username-not-unique" in the properties file bundeled with Tapestry. To override it, your ValidationStrings.p

Re: Localized validation messages

2006-08-02 Thread Malin Ljungh
Ljungh [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 01, 2006 8:24 PM To: Tapestry users Subject: Localized validation messages Gah! Please save me from madness... I've posted earlier about validation messages. I'm now stuck on getting them localized. I keep

RE: Localized validation messages

2006-08-02 Thread Firas Adiler
he package /org/apache/tapestry/valid/ under your source folder and place your custom ValidationStrings.properties there. Lycka till! ;-) -Original Message- From: Malin Ljungh [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 01, 2006 8:24 PM To: Tapestry users Subject: Localized validatio

Re: Localized validation messages

2006-08-02 Thread Ivano
The resourse bundle files need to be on the classpath. Try moving them to WEB-INF/classes. Malin Ljungh wrote: Gah! Please save me from madness... I've posted earlier about validation messages. I'm now stuck on getting them localized. I keep getting the following exception: java.util.Missi

Localized validation messages

2006-08-01 Thread Malin Ljungh
Gah! Please save me from madness... I've posted earlier about validation messages. I'm now stuck on getting them localized. I keep getting the following exception: java.util.MissingResourceException Can't find resource for bundle java.util.PropertyResourceBundle, key username-not-unique I've p