I wasn't aware of that. I was aiming at this pasage in CoreModule.java (starting 
around line 375)

  |             // If nothing is right we will endup with en_US locale.
  |             Locale preferedLocale = Locale.US;
  |             for (Enumeration e = req.getLocales();e.hasMoreElements();)
  |             {
  |                Locale requestedLocale = (Locale)e.nextElement();
  |                ResourceBundle requestedResourceBundle = 
getResourceBundle(requestedLocale);
  | 
  |                // It returns Locale.US if tmpLocale is not supported
  |                if (!requestedResourceBundle.getLocale().equals(Locale.US))
  |                {
  |                   preferedLocale = requestedLocale;
  |                   break;
  |                }
  |             }
  | 
Maybe this should be a constant or even configurable. The same goes for the part in 
the constructor:

  |    public CoreModule(boolean persistent)
  |    {
  |       super(persistent);
  |        Locale locale = Locale.US;
  |        locales.add(locale);
  |        bundles.put(locale, new ResourceBundleAggregator(locale));
  |        locale = new Locale("nl");
  |        locales.add(locale);
  |        bundles.put(locale, new ResourceBundleAggregator(locale));
  |    }
  | 
But on the other hand. Adding some new resources requires a rebuild of the jar files 
so recompiling CoreModule isn't a big problem.

But that still leaves the label question and the codestandard for the 
resource.properties. Since I'm planning some rather large changes I would like to know 
if I'm doing the right thing.

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

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


-------------------------------------------------------
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

Reply via email to