Foros de discusión

Internationalisation resource for liferay

Viktor Dzundza, modificado hace 7 años.

Internationalisation resource for liferay

New Member Mensajes: 16 Fecha de incorporación: 16/09/16 Mensajes recientes
Does Liferay provide a service or route for loading translation JSON from a portlet for example?
Where's we can keep localisations for all Liferay instance?
thumbnail
Samuel Kong, modificado hace 7 años.

RE: Internationalisation resource for liferay

Liferay Legend Mensajes: 1902 Fecha de incorporación: 10/03/08 Mensajes recientes
Does Liferay provide a service or route for loading translation JSON from a portlet for example?

No. Liferay generally uses Lanaguage_xx.properties files. There's no tool to convert a JSON object into Language.properties files. However, if you're writing your own portlet, you can always look up your localization in the JSON object if you want. You'll just have to write all the code for this yourself.

Where's we can keep localisations for all Liferay instance?

You should keep your localization/translations in your portlet. This way, when you deploy your portlet, all the necessary translations will be present.