Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Peter Hellstrand
Changing language of portal
July 11, 2012 12:58 PM
Answer

Peter Hellstrand

Rank: Regular Member

Posts: 167

Join Date: November 30, 2011

Recent Posts

Changing language doesn't work. After changing this my portal still is english.
What can be wrong? See screenshot

image hosting
Samuel Kong
RE: Changing language of portal
July 11, 2012 11:31 PM
Answer

Samuel Kong

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1483

Join Date: March 10, 2008

Recent Posts

The language you set in portal settings is the default settings. To check if this setting is working, you should sign out, clear your cookies and view the site again.

You're probably seeing English because your current user still has English set as it's display language. Go to My Account > Display settings to change your current user's default language.
Peter Hellstrand
RE: Changing language of portal
July 12, 2012 1:49 AM
Answer

Peter Hellstrand

Rank: Regular Member

Posts: 167

Join Date: November 30, 2011

Recent Posts

We have a problem that the language changes from norweigian back to english after like an hour. Any ideas about that?
Sagar A Vyas
RE: Changing language of portal
July 12, 2012 1:59 AM
Answer

Sagar A Vyas

Rank: Liferay Master

Posts: 657

Join Date: April 17, 2009

Recent Posts

Hi Peter,

You can also use following properties in 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

Thanks,
Sagar Vyas
Hitoshi Ozawa
RE: Changing language of portal
July 12, 2012 6:28 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

We have a problem that the language changes from norweigian back to english after like an hour. Any ideas about that?


It happens to me all the time while viewing liferay.com site. In my case, it is caused when I open a new browser window and view liferay.com site by clicking on a link to a Japanese page. Unfortunately, language setting is shared between browsers so my first browser's language turn to Japanese when I move to a different page.
Peter Hellstrand
RE: Changing language of portal
July 12, 2012 7:30 AM
Answer

Peter Hellstrand

Rank: Regular Member

Posts: 167

Join Date: November 30, 2011

Recent Posts

We only need to support one language.
David H Nebinger
RE: Changing language of portal
July 12, 2012 8:42 AM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 11511

Join Date: September 1, 2006

Recent Posts

I think you're missing the fact that the language used is a combination of what the default is (that you define) and what individual user's language selected is.

The default will be used for non-authenticated users. Once you log in, your own language setting in your user account (available in the control panel -> (users/my account) ->display settings) takes priority over the portal default.

I do believe that the locale may also be controlled by the local system the browser is running, as there is some support for locale in the HTTP request too, and that may also impact the language Liferay uses to display content.
Peter Hellstrand
RE: Changing language of portal
July 12, 2012 9:43 AM
Answer

Peter Hellstrand

Rank: Regular Member

Posts: 167

Join Date: November 30, 2011

Recent Posts

So there is no way setting the default language in the portal after a user have signed in?
Peter Hellstrand
RE: Changing language of portal
July 12, 2012 10:07 AM
Answer

Peter Hellstrand

Rank: Regular Member

Posts: 167

Join Date: November 30, 2011

Recent Posts

So wierd, just changed my defualut language, did reboot, the change is gone.
Hitoshi Ozawa
RE: Changing language of portal
July 12, 2012 3:11 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

If you just need one language, just have that language only in the Available Language. This way, the portal will always use that language. Most of my users only require Japanese, so I do that too so the language won't change with the browser setting.
Sagar A Vyas
RE: Changing language of portal
July 13, 2012 8:14 AM
Answer

Sagar A Vyas

Rank: Liferay Master

Posts: 657

Join Date: April 17, 2009

Recent Posts

Hi Hitoshi san,

In which case we can use language portlet then ?

Cant we use in this situation, ultimately we are changing language of portal only.

Thanks,
Sagar Vyas
Hitoshi Ozawa
RE: Changing language of portal
July 13, 2012 7:57 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

In which case we can use language portlet then ?


The language portlet will change the language but if a web browser opens a link in another language, the language may change.
Sagar A Vyas
RE: Changing language of portal
July 13, 2012 8:33 AM
Answer

Sagar A Vyas

Rank: Liferay Master

Posts: 657

Join Date: April 17, 2009

Recent Posts

Hi Hitoshi San,

Thanks for quick reply.
if a web browser opens a link in another language

- URL changes you means http://www.liferay.com/it/communit to http://www.liferay.com/en/communit it will change the content from Italian to English.

Thanks,
Sagar Vyas
Hitoshi Ozawa
RE: Changing language of portal
July 13, 2012 8:53 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

Yes. Try opening a new web browser pane by clicking on the tab, and enter the url containing different language code. Go back to your orginal web tab and go to a different page.
Sagar A Vyas
RE: Changing language of portal
July 13, 2012 9:14 AM
Answer

Sagar A Vyas

Rank: Liferay Master

Posts: 657

Join Date: April 17, 2009

Recent Posts

That means when we select different language from control panel that will not produce such URL by which language automatically gets change.

Thanks,
Sagar Vyas