Please enable JavaScript to view this site.

A-Shell 7.0 Release Notes

Navigation: » No topics above this level «

Get Locale

Scroll Prev Top Next More

? TAB(-10,AG_GETLOCALE); chr(127);

input "" locale$

AG_getLOCALE (115)

where locale$ is the name of the locale on the client, e.g. "en-US" (Windows indication for English language with USA regional settings). There is not currently an equivalent MX_ version to get the server locale, but for ATSD connections, you can use the utility function Fn'GetUserDefaultLocaleName$() in the SOSFUNC:fnwin32utl.bsi module to get the same information. For Linux, the following command will work:

xcall HOSTEX, "locale | grep LANG=", status, locale$