locale.module

Version

1.221 (checked in on 2008/08/25 at 07:54:36 by dries)

Description

Add language handling functionality and enables the translation of the user interface to languages other than English.

When enabled, multiple languages can be set up. The site interface can be displayed in different languages, as well as nodes can have languages assigned. The setup of languages and translations is completely web based. Gettext portable object files are supported.

Constants

Namesort iconDescription
LANGUAGE_LTRLanguage written left to right. Possible value of $language->direction.
LANGUAGE_RTLLanguage written right to left. Possible value of $language->direction.

Functions

Namesort iconDescription
localeProvides interface translation services.
locale_blockImplementation of hook_block(). Displays a language switcher. Translation links may be provided by other modules.
locale_form_alterImplementation of hook_form_alter(). Adds language fields to forms.
locale_get_pluralReturns plural form index for a specific number.
locale_helpImplementation of hook_help().
locale_inc_callbackWrapper function to be able to set callbacks in locale.inc
locale_language_listReturns array of language names
locale_language_nameReturns a language name
locale_localeImplementation of hook_locale().
locale_menuImplementation of hook_menu().
locale_permImplementation of hook_perm().
locale_system_updateImports translations when new modules or themes are installed or enabled.
locale_themeImplementation of hook_theme().
locale_update_js_filesUpdate JavaScript translation file, if required, and add it to the page.
locale_userImplementation of hook_user().
 
 

Drupal is a registered trademark of Dries Buytaert.