Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
mohit dhuper
Liferay language change from display settings in control panel
10 de Janeiro de 2012 04:38
Resposta

mohit dhuper

Ranking: New Member

Mensagens: 6

Data de entrada: 21 de Dezembro de 2011

Mensagens recentes

Hi,

I am currently working on localization on our application with liferay framework. The main problems I face is

1) On saving the language setting for a user the language ID is not persisted in db but stored in cookie. So if a user tries to log in from another browser he/she will have to again change his/her preferred language. How to overcome this?
2) A locale identifier gets added to the url . Now in portal-ext if we set locale.prepend.friendly.url.style=0 , the identifier is removed but on logging out and logging in(without clearing cookies) the default language is shown even with the same browser.
3) The above locale identifier that gets added is only in control panel and not in the portal. So when I go back to portal it shows the default locale in the url.

I tried to search a lot on this but to no avail.
Any ideas will be very helpful
Shagul Khajamohideen
RE: Liferay language change from display settings in control panel
10 de Janeiro de 2012 15:38
Resposta

Shagul Khajamohideen

Ranking: Liferay Master

Mensagens: 759

Data de entrada: 27 de Setembro de 2007

Mensagens recentes

This appears to be a bug. Which version of Liferay are you using? Can you try changing you language from My Account at liferay.com?
Hitoshi Ozawa
RE: Liferay language change from display settings in control panel
10 de Janeiro de 2012 16:14
Resposta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensagens: 7990

Data de entrada: 23 de Março de 2010

Mensagens recentes

It happens on this site too. It's a hassle changing language here too.
The problem is further complicated because if I open a new brower, language setting is reset on all browsers
so if I move to another page in the previously opened browser, I have to change the language in that browser
again as well.
I think I've mentioned it here before, but it seems it can't be easily resolved. (sigh)

Luckly for me, my users only require one language so I'm just changing the default language.
mohit dhuper
RE: Liferay language change from display settings in control panel
20 de Janeiro de 2012 01:22
Resposta

mohit dhuper

Ranking: New Member

Mensagens: 6

Data de entrada: 21 de Dezembro de 2011

Mensagens recentes

I am using liferay version 6.0.6. I recently checked liferay bundle for 6.0.6 which comes with tomcat and it works as it should

1) On saving language settings from My Account it gets persisted in database. So if I connect from any other browser it shows me language based on what user set.
2) On clearing cache and cookies and logging again I see the language user set according to his/her preferences.


Any ideas if I try to debug on login where should I look? It all boils down to what language is fetched at the time of login is it portal language, default language or user language?
Any clues ?
mohit dhuper
RE: Liferay language change from display settings in control panel
20 de Janeiro de 2012 01:24
Resposta

mohit dhuper

Ranking: New Member

Mensagens: 6

Data de entrada: 21 de Dezembro de 2011

Mensagens recentes

But language change works perfectly fine in liferay bundle shipped with tomcat server.
mohit dhuper
RE: Liferay language change from display settings in control panel
20 de Janeiro de 2012 06:47
Resposta

mohit dhuper

Ranking: New Member

Mensagens: 6

Data de entrada: 21 de Dezembro de 2011

Mensagens recentes

Looking more closely into the issue is that I save any user setting say middle name it is not getting persisted in database. Nothing is saved. But in another build the settings get saved and it works perfectly fine. I use liferay's default hsql database.