Skip to the content
Documentation

non_translation_list

No ratings yet

Summary

Fetches locales that a version of an object may be translated into.

Usage

fetch( 'content', 'non_translation_list', hash( 'object_id', id, 'version', version )

Parameters

Name Type Description Required
object_id integer The ID number of the target object. Yes.
version integer The target version number. Yes.

Returns

An array of ezlocale objects or FALSE.

Description

This function will fetch all the locales that a specific version of a content object may be translated to. The locales which the version is already translated to will not be included. The function returns an array of ezlocale objects. It will return FALSE if there are no more alternate locales.

Examples

Example 1

{def $locales=fetch( 'content', 'non_translation_list',
                              hash( 'object_id', 42,
                                    'version',    3 ) )}

{foreach $locales as $locale}
    {$locale.language_name} <br />
{/foreach}

Outputs the language names of the locales that version number 3 of object number 42 can be translated to.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.