lang::user::site_wide_locale (public)

 lang::user::site_wide_locale [ -user_id user_id ]

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

Get the user's preferred site-wide locale.

Switches:
-user_id (optional)

Testcases:
lang_test__lang_user_site_wide_locale
Source code:
    # default to current user
    if { $user_id eq "" } {
        set user_id [ad_conn untrusted_user_id]
    }

    # For all the users with a user_id of 0 don't cache.
    if { $user_id == 0} {
        return [lang::user::site_wide_locale_not_cached $user_id]
    }

    # Cache for the lifetime of sessions (7 days)
    return [util_memoize [list lang::user::site_wide_locale_not_cached $user_id] [sec_session_timeout]]
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-lang/tcl/locale-procs.xql

[ hide source ] | [ make this the default ]
Show another procedure: