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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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)%>"
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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)%>"