Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Cesar Pajares
Liferay EE - Default Language problem
June 14, 2011 6:08 AM
Answer

Cesar Pajares

Rank: Junior Member

Posts: 27

Join Date: September 25, 2007

Recent Posts

hi all,

I have a problem when set the default language of Liferay 6 Enterprise Edition .

We virtualized two new sites, and we want to be in Spanish language by default. Changing the default language on the control panel and configuring it in Spanish, it does not then change into a portal.

We test the Language portlet, and the surprise is that when trying to select the Spanish language, the path that putting is as follows.
http://www.localdomain1.com:8080/en/home and does not change the language. If you manually change the path "es" if that changes.
With any other language is not the case.

The funny thing is that trying to set up another default language in the control panel, for example Portuguese, Liferay works the same way. When selecting the language portlet Portuguese language redial the same url: http://www.localdomain1.com:8080/en/home

Can not configuring the Spanish portal by default, but it sounds so easy to do ....

In the site http://localhost:8080, I have no problem, only the sites I have virtualized ...

Any ideas?
Scott Palmer
RE: Liferay EE - Default Language problem
June 14, 2011 10:20 PM
Answer

Scott Palmer

Rank: Junior Member

Posts: 36

Join Date: January 8, 2010

Recent Posts

Hi Cesar,

Take a look at this post which outlines a few of the pitfalls associated with changing the locale. http://www.liferay.com/community/wiki/-/wiki/Main/Configure+time+zones+and+locale

I think if you set the default language to Spanish then the pages that are in Spanish wont have a /es/ as they are the default. It would be other versions of the page in another language that have the /en/ etc.

You can check to see that the page you are creating has the correct language by doing the following:
-Browse to the page you want to check
-Click on Manage (in the dockbar)
-Page

This will bring you to the manage pages screen and you should be able to see both the default language and the localized language. What's probably happened is one is set to Spanish and the other is English which would be why you are getting the /en/ in the URL.

If you look at the guide above it will show you how to set them by default when you first create your Liferay instance.