Translation import/export API.

Functions to import and export translations.

These functions provide the ability to import translations from external files and to export translations and translation templates.

File

drupal-7.x/includes/locale.inc, line 610
Administration functions for locale.module.

Functions

Namesort descending Location Description
_locale_export_get_strings drupal-7.x/includes/locale.inc Generates 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_po drupal-7.x/includes/locale.inc Write a generated PO or POT file to the output.
_locale_export_po_generate drupal-7.x/includes/locale.inc Generates the PO(T) file contents for given strings.
_locale_export_remove_plural drupal-7.x/includes/locale.inc Removes plural index information from a string
_locale_export_string drupal-7.x/includes/locale.inc Print out a string on multiple lines
_locale_export_wrap drupal-7.x/includes/locale.inc Custom word wrapping for Portable Object (Template) files.
_locale_import_append_plural drupal-7.x/includes/locale.inc Modify a string to contain proper count indices
_locale_import_message drupal-7.x/includes/locale.inc Sets an error message occurred during locale file parsing.
_locale_import_one_string drupal-7.x/includes/locale.inc Imports a string into the database
_locale_import_one_string_db drupal-7.x/includes/locale.inc Import one string into the database.
_locale_import_parse_arithmetic drupal-7.x/includes/locale.inc Parses and sanitizes an arithmetic formula into a PHP expression
_locale_import_parse_header drupal-7.x/includes/locale.inc Parses a Gettext Portable Object file header
_locale_import_parse_plural_forms drupal-7.x/includes/locale.inc Parses a Plural-Forms entry from a Gettext Portable Object file header
_locale_import_parse_quoted drupal-7.x/includes/locale.inc Parses a string in quotes
_locale_import_po drupal-7.x/includes/locale.inc Parses Gettext Portable Object file information and inserts into database
_locale_import_read_po drupal-7.x/includes/locale.inc Parses Gettext Portable Object file into an array
_locale_import_shorten_comments drupal-7.x/includes/locale.inc Generate a short, one string version of the passed comment array
_locale_import_tokenize_formula drupal-7.x/includes/locale.inc Backward compatible implementation of token_get_all() for formula parsing