Foren

Main navigation broken if locale en_US is not configured

Thomas Weckert, geändert vor 14 Jahren.

Main navigation broken if locale en_US is not configured

Junior Member Beiträge: 54 Beitrittsdatum: 10.08.09 Neueste Beiträge
Hi all,

I'm not sure if this is the correct forum for my issue, and I'm not sure if this is a bug or a feature, but maybe this posting will help others because it took me a while to figure out what went wrong.

If you configure in portal-ext.properties the locale(s) of your Liferay 5.2.3 portal e.g. like:

locales=de_DE

you cannot add pages/layouts anymore. It seems as if the en_US locale is mandatory for Liferay. If the en_US locale is excluded from the configuration, the name attribute in the Layout table contains just an empty XML node "<root/>". As a result, the main navigation and the "manage pages" configuration dialog contains an "empty" entry for that layout.

Cheers, Thomas
thumbnail
Corné A, geändert vor 14 Jahren.

RE: Main navigation broken if locale en_US is not configured

Liferay Legend Beiträge: 1313 Beitrittsdatum: 03.10.06 Neueste Beiträge
Did you configure languages in the system-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
Thomas Weckert, geändert vor 14 Jahren.

RE: Main navigation broken if locale en_US is not configured

Junior Member Beiträge: 54 Beitrittsdatum: 10.08.09 Neueste Beiträge
Hi Corné,

no, I didn't touch system-ext.properties. I wanted to have a Liferay instance just with the German locale running. Since that portal is a company intranet it doesn't make much sense to offer dozens of locales to users. The effect between my issue and the setting that you mentioned is not clear to me...

Cheers, Thomas
thumbnail
Corné A, geändert vor 14 Jahren.

RE: Main navigation broken if locale en_US is not configured

Liferay Legend Beiträge: 1313 Beitrittsdatum: 03.10.06 Neueste Beiträge
You should touch the system-ext.properties and change it to your likings

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