translation.module

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

Версия 1.23.2.4 (checked in on 2009/01/14 at 23:34:07 by goba)

Manages content translations.

Translations are managed in sets of posts, which represent the same information in different languages. Only content types for which the administrator explicitly enabled translations could have translations associated. Translations are managed in sets with exactly one source post per set. The source post is used to translate to different languages, so if the source post is significantly updated, the editor can decide to mark all translations outdated.

The node table stores the values used by this module:

  • 'tnid' is the translation set id, which equals the node id of the source post.
  • 'translate' is a flag, either indicating that the translation is up to date (0) or needs to be updated (1).

Константы

ИмяОписание
TRANSLATION_ENABLEDIdentifies a content type which has translation support enabled.

Функции

ИмяОписание
translation_form_alterImplementation of hook_form_alter().
translation_helpРеализация hook_help().
translation_linkРеализация hook_link().
translation_menuРеализация hook_menu().
translation_nodeapiImplementation of hook_nodeapi().
translation_node_get_translationsGet all nodes in a translation set, represented by $tnid.
translation_path_get_translationsReturn paths of all translations of a node, based on its Drupal path.
translation_permРеализация hook_perm().
translation_remove_from_setRemove a node from its translation set (if any) and update the set accordingly.
translation_supported_typeReturns whether the given content type has support for translations.
translation_translation_link_alterImplementation of hook_translation_link_alter().
_translation_tab_accessMenu access callback.
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему