Menu

Using seperate ResourceBundle

Help
2006-07-18
2012-10-09
  • Ralf Schwarz

    Ralf Schwarz - 2006-07-18

    Hi list,

    i'm searching for a solution for my ResourceBundle problem.
    I already use a ResourceBundle for i18n in my application and call it this way:

    ResourceBundle messages = ResourceBundle.getBundle("MessagesBundle",
    new Locale("de");

    My language file is loacate in my root path named
    "MessagesBundle_de.properties" (in this case):

    Now i want to use MY properties file to solve i18n in displaytag. Is
    there any way to use the titleKey attribute with MY properties file.
    Thanks in advance.

    Best regards,
    Ralf Schwarz

     
    • Billard Gael

      Billard Gael - 2006-09-27

      You may use an adapter (as org.displaytag.localization.I18nStrutsAdapter for struts). There are some already implemented in the displayTag jar, or simpler by resolving the localization yourself with title="<%=myResources.getString("key", locale)%>"

       

Log in to post a comment.