wp-includes/l10n.php


Lines:

1 to 100 of 105
<?php

/**
 * Core Translation API
 *
 * @package WordPress
 * @subpackage i18n
 * @since 1.2.0
 */

/* function get_locale() – Retrieves the current locale. */

/* function get_user_locale() – Retrieves the locale of a user. */

/* function determine_locale() – Determine the current locale desired for the request. */

/* function translate() – Retrieve the translation of $text. */

/* function before_last_bar() – Remove last item on a pipe-delimited string. */

/* function translate_with_gettext_context() – Retrieve the translation of $text in the context defined in $context. */

/* function __() – Retrieve the translation of $text. */

/* function esc_attr__() – Retrieve the translation of $text and escapes it for safe use in an attribute. */

/* function esc_html__() – Retrieve the translation of $text and escapes it for safe use in HTML output. */

/* function _e() – Display translated text. */

/* function esc_attr_e() – Display translated text that has been escaped for safe use in an attribute. */

/* function esc_html_e() – Display translated text that has been escaped for safe use in HTML output. */

/* function _x() – Retrieve translated string with gettext context. */

/* function _ex() – Display translated string with gettext context. */

/* function esc_attr_x() – Translate string with gettext context, and escapes it for safe use in an attribute. */

/* function esc_html_x() – Translate string with gettext context, and escapes it for safe use in HTML output. */

/* function _n() – Translates and retrieves the singular or plural form based on the supplied number. */

/* function _nx() – Translates and retrieves the singular or plural form based on the supplied number, with gettext context. */

/* function _n_noop() – Registers plural strings in POT file, but does not translate them. */

/* function _nx_noop() – Registers plural strings with gettext context in POT file, but does not translate them. */

/* function translate_nooped_plural() – Translates and retrieves the singular or plural form of a string that’s been registered
with _n_noop() or _nx_noop(). */

/* function load_textdomain() – Load a .mo file into the text domain $domain. */

/* function unload_textdomain() – Unload translations for a text domain. */

/* function load_default_textdomain() – Load default translated strings based on locale. */

/* function load_plugin_textdomain() – Loads a plugin’s translated strings. */

/* function load_muplugin_textdomain() – Load the translated strings for a plugin residing in the mu-plugins directory. */

/* function load_theme_textdomain() – Load the theme’s translated strings. */

/* function load_child_theme_textdomain() – Load the child themes translated strings. */

/* function load_script_textdomain() – Loads the script translated strings. */

/* function load_script_translations() – Loads the translation data for the given script handle and text domain. */

/* function _load_textdomain_just_in_time() – Loads plugin and theme textdomains just-in-time. */

/* function _get_path_to_translation() – Gets the path to a translation file for loading a textdomain just in time. */

/* function _get_path_to_translation_from_lang_dir() – Gets the path to a translation file in the languages directory for the current locale. */

/* function get_translations_for_domain() – Return the Translations instance for a text domain. */

/* function is_textdomain_loaded() – Whether there are translations for the text domain. */

/* function translate_user_role() – Translates role name. */

/* function get_available_languages() – Get all available languages based on the presence of *.mo files in a given directory. */

/* function wp_get_installed_translations() – Get installed translations. */

/* function wp_get_pomo_file_data() – Extract headers from a PO file. */

/* function wp_dropdown_languages() – Language selector. */

/* function is_rtl() – Determines whether the current locale is right-to-left (RTL). */

/* function switch_to_locale() – Switches the translations according to the given locale. */

/* function restore_previous_locale() – Restores the translations according to the previous locale. */

/* function restore_current_locale() – Restores the translations according to the original locale. */

/* function is_locale_switched() – Whether switch_to_locale() is in effect. */

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      Call hooks

      API Letters: ,,,