Re: T5: PersistentLocale is lowercasing locales
Thanks, Serge. Bug now logged as https://issues.apache.org/jira/browse/TAPESTRY-1997 . On 23/12/2007, at 1:06 AM, SergeEby wrote: Hi Geoff, I've seen this in past releases and I had to use the following as a workaround in my AppModule to get my application to work: ... configuration.add(tapestry.supported-locales, en_us,fr_ca,zh_cn); ... This didn't work: configuration.add(tapestry.supported-locales, en_US,fr_CA,zh_CN); This look like a bug! /Serge Geoff Callender-2 wrote: Hi, Before I put this into JIRA I thought I'd check if anyone else is seeing a problem with PersistentLocale (in 5.0.6). I'm seeing it convert locales from mixed case to all lower case, which is useless for formatting. For example, if Page 1 sets the locale like this: @Inject private PersistentLocale _persistentLocaleService; Locale locale = Locale.UK; _persistentLocaleService.set(locale); System.out.println(locale is + locale + - + locale.getDisplayName()); then this is what prints: locale is en_GB - English (United Kingdom) But when I'm in Page 2 I get the locale and find it has mutated... Locale locale = _persistentLocaleService.get(); System.out.println(locale is + locale + - + locale.getDisplayName()); ...this is what prints: locale is en_gb - en_gb This mutated locale in page 2 is useless for formatting. Code like the following produces default-styling instead of UK-styling: _myDateFormat = DateFormat.getDateInstance(DateFormat.LONG, locale); System.out.println(_myDateFormat.format(new Date())); Has anyone else experienced this? Cheers, Geoff -- View this message in context: http://www.nabble.com/T5%3A-PersistentLocale-is-lowercasing-locales-tp14466509p14469664.html Sent from the Tapestry - User mailing list archive at Nabble.com. - 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]
Re: T5: PersistentLocale is lowercasing locales
Hi Geoff, I've seen this in past releases and I had to use the following as a workaround in my AppModule to get my application to work: ... configuration.add(tapestry.supported-locales, en_us,fr_ca,zh_cn); ... This didn't work: configuration.add(tapestry.supported-locales, en_US,fr_CA,zh_CN); This look like a bug! /Serge Geoff Callender-2 wrote: Hi, Before I put this into JIRA I thought I'd check if anyone else is seeing a problem with PersistentLocale (in 5.0.6). I'm seeing it convert locales from mixed case to all lower case, which is useless for formatting. For example, if Page 1 sets the locale like this: @Inject private PersistentLocale _persistentLocaleService; Locale locale = Locale.UK; _persistentLocaleService.set(locale); System.out.println(locale is + locale + - + locale.getDisplayName()); then this is what prints: locale is en_GB - English (United Kingdom) But when I'm in Page 2 I get the locale and find it has mutated... Locale locale = _persistentLocaleService.get(); System.out.println(locale is + locale + - + locale.getDisplayName()); ...this is what prints: locale is en_gb - en_gb This mutated locale in page 2 is useless for formatting. Code like the following produces default-styling instead of UK-styling: _myDateFormat = DateFormat.getDateInstance(DateFormat.LONG, locale); System.out.println(_myDateFormat.format(new Date())); Has anyone else experienced this? Cheers, Geoff -- View this message in context: http://www.nabble.com/T5%3A-PersistentLocale-is-lowercasing-locales-tp14466509p14469664.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5: PersistentLocale is lowercasing locales
Hi, Before I put this into JIRA I thought I'd check if anyone else is seeing a problem with PersistentLocale (in 5.0.6). I'm seeing it convert locales from mixed case to all lower case, which is useless for formatting. For example, if Page 1 sets the locale like this: @Inject private PersistentLocale _persistentLocaleService; Locale locale = Locale.UK; _persistentLocaleService.set(locale); System.out.println(locale is + locale + - + locale.getDisplayName()); then this is what prints: locale is en_GB - English (United Kingdom) But when I'm in Page 2 I get the locale and find it has mutated... Locale locale = _persistentLocaleService.get(); System.out.println(locale is + locale + - + locale.getDisplayName()); ...this is what prints: locale is en_gb - en_gb This mutated locale in page 2 is useless for formatting. Code like the following produces default-styling instead of UK-styling: _myDateFormat = DateFormat.getDateInstance(DateFormat.LONG, locale); System.out.println(_myDateFormat.format(new Date())); Has anyone else experienced this? Cheers, Geoff