- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-04-2014 11:26 AM
Hi, I need to display a msg if user language is "English". I am working with Var loginLanguage = g_user.getClientData("loginlanguage"); but the language value is undefined? my current language is English. Any help is appreciated.
Solved! Go to Solution.
- Labels:
-
Service Mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-04-2014 11:48 AM
There's a global variable called "g_lang" that you can use. The value would be "en" for English.
e.g. alert(g_lang) will display "en" in an alert dialog.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-04-2014 11:48 AM
There's a global variable called "g_lang" that you can use. The value would be "en" for English.
e.g. alert(g_lang) will display "en" in an alert dialog.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-04-2014 12:05 PM
that solved my issue, where did you get that? I didn't see it on the wiki.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-04-2014 01:27 PM
There are a number of global variables that we can take advantage of. Right-click on a page and select your browser's "Inspect Element" menu (or similar). You can find them at the top of the document or search for "g_lang".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-04-2014 05:56 PM
I saw it 🙂