lang::system::site_wide_locale (public)

 lang::system::site_wide_locale

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

Get the site-wide system locale setting.

Partial Call Graph (max 5 caller/called nodes):
%3 test_ad_context_bar_multirow ad_context_bar_multirow (test acs-tcl) lang::system::site_wide_locale lang::system::site_wide_locale test_ad_context_bar_multirow->lang::system::site_wide_locale test_locale__test_system_package_setting locale__test_system_package_setting (test acs-lang) test_locale__test_system_package_setting->lang::system::site_wide_locale apm_package_id_from_key apm_package_id_from_key (public) lang::system::site_wide_locale->apm_package_id_from_key lang::system::get_locales lang::system::get_locales (public) lang::system::site_wide_locale->lang::system::get_locales parameter::get parameter::get (public) lang::system::site_wide_locale->parameter::get auth::local::registration::Register auth::local::registration::Register (private) auth::local::registration::Register->lang::system::site_wide_locale callback::search::datasource::impl::forums_message callback::search::datasource::impl::forums_message (private) callback::search::datasource::impl::forums_message->lang::system::site_wide_locale forum::format::reply_subject forum::format::reply_subject (public) forum::format::reply_subject->lang::system::site_wide_locale forum::message::datasource forum::message::datasource (private, deprecated) forum::message::datasource->lang::system::site_wide_locale lang::conn::locale_not_cached lang::conn::locale_not_cached (private) lang::conn::locale_not_cached->lang::system::site_wide_locale

Testcases:
locale__test_system_package_setting, ad_context_bar_multirow
Source code:
    set parameter_locale [parameter::get  -package_id [apm_package_id_from_key "acs-lang"]  -parameter "SiteWideLocale"  -default "en_US"]

    # Check validity of parameter setting
    set valid_locales [lang::system::get_locales]
    if {$parameter_locale ni $valid_locales} {
        ns_log Error "The parameter setting acs-lang.SiteWideLocale=\"$parameter_locale\" is invalid. Valid locales are: \"$valid_locales\". Defaulting to en_US locale"
        return en_US
    }

    return $parameter_locale
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-lang/tcl/locale-procs.xql

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