lang::conn::locale (public)

 lang::conn::locale [ -package_id package_id ] [ -site_wide ] \
    [ -user_id user_id ]

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

Get the locale for this request, perhaps for a given package instance.

Switches:
-package_id (optional)
The package for which you want to get the locale.
-site_wide (optional, boolean)
Set this if you want to get the site-wide locale.
-user_id (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 test_test_get_locales test_get_locales (test acs-lang) lang::conn::locale lang::conn::locale test_test_get_locales->lang::conn::locale lang::conn::locale_not_cached lang::conn::locale_not_cached (private) lang::conn::locale->lang::conn::locale_not_cached lang::conn::charset lang::conn::charset (public) lang::conn::charset->lang::conn::locale lang::conn::language lang::conn::language (public) lang::conn::language->lang::conn::locale rp_filter rp_filter (private) rp_filter->lang::conn::locale xo::ConnectionContext proc require xo::ConnectionContext proc require xo::ConnectionContext proc require->lang::conn::locale xowiki::locales xowiki::locales (private) xowiki::locales->lang::conn::locale

Testcases:
test_get_locales
Source code:
    # Notice that caching for longer than the single request would be
    # more complex, e.g. defaults coming from ad_conn in the various
    # procs and flushing.
    return [acs::per_request_cache eval  -key acs-lang.lang.conn.locale($package_id,$site_wide_p,$user_id) {
                    lang::conn::locale_not_cached  -package_id $package_id  -site_wide=$site_wide_p  -user_id $user_id
                }]
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-lang/tcl/locale-procs.xql

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