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

core/includes/gettext.inc, line 9
Gettext parsing and generating API.

Functions

Namesort descending Location Description
_locale_export_get_strings core/includes/gettext.inc Generates a structured array of all translated strings for the language.
_locale_export_po core/includes/gettext.inc Writes a generated PO or POT file to the output.
_locale_export_po_generate core/includes/gettext.inc Generates the PO(T) file contents for the given strings.
_locale_export_remove_plural core/includes/gettext.inc Removes plural index information from a string.
_locale_export_string core/includes/gettext.inc Prints a string on multiple lines.
_locale_export_wrap core/includes/gettext.inc Wraps text for Portable Object (Template) files.
_locale_import_append_plural core/includes/gettext.inc Adds count indices to a string.
_locale_import_message core/includes/gettext.inc Sets an error message if an error occurred during locale file parsing.
_locale_import_one_string core/includes/gettext.inc Performs the specified operation for one string.
_locale_import_one_string_db core/includes/gettext.inc Imports one string into the database.
_locale_import_parse_arithmetic core/includes/gettext.inc Parses and sanitizes an arithmetic formula into a PHP expression.
_locale_import_parse_header core/includes/gettext.inc Parses a Gettext Portable Object file header.
_locale_import_parse_plural_forms core/includes/gettext.inc Parses a Plural-Forms entry from a Gettext Portable Object file header.
_locale_import_parse_quoted core/includes/gettext.inc Parses a string in quotes.
_locale_import_po core/includes/gettext.inc Parses Gettext Portable Object information and inserts it into the database.
_locale_import_read_po core/includes/gettext.inc Parses a Gettext Portable Object file into an array.
_locale_import_shorten_comments core/includes/gettext.inc Generates a short, one-string version of the passed comment array.
_locale_import_tokenize_formula core/includes/gettext.inc Provides backward-compatible formula parsing for token_get_all().