Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Jawwad Farooq
Always show Login page in English
July 8, 2012 9:44 PM
Answer

Jawwad Farooq

Rank: Junior Member

Posts: 35

Join Date: June 21, 2012

Recent Posts

Hi All,

I have given the option of changing the language to my portal users. Now, the problem is if a user changes its language and gets log-out, the Login page will be shown in the language selected by that user.

What I want is to always show the Login page in English.
DarshanKumar N Bhatia
RE: Always show Login page in English
July 9, 2012 2:07 AM
Answer

DarshanKumar N Bhatia

Rank: Junior Member

Posts: 85

Join Date: March 2, 2010

Recent Posts

Jawwad Farooq:
Hi All,

I have given the option of changing the language to my portal users. Now, the problem is if a user changes its language and gets log-out, the Login page will be shown in the language selected by that user.

What I want is to always show the Login page in English.



Hi,

How many Locale u have in your Web/Application???

If u have less locale then u can try this ....

In Lenaguge_en_US.properties keep langauge messages of Login page/portlet as it is.

For other locale langauge_other.properties comment or remove langauge keys and messages of Login/page/portlet.

SO when ever user changes locale ,only english will display by default for login page/portlet.
Jawwad Farooq
RE: Always show Login page in English
July 9, 2012 4:22 AM
Answer

Jawwad Farooq

Rank: Junior Member

Posts: 35

Join Date: June 21, 2012

Recent Posts

Thanks DarshanKumar for the help...
Hitoshi Ozawa
RE: Always show Login page in English
July 9, 2012 5:31 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

For other locale langauge_other.properties comment or remove langauge keys and messages of Login/page/portlet.


Very clever suggestion. This way, login page will be English but after the user logins, it'll be shown in the language the user last selected.
DarshanKumar N Bhatia
RE: Always show Login page in English
July 13, 2012 1:58 AM
Answer

DarshanKumar N Bhatia

Rank: Junior Member

Posts: 85

Join Date: March 2, 2010

Recent Posts

Hi Sir,

If your query /question is solved ,please mark as Answered.
It will be helpful for every one. emoticon
Sagar A Vyas
RE: Always show Login page in English
July 13, 2012 2:36 AM
Answer

Sagar A Vyas

Rank: Liferay Master

Posts: 657

Join Date: April 17, 2009

Recent Posts

Agree with Hitoshisan,

Cause after logging in portal user will get their default language what he/she has selected in Display Settings ( Miscellaneous) of user.

Thanks,
Sagar Vyas
Jawwad Farooq
RE: Always show Login page in English
July 13, 2012 5:59 AM
Answer

Jawwad Farooq

Rank: Junior Member

Posts: 35

Join Date: June 21, 2012

Recent Posts

DarshanKumar N Bhatia:
Hi Sir,

If your query /question is solved ,please mark as Answered.
It will be helpful for every one. emoticon


I will definitely mark it once i try this answer. Right now there are some other urgent requirements that have piled up, so I am busy in developing that.

Sorry for inconvenience...
Hitoshi Ozawa
RE: Always show Login page in English
July 13, 2012 7:37 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

If your query /question is solved ,please mark as Answered.


To mark a thread as answered, it first has to be marked as a question. I don't think this thread is marked as a question.