You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Markus Rau <ma...@gmx.net> on 2013/01/21 22:39:01 UTC

Separate translation language and locale for date formatting possible?

Hello,

I'm creating a simple CRUD webapp for internal use in a German team, 
which has several members who speak only English. The formatting of 
dates and numbers should conform to java's german Locale("de"), which 
everyone in the team understands and expects. However, if i set the 
SymbolConstants.SUPPORTED_LOCALES to "de" all built in German message 
catalogs are used.

Can i use the Locale("de") settings for parsing and formatting, and keep 
using the default English message catalogs?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Separate translation language and locale for date formatting possible?

Posted by Geoff Callender <ge...@gmail.com>.
I often store date and numeric formats as user preferences rather than depending on locale. If practical, I cache them in the session - you can see a simplified implementation by looking at the Visit class in here:

	http://jumpstart.doublenegative.com.au/jumpstart/examples/infrastructure/protectingpages

Geoff

On 22/01/2013, at 8:39 AM, Markus Rau wrote:

> Hello,
> 
> I'm creating a simple CRUD webapp for internal use in a German team, which has several members who speak only English. The formatting of dates and numbers should conform to java's german Locale("de"), which everyone in the team understands and expects. However, if i set the SymbolConstants.SUPPORTED_LOCALES to "de" all built in German message catalogs are used.
> 
> Can i use the Locale("de") settings for parsing and formatting, and keep using the default English message catalogs?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org