lang::util::default_locale_from_lang (public)

 lang::util::default_locale_from_lang language

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

Returns an enabled default locale for a language. If a language only has one locale then that locale is returned. If no locale could be found the empty string is returned.

Parameters:
language (required)
Name of a country, using ISO-3166 two letter code
Returns:
Default locale
Author:
Henry Minsky <hqm@mit.edu>

Partial Call Graph (max 5 caller/called nodes):
%3 test_default_locale_from_lang default_locale_from_lang (test acs-lang) lang::util::default_locale_from_lang lang::util::default_locale_from_lang test_default_locale_from_lang->lang::util::default_locale_from_lang lang::util::default_locale_from_lang_not_cached lang::util::default_locale_from_lang_not_cached (private) lang::util::default_locale_from_lang->lang::util::default_locale_from_lang_not_cached util_memoize util_memoize (public) lang::util::default_locale_from_lang->util_memoize category::get_name category::get_name (public) category::get_name->lang::util::default_locale_from_lang lang::conn::browser_locale lang::conn::browser_locale (private) lang::conn::browser_locale->lang::util::default_locale_from_lang lang::message::check lang::message::check (public) lang::message::check->lang::util::default_locale_from_lang lang::message::lookup lang::message::lookup (public) lang::message::lookup->lang::util::default_locale_from_lang lang::message::register lang::message::register (public) lang::message::register->lang::util::default_locale_from_lang

Testcases:
default_locale_from_lang
[ show source ]
Show another procedure: