10 Replies Latest reply on Apr 18, 2008 9:55 AM by Yurii Kartsev

    rich:fileUpload - internationalization method

    Yurii Kartsev Apprentice

      Good afternoon, dear RF developers.

      Sorry for such a simple question, but can you please give a little example on this(from RF 3.2.0 developer's guide):

      ...
      The <rich:fileUpload> component allows to use internationalization method to
      redefine and localize the labels. You could use application resource bundle and define
      RICH_FILE_UPLOAD_CANCEL_LABEL, RICH_FILE_UPLOAD_STOP_LABEL,
      RICH_FILE_UPLOAD_ADD_LABEL, RICH_FILE_UPLOAD_UPLOAD_LABEL,
      RICH_FILE_UPLOAD_CLEAR_LABEL, RICH_FILE_UPLOAD_CLEAR_ALL_LABEL,
      RICH_FILE_UPLOAD_PROGRESS_LABEL, RICH_FILE_UPLOAD_SIZE_ERROR_LABLE,
      RICH_FILE_UPLOAD_TRANSFER_ERROR_LABLE,
      RICH_FILE_UPLOAD_ENTRY_STOP_LABEL, RICH_FILE_UPLOAD_ENTRY_CLEAR_LABEL,
      RICH_FILE_UPLOAD_ENTRY_CANCEL_LABEL there.
      ...


      I already use resourse bundle for internationalization, it's like this:
      ...
      
      <a4j:loadBundle basename="lan" var="muiBundle"/>
      
      ...
      
      <h:outputText value="#{muiBundle.persDataInsurance}" />
      
      ...

      these resources are three files: lan_en.properties, lan_ro.properties, lan_ru.properties.

      So is it possible to redefine fileUpload labels using these bundles?

      Thank you very much for your reply.