0 Replies Latest reply on Aug 11, 2009 11:18 PM by israel.bgf

    Locale Selection

    israel.bgf
      I'm getting some problems with the locale switching. I put this as the reference told:


      <h:selectOneMenu value="#{localeSelector.localeString}">

          <f:selectItems value="#{localeSelector.supportedLocales}"/>

      </h:selectOneMenu>

      <h:commandButton action="#{localeSelector.select}"

          value="#{messages['ChangeLanguage']}"/>

      And it's not working. I have the bundles set, and the components.xml well configured too:



             <international:locale-config default-locale="en_US">
                      <international:supported-locales>
                              <value>pt_BR</value>
                              <value>en_US</value>
                      </international:supported-locales>
              </international:locale-config>

              <core:resource-loader>   
                  <core:bundle-names>  
                      <value>messages</value>    
                      <value>messages_static_entity</value>                     
                      <value>messages_business</value>                  
                      <value>messages_component</value>
                  </core:bundle-names> 
              </core:resource-loader>

      it's always using the pt_BR bundle. (The default in my region/browsers, since i'm Brazilian), but i want the English one to be default, or at least be able to be selected.

      Any ideas?

      Thks in advance,

      Israel