locale.inc

Version 1.174.2.10 (checked in on 2009/09/15 at 10:40:26 by goba)

Administration functions for locale.module.

Constants

NameDescription
LOCALE_IMPORT_KEEPTranslation import mode keeping existing translations and only inserting new strings.
LOCALE_IMPORT_OVERWRITETranslation import mode overwriting all existing translations if new translated version available.
LOCALE_JS_STRING

Functions

NameDescription
locale_add_languageAPI function to add a language.
locale_batch_by_componentPrepare a batch to run when installing modules or enabling themes. This batch will import translations for the newly added components in all the languages already set up on the site.
locale_batch_by_languagePrepare a batch to import translations for all enabled modules in a given language.
locale_languages_add_screenUser interface for the language addition screen.
locale_languages_configure_formSetting for language negotiation options
locale_languages_configure_form_submitSubmit function for language negotiation settings.
locale_languages_custom_formCustom language addition form.
locale_languages_delete_formUser interface for the language deletion confirmation screen.
locale_languages_delete_form_submitProcess language deletion submissions.
locale_languages_edit_formEditing screen for a particular language.
locale_languages_edit_form_submitProcess the language editing form submission.
locale_languages_edit_form_validateValidate the language editing form. Reused for custom language addition too.
locale_languages_overview_formUser interface for the language overview screen.
locale_languages_overview_form_submitProcess language overview form submissions, updating existing languages.
locale_languages_predefined_formPredefined language setup form.
locale_languages_predefined_form_submitProcess the language addition form submission.
locale_languages_predefined_form_validateValidate the language addition form.
locale_string_is_safeCheck that a string is safe to be added or imported as a translation.
locale_translate_delete_formUser interface for the string deletion confirmation screen.
locale_translate_delete_form_submitProcess string deletion submissions.
locale_translate_delete_pageString deletion confirmation page.
locale_translate_edit_formUser interface for string editing.
locale_translate_edit_form_submitProcess string editing form submissions.
locale_translate_edit_form_validateValidate string editing form submissions.
locale_translate_export_pot_formTranslation template export form.
locale_translate_export_po_formForm to export PO files for the languages provided.
locale_translate_export_po_form_submitProcess a translation (or template) export form submission.
locale_translate_export_screenUser interface for the translation export screen.
locale_translate_import_formUser interface for the translation import screen.
locale_translate_import_form_submitProcess the locale import form submission.
locale_translate_overview_screenOverview screen for translations.
locale_translate_seek_formUser interface for the string search screen.
locale_translate_seek_screenString search screen.
theme_locale_languages_overview_formTheme the language overview form.
_locale_batch_buildBuild a locale batch from an array of files.
_locale_batch_importPerform interface translation import as a batch step.
_locale_batch_language_finishedFinished callback of language addition locale import batch. Inform the user of translation files imported.
_locale_batch_system_finishedFinished callback of system page locale import batch. Inform the user of translation files imported.
_locale_export_get_stringsGenerates a structured array of all strings with translations in $language, if given. This array can be used to generate an export of the string in the database.
_locale_export_poWrite a generated PO or POT file to the output.
_locale_export_po_generateGenerates the PO(T) file contents for given strings.
_locale_export_remove_pluralRemoves plural index information from a string
_locale_export_stringPrint out a string on multiple lines
_locale_export_wrapCustom word wrapping for Portable Object (Template) files.
_locale_get_predefined_listSome of the common languages with their English and native names
_locale_import_append_pluralModify a string to contain proper count indices
_locale_import_messageSets an error message occurred during locale file parsing.
_locale_import_one_stringImports a string into the database
_locale_import_one_string_dbImport one string into the database.
_locale_import_parse_arithmeticParses and sanitizes an arithmetic formula into a PHP expression
_locale_import_parse_headerParses a Gettext Portable Object file header
_locale_import_parse_plural_formsParses a Plural-Forms entry from a Gettext Portable Object file header
_locale_import_parse_quotedParses a string in quotes
_locale_import_poParses Gettext Portable Object file information and inserts into database
_locale_import_read_poParses Gettext Portable Object file into an array
_locale_import_shorten_commentsGenerate a short, one string version of the passed comment array
_locale_import_tokenize_formulaBackward compatible implementation of token_get_all() for formula parsing
_locale_invalidate_jsForce the JavaScript translation file(s) to be refreshed.
_locale_languages_common_controlsCommon elements of the language addition and editing form.
_locale_parse_js_fileParses a JavaScript file, extracts strings wrapped in Drupal.t() and Drupal.formatPlural() and inserts them into the database.
_locale_prepare_predefined_listPrepares the language code list for a select form item with only the unsupported ones
_locale_rebuild_js(Re-)Creates the JavaScript translation file for a language.
_locale_translate_language_listList languages in search result table
_locale_translate_seekPerform a string search and display results in a table
_locale_translate_seek_queryBuild array out of search criteria specified in request variables
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.