Super Contributor.. JTonn Super Contributor..
Super Contributor..
81 views

Determining Logged in User language

We are using Service Manager in 5 different languages.  Is there a way I can determine language based on the operator logging on instead of looking at the OS?

Using IE with 'pass thru; authentication.  Therefore, the ability to select a language is not available.

I know I can 'hard code' the url with ?lang=<language code> at the end but I would rather not do that.

0 Likes
1 Reply
Micro Focus Expert
Micro Focus Expert

Re: Determining Logged in User language

There is the system language function sysinfo.get(). There is a set of parameters that you can request - check out the programming guide for more.

To get the user language use this one:

$lang=sysinfo.get("languagecode")

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.