1 Reply Latest reply on Oct 25, 2010 4:38 AM by ilya_shaikovsky

    Problem internationalizating my application

    dracola24

      Hello!

      I am having problems and even if I check all my configuration hudreds of time, I can't figure out what is happening. My files follow:

       

      faces-config.xmls

      ...

      <application>
              <locale-config>
                  <default-locale>en</default-locale>
                  <supported-locale>fr</supported-locale>
                  <supported-locale>de</supported-locale>
                  <supported-locale>es</supported-locale>
              </locale-config>
              <resource-bundle>
                  <base-name>messages.Messages</base-name>
                  <var>msg</var>
              </resource-bundle>
          </application>
      </faces-config>

       

      layout.xml

      ...

      <f:loadBundle basename="messages.Messages" var="msg1"/>

      ...

       

      Messages_es.properties which is in WEB-INF/classes/messages, includes a pair like this:

      email=Dirección de correo electrónico

       

      In login.xhtml, for instance:

      <h:outputText value="#{msg1.email}"/>

       

      What I am doing wrong?? I don't get any displayed result in login.xhtml.

      Thanks in advance