cancel
Showing results for 
Search instead for 
Did you mean: 

Customize Ajax Framework L-Shape Page - Detect User Language

Former Member
0 Kudos

Hi All,

I have developed a new Ajax Framework L-Shape Page and need to detect the logged-on user language.

How can I achieve this?

Aviad

Accepted Solutions (1)

Accepted Solutions (1)

vijay_kumar49
Active Contributor
0 Kudos

you means to say, you already developed Ajax Framework L-Shape Page. right


what is exact meaning of  this line "need to detect the logged-on user language.". not understand

Former Member
0 Kudos

I want to display some text, and I need to know in what language to show it.

former_member193577
Active Contributor
0 Kudos

Hi,

I assume you have some server side code for the framework page, right?

In that code you can detect the portal language ,for example:

String language = request.getLocale().getDisplayLanguage(request.getLocale());

Best Regards,

Tal

vijay_kumar49
Active Contributor
0 Kudos

Please check this code. it should be useful. Check this link


Kindly let me know if you need any more information.

former_member193577
Active Contributor
0 Kudos

In addition just getting browser language (portal language can differ from this), you can use in javascript:

navigator.browserLanguage

Former Member
0 Kudos

Hi Tal,

navigator.browserLanguage does not show the desired output.


Using the tip you gave I have detected the language and loaded the suitable html and css.


Aviad

Answers (0)