Hi !

 

Could somebody tell me what is the correct way to code the following (I want to call the file

webclient.properties if the locale is English fr_webclient.properties if the locale is French):

 

What does mean <% here ?

 

<%

      FacesContext fc = FacesContext.getCurrentInstance();

    

      // set locale for JSF framework usage

      fc.getViewRoot().setLocale(Application.getLanguage(fc));

%>

  

 

   <%-- load a bundle of properties with I18N strings --%>

If Application.getLanguage(fc).equals(“en”)

   <f:loadBundle basename="alfresco.messages.en_webclient" var="msg"/>

Else

   <f:loadBundle basename="alfresco.messages.fr_webclient" var="msg"/>

 

Thanks

Sophie

Reply via email to