2 Replies Latest reply on Jul 27, 2012 10:12 AM by ndrw_cheung

    RF Fileupload localization problem

    ndrw_cheung

      Hi, all. I'm using RichFaces 3.3.3 and am having problems with localization of the label on the file upload button. The French label should read "Télécharger photo", but instead it appears as "Téleacute;charger photo". Code and configuration details as follows:

       

      Modify.xhtml :

       

      <rich:fileUpload fileUploadListener="#{rlpuseradmin.listener}"

                              maxFilesQuantity="1" id="upload" immediateUpload="true"

                              acceptedTypes="jpg, jpeg, jpe" allowFlash="false"

                              addControlLabel="#{rslabels.FILEUPLOAD_ADD}"

                              doneLabel="#{rslabels.FILEUPLOAD_DONE}" listHeight="100"

                              listWidth="300">

      ....

      </rich:fileUpload>

       

       

      -------------------------

      faces-config.xml :

       

       

      <locale-config>

         <default-locale>en</default-locale>

         <supported-locale>en</supported-locale>

         <supported-locale>en_CA</supported-locale>

         <supported-locale>fr</supported-locale>

         <supported-locale>fr_CA</supported-locale>

        </locale-config>

        <resource-bundle>

         <base-name>labels</base-name>

         <var>rslabels</var>

        </resource-bundle>

       

      ---------------------------

       

      labels_fr.properties :

       

      FILEUPLOAD_ADD=T\u00E9l\u00E9charger photo

       

      (note : I have also tried using "FILEUPLOAD_ADD=Télécharger photo" instead of the actual code for the accented characters. However, the result is the same).

       

       

      Note that having <h:outputText value="#{rslabels.FILEUPLOAD_ADD}" /> in the xhml file yields the correct display of the accents.

       

      Please advise. Thanks.

       

        -Andrew