The following code in nukes/src/main/org/jboss/nukes/core/modules/core/CoreModule.java
do not work properly if the client's first preference is US locale and second
preference is another locale and the server support both locale. In the described
scenario, the server will choose the second preference instead of Locale.US.
377 // If nothing is right we will endup with en_US locale.
378 Locale preferedLocale = Locale.US;
379 for (Enumeration e = req.getLocales();e.hasMoreElements();)
380 {
381 Locale requestedLocale = (Locale)e.nextElement();
382 ResourceBundle requestedResourceBundle =
getResourceBundle(requestedLocale);
383
384 // It returns Locale.US if tmpLocale is not supported
385 if (!requestedResourceBundle.getLocale().equals(Locale.US))
386 {
387 preferedLocale = requestedLocale;
388 break;
389 }
390 }
To fix this problem of discriminating US locale, we can add the following codes
before the line 385
if
(requestedResourceBundle.getLocale().equals(requestedLocale))
{
preferedLocale = requestedLocale;
break;
}
Can some one fix this problem in CVS so that nukes will properly handle US locale as
first preference.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3829347#3829347
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3829347
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development