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):
- Testcases:
- default_locale_from_lang
Source code: return [util_memoize [list lang::util::default_locale_from_lang_not_cached $language]]XQL Not present: PostgreSQL, Oracle Generic XQL file: packages/acs-lang/tcl/lang-util-procs.xql