Tuesday, July 29, 2014

Locales in Liferay

I wanted to configure the languages available in Liferay 6.2 runtime interface site settings (Site Administration → Configuration → Site Settings → Display Settings → Language) to include Russian and Azerbaijani — but these were not even listed among available languages. From portal source I verified that language pack for Russian indeed exists (not for Azerbaijani though!).

Having had a look at portal.properties gives a hint that interface languages in Liferay runtime depend on locales.enabled setting, which can be overriden in one of the Liferay configuration files (reading order: portal.properties, portal-bundle.properties, portal-ext.properties & portal-setup-wizard.properties). So e.g. locales.enabled=en_US,ru_RU in portal-ext.properties will do the trick for making Russian locale available, for Azerbaijani, one would need to start translating.

And later I found that available locales can also be set from Control Panel → Configuration → Portal Settings → Display Settings → Available Languages :)

No comments:

Post a Comment