Forums / Developer / Fetching a specific locale / Comment45950
Valentin Doroschuk
Friday 08 September 2006 5:27:38 am
"Locale" fetch function: *SummaryFetches the available locale by locale code (for instance nor-NO or eng-GB.)
*Returnsezlocale object.
*Example
{def $current_locale = fetch( 'content', 'locale' ) $rus_ru_locale = fetch( 'content', 'locale', hash( 'locale_code', 'rus-RU' ) )} {$current_locale.locale_code} : {$current_locale.country_name} {$rus_ru_locale.locale_code} : {$rus_ru_locale.country_name}
Added to3.9.0alpha1 (trunk rev. 16839).