ibexa

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

translation_list

Summary

Fetches the locales that can be used to translate objects.

Usage

fetch( 'content', 'translation_list' )

Returns

An array of ezlocale objects.

Description

This function fetches all the available locales that can be used to translate the contents of objects. This translations can be managed from within the "Translations" section of the "Setup" part within the administration interface. The function returns an array of ezlocale objects.

Examples

Example 1

{def $locales=fetch( 'content', 'translation_list' )}
 
{foreach $locales as $locale}
    {$locale.language_name} <br />
{/foreach}

Outputs the names of the languages that can be used to translate the contents of objects.

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

Balazs Halasy (29/04/2005 9:00 am)


Comments

There are no comments.