Path

ez.no / exponential / documentation / reference / data fetching / content / non_translation_list


non_translation_list

Summary

fetches a list of the locales an object can be translated into

Usage

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

Parameters

NameTypeDescriptionRequired
object_id integer the object id yes
version integer version number yes

Returns

A list of locale objects

Description

Will fetch a list of locales the object can be translated into. It will not include the locales which the object is already translated into.

Examples

Fetch the locales which object id 42 can also be translated into.

{let can_translate_to=fetch( 'content', 'non_translation_list',

                             hash( 'object_id', 42,

                                   'version', 1 ) )}

 

This object can also be translated into:

{section var=locale loop=$can_translate_to}

   {$locale.language_name}

   {delimiter},{/delimiter}

{/section}

 

{/let}

Comments

Contents

Reference

Database diagram
Template operators
Template functions
Data fetching
    Class
    Content
       access
       bookmarks
       can_instantiate_class_list
       can_instantiate_classes
       class
       class_attribute
       class_attribute_list
       collected_info_collection
       collected_info_count
       collected_info_count_list
       contentobject_attributes
       draft_count
       draft_version_list
       keyword
       keyword_count
       list
       list_count
       locale_list
       navigation_parts
       node
       non_translation_list
       object
       object_by_attribute
       object_count_by_user_id
       pending_count
       pending_list
       recent
       same_classattribute_node
       search
       section_list
       tipafriend_top_list
       translation_list
       trash_count
       trash_object_list
       tree
       tree_count
       version
       version_count
       version_list
       view_top_list
    Collaboration
    Layout
    Notification
    Package
    Section
    Shop
    URL
    User
Modules
XML tags


Created

06/02/2004
1:08:58 pm
by Balazs Halasy

Last updated

10/02/2004
1:53:00 pm
by Bård Farstad

Authors

Balazs Halasy
Bård Farstad



This page is part of the Exponential documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.