lang::user::language (public)

 lang::user::language [ -package_id package_id ] [ -user_id user_id ] \
    [ -site_wide ] [ -iso6392 ]

Defined in packages/acs-lang/tcl/locale-procs.tcl

Get user language preference for a given package instance. This preliminary implementation only has one site-wide setting, though.

Switches:
-package_id (optional)
The package for which you want to get the language setting.
-user_id (optional)
The user we wish to get the language for, defaults to connection user.
-site_wide (optional, boolean)
Set this if you want to get the site-wide language setting.
-iso6392 (optional, boolean)
Set this if you want to force iso-639-2 code (3 digits)
Returns:
3 chars language code if iso6392 is set, left part of locale otherwise

Partial Call Graph (max 5 caller/called nodes):
%3 test_test_get_locales test_get_locales (test acs-lang) lang::user::language lang::user::language test_test_get_locales->lang::user::language lang::user::locale lang::user::locale (public) lang::user::language->lang::user::locale lang::util::iso6392_from_language lang::util::iso6392_from_language (public) lang::user::language->lang::util::iso6392_from_language packages/acs-lang/www/index.tcl packages/acs-lang/ www/index.tcl packages/acs-lang/www/index.tcl->lang::user::language

Testcases:
test_get_locales
[ show source ]
Show another procedure: