Re: Tapestry 5: Default Locale

2007-05-14 Thread Nick Westgate
Blackwings wrote: Hum, are we forced to encode in UTF-8?? How can we, also, change the default locale? I haven't looked into locales yet, sorry. T5's template parser uses sax. If your document has an XML encoding declaration like this: ... then presumably that encoding will be used. Otherw

Re: Tapestry 5: Default Locale

2007-05-14 Thread petros
This is how I did it http://www.nabble.com/T5---Changing-Locale-tf3376399.html#a10424282 It works when the locale of the browser is changed and the page is refreshed. However, setting the new locale using ThreadLocale doesn't work for me either. I was hoping someone was going to reply to my post

Re: Tapestry 5: Default Locale

2007-05-14 Thread Blackwings
Hum, are we forced to encode in UTF-8?? How can we, also, change the default locale? 2007/5/14, Nick Westgate <[EMAIL PROTECTED]>: > org.apache.tapestry.ioc.internal.util.TapestryException Failure parsing > template context:WEB-INF/Start.html: Invalid byte 2 of 3-byte UTF-8 > sequence. This pr

Re: Tapestry 5: Default Locale

2007-05-14 Thread Nick Westgate
org.apache.tapestry.ioc.internal.util.TapestryException Failure parsing template context:WEB-INF/Start.html: Invalid byte 2 of 3-byte UTF-8 sequence. This probably means your template is not UTF-8 encoded. Cheers, Nick. - To

Re: Tapestry 5: Default Locale

2007-05-14 Thread Blackwings
I tried the same (with fr) at the same place, and I was able to get the 'fr' labels as default translation, but I was not able to write such of code in html template : because 'é' is a 'fr' char and Tapestry return an exception, whatever I put as encoding in the HTML description itself : org.apa

Tapestry 5: Default Locale

2007-05-13 Thread Juan Maya
Hi all, Do u know how could i change the default locale for a tapestry 5 app. I already tried: configuration.add("tapestry.supported-locales", "es") in my AppModule but it doesn't seem to help. Thanks for u help