Author Topic

Valentin Doroschuk

Friday 08 September 2006 5:27:38 am

Comment45950

"Locale" fetch function:
*Summary
Fetches the available locale by locale code (for instance nor-NO or eng-GB.)

*Returns
ezlocale 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 to
3.9.0alpha1 (trunk rev. 16839).