wpseek.com
A WordPress-centric search engine for devs and theme authors
wp-includes/l10n.php › WordPress File
Functions51
› Core Translation API
| Function | Short description |
|---|---|
| before_last_bar | Removes last item on a pipe-delimited string. |
| determine_locale | Determines the current locale desired for the request. |
| esc_attr_e | Displays translated text that has been escaped for safe use in an attribute. |
| esc_attr_x | Translates string with gettext context, and escapes it for safe use in an attribute. |
| esc_attr__ | Retrieves the translation of $text and escapes it for safe use in an attribute. |
| esc_html_e | Displays translated text that has been escaped for safe use in HTML output. |
| esc_html_x | Translates string with gettext context, and escapes it for safe use in HTML output. |
| esc_html__ | Retrieves the translation of $text and escapes it for safe use in HTML output. |
| get_available_languages | Gets all available languages based on the presence of *.mo and *.l10n.php files in a given directory. |
| get_locale | Retrieves the current locale. |
| get_translations_for_domain | Returns the Translations instance for a text domain. |
| get_user_locale | Retrieves the locale of a user. |
| has_translation | Returns a boolean to indicate whether a translation exists for a given string with optional text domain and locale. |
| is_locale_switched | Determines whether switch_to_locale() is in effect. |
| is_rtl | Determines whether the current locale is right-to-left (RTL). |
| is_textdomain_loaded | Determines whether there are translations for the text domain. |
| load_child_theme_textdomain | Loads the child theme's translated strings. |
| load_default_textdomain | Loads default translated strings based on locale. |
| load_muplugin_textdomain | Loads the translated strings for a plugin residing in the mu-plugins directory. |
| load_plugin_textdomain | Loads a plugin's translated strings. |
| load_script_module_textdomain | Loads the translation data for a given script module ID and text domain. |
| load_script_textdomain | Loads the script translated strings. |
| load_script_translations | Loads the translation data for the given script handle and text domain. |
| load_textdomain | Loads a .mo file into the text domain $domain. |
| load_theme_textdomain | Loads the theme's translated strings. |
| restore_current_locale | Restores the translations according to the original locale. |
| restore_previous_locale | Restores the translations according to the previous locale. |
| switch_to_locale | Switches the translations according to the given locale. |
| switch_to_user_locale | Switches the translations according to the given user's locale. |
| translate | Retrieves the translation of $text. |
| translate_nooped_plural | Translates and returns the singular or plural form of a string that's been registered with _n_noop() or _nx_noop(). |
| translate_settings_using_i18n_schema | Translates the provided settings value using its i18n schema. |
| translate_user_role | Translates role name. |
| translate_with_gettext_context | Retrieves the translation of $text in the context defined in $context. |
| unload_textdomain | Unloads translations for a text domain. |
| wp_dropdown_languages | Displays or returns a Language selector. |
| wp_get_installed_translations | Gets installed translations. |
| wp_get_l10n_php_file_data | Extracts headers from a PHP translation file. |
| wp_get_list_item_separator | Retrieves the list item separator based on the locale. |
| wp_get_pomo_file_data | Extracts headers from a PO file. |
| wp_get_word_count_type | Retrieves the word count type based on the locale. |
| _e | Displays translated text. |
| _ex | Displays translated string with gettext context. |
| _load_script_textdomain_from_src | Resolves and loads the translation JSON file for a given script or script module source URL. |
| _load_textdomain_just_in_time | Loads plugin and theme text domains just-in-time. |
| _n | Translates and retrieves the singular or plural form based on the supplied number. |
| _nx | Translates and retrieves the singular or plural form based on the supplied number, with gettext context. |
| _nx_noop | Registers plural strings with gettext context in POT file, but does not translate them. |
| _n_noop | Registers plural strings in POT file, but does not translate them. |
| _x | Retrieves translated string with gettext context. |
| __ | Retrieves the translation of $text. |