Gavin,

Using the browser locale is of course better than just using a default value, 
but what if the user wants to change the locale? I don't speak a word of french 
but when I'm on holiday and sit in front of a computer with a french version of 
Firefox I would at least want to be able to click a button on the site and 
change the language to English. This would be a lot easier to do if the Seam 
ResourceBundle could handle that. I posted a patch in 
http://jira.jboss.com/jira/browse/JBSEAM-149. This does not include your new 
additions but I think some kind of merge of the current version and mine should 
give a result.

Just adding a

  | public void setBundle(Locale locale) {
  |    bundle = java.util.ResourceBundle.getBundle( bundleName, locale, 
Thread.currentThread().getContextClassLoader() );
  | }
  | 
would do the trick I guess, but it would perhaps be nice to be able to just 
input a language or country code as well.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3929078#3929078

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3929078


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to