Fórumok

How to set a default language not equal to en_US

thumbnail
alex wom, módosítva 12 év-val korábban

How to set a default language not equal to en_US

Regular Member Bejegyzések: 218 Csatlakozás dátuma: 2009.05.04. Legújabb bejegyzések
Help me please! I put server-ext.properties in webapps/ROOT/WEB-INF/classes in my liferay 6.0.6 tomcat installation with the following code:
user.timezone=Europe/Rome
user.country=IT
user.language=it

I put the same in portal-ext.properties the same, but I have two languages it_IT and en_US.
I configured in control panel->portal setting the display language to it.
And when a guest goes in home page it is displayed in english!

Where/how can I correct this problem?
thumbnail
Juhi Kumari, módosítva 12 év-val korábban

RE: How to set a default language not equal to en_US

Expert Bejegyzések: 347 Csatlakozás dátuma: 2011.12.12. Legújabb bejegyzések
Hi Alex,
I tried but unable to get a default language other than English. After change the default language than English in address bar its showing like
http://localhost:8080/en/ . Means English is not the default language but content are not getting translated. I changed default language in
portal-ext.properties,system-ext.properties nad control panel. But no use.
Is this a bug in Liferay ??

Regards
Juhi
thumbnail
alex wom, módosítva 12 év-val korábban

RE: How to set a default language not equal to en_US

Regular Member Bejegyzések: 218 Csatlakozás dátuma: 2009.05.04. Legújabb bejegyzések
Hi Juhi
after a lot of attempts the working configuration is:
portal-ext.properties:
locale.prepend.friendly.url.style=0
locales=it_IT,en_US
user.country=IT
user.language=it
locale.default.request=true

and system-ext.properties
locales=it_IT,en_US
user.country=IT
user.language=it
locale.default.request=true

When I tried with locale.prepend.friendly.url.style=1 it didn't work. I don't know why/how it works but now it is the default language. Hope this helps.
thumbnail
Juhi Kumari, módosítva 12 év-val korábban

RE: How to set a default language not equal to en_US

Expert Bejegyzések: 347 Csatlakozás dátuma: 2011.12.12. Legújabb bejegyzések
Hi alex ,
Thanks for sharing!!emoticon

Regards
Juhi
Junzhi He, módosítva 11 év-val korábban

RE: How to set a default language not equal to en_US

New Member Bejegyzések: 4 Csatlakozás dátuma: 2012.05.01. Legújabb bejegyzések
alex wom:
Hi Juhi
after a lot of attempts the working configuration is:
portal-ext.properties:
locale.prepend.friendly.url.style=0
locales=it_IT,en_US
user.country=IT
user.language=it
locale.default.request=true

and system-ext.properties
locales=it_IT,en_US
user.country=IT
user.language=it
locale.default.request=true

When I tried with locale.prepend.friendly.url.style=1 it didn't work. I don't know why/how it works but now it is the default language. Hope this helps.


Hello Alex
I have faced same problem with today. First, I suggest you to look a old bug:
http://issues.liferay.com/browse/LEP-6978?focusedCommentId=41577&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-41577

Then, as the article, you can find out a table named _user, and a colume named languageId.Ok, I think u have understand, in the database of liferay, there are each user's proper language.The portal-ext.properties we changed just set the common language of liferay, but when u log in, the page will display with user's proper language in the database. I think all u need is to Control Panel --> User(Just Below "Portal" in the left) --> Click your target User --> Display Settings(Below "Miscellaneous" in the right and bottom), and you can change Tag Language.And liferay will change the data of DB automatically.
But when you log in the liferay, you can't change le data of DB directelly, because there is conflic with the session shared of liferay.

This is all I research.

Best wishes

Junzhi