locale_list
Summary
Fetches the available locales.
Usage
fetch( 'content', 'locale_list' )
Returns
An array of ezlocale objects.
Description
This function fetches all the available locales and returns an array of ezlocale objects.
Examples
Example 1
{def $locales=fetch( 'content', 'locale_list' )}
{foreach $locales as $locale}
{$locale.locale_code} : {$locale.country_name} <br />
{/foreach}Outputs the locale codes and the names of the countries that the different locales belong to.
Contributors
- Balazs Halasy Updated
Comments
Add a comment