ibexa

Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.

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.

Balazs Halasy (06/02/2004 12:08 pm)

Balazs Halasy (29/04/2005 8:41 am)


Comments

There are no comments.