Foros de discusión

Language Support

Juan Miguel Leal Aragón, modificado hace 6 años.

Language Support

Junior Member Mensajes: 27 Fecha de incorporación: 24/10/17 Mensajes recientes
Hello guys,

I have a question about language file properties. I have two portlets in my project plugin and i have in my file properties the key javax.portlet.title.XXX for each portlet.

How do you this case?

I read this link , but don´t work

https://web.liferay.com/es/community/wiki/-/wiki/Main/Portlet+Localization+-+Outside+Liferay

Advanced thanks.
thumbnail
Olaf Kock, modificado hace 6 años.

RE: Language Support

Liferay Legend Mensajes: 6403 Fecha de incorporación: 23/09/08 Mensajes recientes
That Wiki is deprecated, its content from between 2008 and 2012.

I'm not getting what you're trying to achieve: Have two portlets in a plugin, and give a title to both? It depends, which version of Liferay you're using. In Liferay 7 it's no problem to use the portlet id in Language.properties
thumbnail
Jose Jimenez, modificado hace 6 años.

RE: Language Support

Regular Member Mensajes: 176 Fecha de incorporación: 23/08/12 Mensajes recientes
Hey Juan Miguel,

if you are in prior versions to 7, try to use <portlet-name>_WAR_<satinized-war-name>, see an example of the key and a portlet descriptor

For Liferay 7 here you have the official doc, and the portlet-name it should work, see an example here and here

I hope this helps!!

Best regards,
Jose
Juan Miguel Leal Aragón, modificado hace 6 años.

RE: Language Support

Junior Member Mensajes: 27 Fecha de incorporación: 24/10/17 Mensajes recientes
Thank you very much emoticon
thumbnail
Jose Jimenez, modificado hace 6 años.

RE: Language Support

Regular Member Mensajes: 176 Fecha de incorporación: 23/08/12 Mensajes recientes
You are welcome Juan!