Fórum
Portlet title i18n
Zoltan Etedi, modificado 14 Anos atrás.
Portlet title i18n
New Member Postagens: 4 Data de Entrada: 13/03/09 Postagens Recentes
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 12 Anos atrás.
RE: Portlet title i18n
Regular Member Postagens: 127 Data de Entrada: 14/07/09 Postagens Recentes
Hi, Did you solve this problem?
David García González, modificado 12 Anos atrás.
RE: Portlet title i18n
Regular Member Postagens: 127 Data de Entrada: 14/07/09 Postagens Recentes
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 10 Anos atrás.
RE: Portlet title i18n
Regular Member Postagens: 123 Data de Entrada: 02/09/13 Postagens Recentes
Thanks David, your suggestion is really useful for me
thanks and regards
asif aftab
thanks and regards
asif aftab