Foros de discusión
Portlet title i18n
Zoltan Etedi, modificado hace 14 años.
Portlet title i18n
New Member Mensajes: 4 Fecha de incorporación: 13/03/09 Mensajes recientes
Hi all,
I'm having troubles with i18n of the portlet title.
What I've tried:
and altough the category i18n is OK and the portlet appears in the category after selecting "Add application" the portlet title is My Portlet.
I've also tried omitting the <portlet-info> tag, then "null" appears in the title.
Have you got any idea what the problem could be?
Thank you,
Zolie
I'm having troubles with i18n of the portlet title.
What I've tried:
- In liferay-display.xml I've added:
<display>
<category name="category.mycategory">
<portlet id="MyPortlet">
</portlet>
</category>
</display>
* - In the portlet.xml file <portlet-name>MyPortlet</portlet-name> in the <portlet section>.
* - Added to the Language-ext_xx_XX.properties files the following lines:
category.mycategory=Category name
javax.portlet.title.MyPortlet=My Portlet xx_XX
And copied in the content folder which resides on the classpath.
* - Finally I've modifies portlet.xml adding/modifying the following tags:
<portlet-name>MyPortlet</portlet-name>
<portlet-info>
<title>MyPortlet</title>
<short-title>MyPortlet</short-title>
<keywords>MyPortlet</keywords>
</portlet-info>
and altough the category i18n is OK and the portlet appears in the category after selecting "Add application" the portlet title is My Portlet.
I've also tried omitting the <portlet-info> tag, then "null" appears in the title.
Have you got any idea what the problem could be?
Thank you,
Zolie
David García González, modificado hace 12 años.
RE: Portlet title i18n
Regular Member Mensajes: 127 Fecha de incorporación: 14/07/09 Mensajes recientes
Hi, Did you solve this problem?
David García González, modificado hace 12 años.
RE: Portlet title i18n
Regular Member Mensajes: 127 Fecha de incorporación: 14/07/09 Mensajes recientes
At least in version 5.x you have to add a key javax.portlet.title in the Language.properties file of the portlet.
Example:
Example:
javax.portlet.title=Your i8n portlet name
asif aftab, modificado hace 10 años.
RE: Portlet title i18n
Regular Member Mensajes: 123 Fecha de incorporación: 2/09/13 Mensajes recientes
Thanks David, your suggestion is really useful for me
thanks and regards
asif aftab
thanks and regards
asif aftab