Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change the default language in Liferay

Tags:

liferay

How to change the default for language?

When a user logs in for the first time, the default language is English, and I need to change that.

like image 803
Kojja Avatar asked May 19 '12 10:05

Kojja


2 Answers

You can change default language from Control panel - Portal Settings - Display Settings - Default langiuage. Also you can override params at portal-ext.properties :

#
# Set the default locale used by Liferay. This locale is no longer set at
# the VM level. See LEP-2584.
#
user.country=US
user.language=en

BR, Paul

like image 179
Pavlo Butenko Avatar answered Sep 24 '22 21:09

Pavlo Butenko


From Liferay 7 (released in 2016), the default language setting can be found in the UI at:

Control Panel > Instance Settings > Miscellaneous > Display Settings

enter image description here

Don't forget to press "Save" at the bottom of the page.

As MDT said, it overrides whatever is in portal-ext.properties.

like image 26
Nicolas Raoul Avatar answered Sep 21 '22 21:09

Nicolas Raoul