*Title: Locale template fetch function
*Documentation:
The "locale" fetch function has been added that allows a specific locale to be fetched.
The function has "locale_code" parameter.
If it is omitted current locale name will be used (site.ini[RegionalSettings].Locale)
*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}
Locale template fetch function
The "locale" fetch function has been added that allows a specific locale to be fetched. The function has "locale_code" parameter. If it is omitted current locale name will be used (site.ini[RegionalSettings].Locale)
Address: https://doc.exponential.earth/exphelp/viewer/features/3.9/added_locale_template_fetch_function.txt
Documentation license
This page was inherited from the documentation of the original software. It is not covered by the GNU Free Documentation License; it is distributed under the GNU General Public License, version 2.
Copyright (C) 1999 - 2014 eZ Systems AS and contributors