Forums de discussion
Portlet title i18n
Zoltan Etedi, modifié il y a 14 années.
Portlet title i18n
New Member Publications: 4 Date d'inscription: 13/03/09 Publications récentes
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, modifié il y a 12 années.
RE: Portlet title i18n
Regular Member Publications: 127 Date d'inscription: 14/07/09 Publications récentes
Hi, Did you solve this problem?
David García González, modifié il y a 12 années.
RE: Portlet title i18n
Regular Member Publications: 127 Date d'inscription: 14/07/09 Publications récentes
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, modifié il y a 10 années.
RE: Portlet title i18n
Regular Member Publications: 123 Date d'inscription: 02/09/13 Publications récentes
Thanks David, your suggestion is really useful for me
thanks and regards
asif aftab
thanks and regards
asif aftab