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):
- 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