(PYVMS LOGO) Python on OpenVMS

(go to: table of contents, index, list of vms_lib, prev: GET_SYMBOL, next: LP_LINES)


GET_USERS_LANGUAGE - Return the User's Language


Format:
    users_language = vms_lib.get_users_language ()
Returns:
users_language
Translation of the logical name "SYS$LANGUAGE". If the translation fails, then 'ENGLISH' is returned.
Arguments:

vms_lib.get_users_language() does not take any arguments.

Examples:

>>> import vms_lib

>>> users_language = vms_lib.get_users_language ()
>>> users_language 
'ENGLISH'

$ DEFINE SYS$LANGUAGE "GERMAN"
>>> vms_lib.get_users_language ()
'GERMAN'

* don't forget to use '$ DEASSIGN SYS$LANGUAGE' !

>>> vms_lib.get_users_language ('S')
Traceback (innermost last):
  File "<stdin>", line 1, in ?
TypeError: function requires exactly 0 arguments; 1 given

>>> vms_lib.get_users_language (None)
Traceback (innermost last):
  File "<stdin>", line 1, in ?
TypeError: function requires exactly 0 arguments; 1 given
>>>

(go to: table of contents, index, list of vms_lib, prev: GET_SYMBOL, next: LP_LINES)

30-SEP-1998 ZE.