lang::system::get_locales (public)

 lang::system::get_locales [ -all ]

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

Return all locales defined in the system. Per default only the enabled locales are returned. When the optional flag "-all" is specified, all defined locales are returned. This value is cached per thread and needs currently a server restart, when the system locales are changed.

Switches:
-all (optional, boolean)
Author:
Peter Marklund

Partial Call Graph (max 5 caller/called nodes):
%3 test_test_get_locales test_get_locales (test acs-lang) lang::system::get_locales lang::system::get_locales test_test_get_locales->lang::system::get_locales test_xowiki_test_cases xowiki_test_cases (test xowiki) test_xowiki_test_cases->lang::system::get_locales db_list db_list (public) lang::system::get_locales->db_list lang::conn::browser_locale lang::conn::browser_locale (private) lang::conn::browser_locale->lang::system::get_locales lang::conn::locale_not_cached lang::conn::locale_not_cached (private) lang::conn::locale_not_cached->lang::system::get_locales lang::system::site_wide_locale lang::system::site_wide_locale (public) lang::system::site_wide_locale->lang::system::get_locales lang::user::site_wide_locale_not_cached lang::user::site_wide_locale_not_cached (private) lang::user::site_wide_locale_not_cached->lang::system::get_locales packages/acs-admin/www/posture-overview.tcl packages/acs-admin/ www/posture-overview.tcl packages/acs-admin/www/posture-overview.tcl->lang::system::get_locales

Testcases:
test_get_locales, xowiki_test_cases
Source code:
    return [acs::per_thread_cache eval -key acs-lang.system_get_locales-$all_p {
        if {$all_p} {
            db_list select_defined_system_locales { select locale from ad_locales }
        } else {
            db_list select_enabled_system_locales {
                select locale
                from   ad_locales
                where  enabled_p = 't'
            }
        }
    }]
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-lang/tcl/locale-procs.xql

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