File: wp-includes/l10n.php
-
functionwp_get_pomo_file_data()
Extracts headers from a PO file.
-
functionget_translations_for_domain()
Returns the Translations instance for a text domain.
-
functionis_textdomain_loaded()
Determines whether there are translations for the text domain.
-
functiontranslate_user_role()
Translates role name.
-
functionget_available_languages()
Gets all available languages based on the presence of *.mo and *.l10n.php files in a given directory.
-
Filters the singular or plural form of a string with gettext context.
-
functionload_default_textdomain()
Loads default translated strings based on locale.
-
function_n_noop()
Registers plural strings in POT file, but does not translate them.
-
functionload_plugin_textdomain()
Loads a plugin’s translated strings.
-
function_nx_noop()
Registers plural strings with gettext context in POT file, but does not translate them.
-
hookplugin_locale
Filters a plugin’s locale.
-
functiontranslate_nooped_plural()
Translates and returns the singular or plural form of a string that’s been registered with _n_noop() or _nx_noop().
-
functionload_muplugin_textdomain()
Loads the translated strings for a plugin residing in the mu-plugins directory.
-
functionload_textdomain()
Loads a .mo file into the text domain $domain.
-
functionload_theme_textdomain()
Loads the theme’s translated strings.
-
Filters whether to override the .mo file loading.
-
hooktheme_locale
Filters a theme’s locale.
-
hookload_textdomain
Fires before the MO translation file is loaded.
-
functionload_child_theme_textdomain()
Loads the child theme’s translated strings.
-
Filters MO file path for loading translations for a specific text domain.
-
functionunload_textdomain()
Unloads translations for a text domain.
-
Filters whether to override the text domain unloading.
-
Fires before the text domain is unloaded.
-
function_e()
Displays translated text.
-
functionesc_attr_e()
Displays translated text that has been escaped for safe use in an attribute.
-
functionesc_html_e()
Displays translated text that has been escaped for safe use in HTML output.
-
functiontranslate()
Retrieves the translation of $text.
-
function_x()
Retrieves translated string with gettext context.
-
hookgettext
Filters text with its translation.
-
function_ex()
Displays translated string with gettext context.