Re: t5 localization

2009-10-03 Thread jimmyblue
gt; the tml file looks like >>>> >>>> http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";> >>>>         >>>>                German | >>>>                English | >>

Re: t5 localization

2009-10-03 Thread Howard Lewis Ship
org/schema/tapestry_5_1_0.xsd";> >>>         >>>                German | >>>                English | >>>         >>> >>> >>> en and de have been set in the configuration. the english version just >

Re: t5 localization

2009-10-03 Thread jimmyblue
org/schema/tapestry_5_1_0.xsd";> >>         >>                German | >>                English | >>         >> >> >> en and de have been set in the configuration. the english version just >> works >> fine. as soon as I click the german l

Re: t5 localization

2009-10-03 Thread Howard Lewis Ship
n | >                English | >         > > > en and de have been set in the configuration. the english version just works > fine. as soon as I click the german link, I'm redirected to the index page. > > tried it with tapestry 5.2.0-SNAPSHOT and 5.1.0.5. > > ca

t5 localization

2009-10-03 Thread jimmyblue
p://www.nabble.com/t5-localization-tp25729423p25729423.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional command

Re: [T5] Localization problem (PageTester) on Linux

2008-11-30 Thread Daniel Kleine-Albers
Hi guys, solved it myself. I had the appName for the PageTester as "App". After changing it to "app" everything works as expected on both platforms. However I wonder if this is a bug (as Mac OS X is case-sensitive as well) or if this is the expected behaviour? Thanks, Daniel On 30.11.2

[T5] Localization problem (PageTester) on Linux

2008-11-30 Thread Daniel Kleine-Albers
Hi everyone, I'm experiencing a strange behaviour regarding localization. As usual I've got two localization catalogs in my WEB-INF directory: app.properties app_de.properties I've got some unit tests using the PageTester initialized like this: tester = new PageTester(appPackage, appName, "s

Re: T5 : localization problem

2008-10-22 Thread Stephane Decleire
Thanks Tiago Really strange component behavior since it's in total contradiction with the framework spirit : "Designers love it because Tapestry templates are so close to ordinary HTML, without all the cruft and confusion seen in JavaServer Pages." "The goal in Tapestry is for component templ

Re: T5 : localization problem

2008-10-22 Thread Thiago H. de Paula Figueiredo
Em Wed, 22 Oct 2008 06:54:33 -0300, Stephane Decleire <[EMAIL PROTECTED]> escreveu: But with the following piece of code, the result is the hardcoded "Firstname" string. Localization of the string did not occured ... Firstname This is how the Label component works: if you provide a body, it

T5 : localization problem

2008-10-22 Thread Stephane Decleire
Hi all, I encounter the following problem : If i include the following code in one of my form, with the appropriate line firstname-label=prenom in my french localized messages file, the result is OK and the firstname label is localized. But with the following piece of code, the result is th

Re: T5 : localization in ComponentClassTransformWorker

2008-10-17 Thread Stephane Decleire
I've already tried to inject the ComponentResources into my class without success :-( public static void contributeComponentClassTransformWorker(OrderedConfiguration configuration, PropertyAccess propertyAccess, ComponentResources componentResources) { configuration.add("InjectSelectio

Re: T5 : localization in ComponentClassTransformWorker

2008-10-17 Thread Stephane Decleire
I've already tried to inject the ComponentResources into my class without success :-( public static void contributeComponentClassTransformWorker(OrderedConfiguration configuration, PropertyAccess propertyAccess, ComponentResources componentResources) { Caused by: java.lang.RuntimeException:

Re: T5 : localization in ComponentClassTransformWorker

2008-10-16 Thread Howard Lewis Ship
Classes are non-localized. However, you can write code that can access the current Locale or localed Messages object via the ComponentResources object injected into each class. On Thu, Oct 16, 2008 at 2:48 PM, Stephane Decleire <[EMAIL PROTECTED]> wrote: > Hi everybody, > > Is there a way to use

T5 : localization in ComponentClassTransformWorker

2008-10-16 Thread Stephane Decleire
Hi everybody, Is there a way to use Tapestry localization services like Messages in a ComponentClassTransformWorker ? My goal is to localize the component described by Marcelo Lotif in the Tapestry Wiki (http://wiki.apache.org/tapestry/Tapestry5AnotherSelectWithObjects). Thanks in advance

T5 : localization of Options in a dropdown list

2008-10-13 Thread Stephane Decleire
Hi, What is the best way to localize the options of a dynamically generated Select component ? Thanks in advance. Stephane

Re: T5 - Localization and Templating Questions

2008-10-08 Thread Tobias Wehrum
Hi there, a late answer, but maybe good to have in the archive when somebody browses it: 1) You can use the method getMessages() of the service ComponentResources to get the message bundle of the Template. - Tobias Filip S. Adamsen schrieb: Hi, Welcome to the list. :) Regarding your que

Re: T5 - Localization and Templating Questions

2008-06-11 Thread Filip S. Adamsen
Hi, Welcome to the list. :) Regarding your questions: 1) There's no way to localize page classes. Why do you need this? 2) For overriding internal services - if you must - you can probably use an Alias: http://tapestry.apache.org/tapestry5/tapestry-core/guide/alias.html. 3) No, there's no

T5 - Localization and Templating Questions

2008-06-10 Thread Keith Zantow
Hi all, I've read through the majority of the Tapestry 5 documentation and implemented a few samples to make sure I understand how things work. There are a few specific tasks I couldn't figure out and would appreciate if anyone could shed some light... 1) Is there a way to localize page classes?

Re: T5 : Localization of input validation

2007-10-31 Thread Nick Westgate
Or just look on the wiki: http://wiki.apache.org/tapestry/Tapestry5HowToOverrideTheDefaultErrorMessageBanner Cheers, Nick. Marcus wrote: Hi Stephane, search this forum for "*T5 How to Override the default banner message" * Marcus

Re: T5 : Localization of input validation

2007-10-31 Thread Marcus
Hi Stephane, search this forum for "*T5 How to Override the default banner message" * Marcus

T5 : Localization of input validation

2007-10-31 Thread Stephane Decleire
Hi, I can't find the way to localize the default messages provided by Tapestry for input validation like : "You must correct the following errors before you may continue" or "You must provide a value for ..." Any help is welcome. Stephane

Re: [T5] Localization and application message catalog

2007-10-29 Thread Olof Næssén
I'm facing the exact same problem. I have a WEB-INF/AppName.properties properties file that works fine, but as soon as I localise it - for example renaming it to WEB-INF/AppName_sv.properties - it's not found or not used and I end up with missing messages. Is this a bug? I'm using 5.0.6 by the wa

RE: [T5] Localization

2007-08-28 Thread Doug Hauge
t; From: Massimo Lusetti [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 28, 2007 2:32 PM > To: Tapestry users > Subject: Re: [T5] Localization > > On 8/28/07, Christoph Jaeger <[EMAIL PROTECTED]> wrote: > > > If not, does this seem difficult to implement? > >

Re: [T5] Localization

2007-08-28 Thread Massimo Lusetti
On 8/28/07, Christoph Jaeger <[EMAIL PROTECTED]> wrote: > If not, does this seem difficult to implement? Using normal ResourceBundle features? And doing that inside javacode where logic belongs? -- Massimo http://meridio.blogspot.com

[T5] Localization

2007-08-28 Thread Christoph Jaeger
Hi, is there a way to use messages with parameters directly from a HTML template? Something like: ${message:results,prop:numberOfDatasets} with Page.java ... public int getNumberOfDatasets() { return numberOfDatasets; } ... Page_en.properties: results:Found %d datasets. Page_de.p

Re: [T5] Localization and application message catalog

2007-08-27 Thread Nick Westgate
It works fine for me using the following files/code: app_ja.properties app_en.properties AppModule.java: configuration.add("tapestry.supported-locales", "en,ja"); Page.html: Japanese English Page.java: @Inject private PersistentLocale persistentLocaleService; ... voi

Re: [T5] Localization and application message catalog

2007-08-25 Thread matt22
it is > recognized correctly so it is not a matter of bad language settings. > > Do you have any idea why global resource files with language appendixes > (_en, _pl, _de) are ignored? > > jm. > > > -- View this message in context: http://www.nabble.com/-T5--

[T5] Localization and application message catalog

2007-08-06 Thread Janko Muzykant
Component_pl.html) it is recognized correctly so it is not a matter of bad language settings. Do you have any idea why global resource files with language appendixes (_en, _pl, _de) are ignored? jm. -- View this message in context: http://www.nabble.com/-T5--Localization-and-application-messa

Change in T5 (localization)

2007-04-11 Thread Stephane PAQUET
Hi Howard, I do really appreciate T5. It's quite impressive right now and expect it to be the definitive framework when completed. for now I have a remark. Page http://tapestry.apache.org/tapestry5/ tapestry-core/guide/localization.html includes a strange translation of "Welcome Back" :