0 Replies Latest reply on Mar 18, 2010 4:45 PM by Matej Lazar

    ResourceBundle locale bug ?

    Matej Lazar Newbie

      I have messagesen.properties and messagessl.properties


      My default locale is set to non English (sl).


      If I use:


      rb = SeamResourceBundle.getBundle(SeamResourceBundle.class.getName(),org.jboss.seam.core.Locale.instance().ENGLISH);
      rb.getString("key")






      or





      rb = SeamResourceBundle.getBundle(SeamResourceBundle.class.getName());
      rb.getString("key");







      I get NON english version of message, also rb.getLocale() returns my default setting


      I have to use



      LocaleSelector.instance().setLocaleString("en");
      rb = SeamResourceBundle.getBundle(SeamResourceBundle.class.getName());
      rb.getString("key");






      to get english version.


      Why is my first option not working, am I missing something ?


      using seam 2.1.2