> -----Original Message-----
> From: Daniel Rall [mailto:[EMAIL PROTECTED]]
> This looks like a very nice extension to the LocalizationService.
> Stephane, would you have any interest in submitting a patch to
> Turbine's Localization service which provides this functionality?
We all have interest to do this. Small contributions add up to complete
features.
However there's one thing bothering me for instance: Date.
A date format must be based on the user locale as well so I think it might
be good to introduce additional methods to date... however how do we
retrieve the date ?
getDate() returns the default date based on the default locale.
getDate(String locale) returns the date based on the specified iso code
getDate(RunData data) returns the date based on the accept-language.
If you don't do that, you will have this:
Today is August 24, 2001 and it is 11:40:08 AM CEST
Nous sommes le August 24, 2001. Il est 11:40:08 AM CEST
This applies to other "localizable" data as well and can quickly cripple the
interface.
So i'm wondering if there is not a better way.
And we should also introduce an additional formatDate() as defined by Jon in
Scarab since this is complementary feature.
--
St�phane Bailliez
Software Engineer, Paris - France
iMediation - http://www.imediation.com
Disclaimer: All the opinions expressed above are mine and not those from my
company.