locale.module

Version 1.212.2.6 (checked in on 2009/02/25 at 11:47:37 by goba)

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.

Functions

NameDescription
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().
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.