I missed the output component which can output formatted content. Using this with my grid cells I can output the fields with a localized format. This requires some work though, a builtin localization would be much more convenient.

For the input issue I think I'll have to write a custom translator which takes into account the current request's locale. If I got it right, there are two ways to get the locale: injecting and querying PersistentLocale will give me the cookie-stored locale set by tapestry and injecting and querying RequestGlobals will give me the locale send be the user's browser. Is there some way to get an authoritative answer as to which locale the user is using or do I have to see wheter the PersistentLocale is set and if not take the one from RequestGlobals?

Uli

Ulrich Stärk schrieb:
Hi list,

For a multi-language application I'd like my users to be able to input data according to their locale, e.g. different date formats (dd.mm.YYYY) or different ways of seperating decimal places (',' instead of '.'). In T4 the translators took into account the user's locale but in T5 this feature seems to be missing. Same issue when outputting content. T4's Insert component had a Format parameter which could be used to output localized content, I couldn't find something like that in T5.

In my case I've got a BeanEditForm for creating/editing an entity with date and double fields and a Grid component for displaying a list of those. How do I localize input and output of the field's content? I already searched the documentation, the wiki, the mailing lists and even looked at the translators' source code.

TIA

Uli

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to