load_textdomain


load_textdomain ( $domain, $mofile )

Parameters:
  • (string) $domain Text domain. Unique identifier for retrieving translated strings.
  • (string) $mofile Path to the .mo file.
Returns:
  • (bool) True on success, false on failure.
Defined at:

Description

Load a .mo file into the text domain $domain.

If the text domain already exists, the translations will be merged. If both sets have the same string, the translation from the original value will be taken.

On success, the .mo file will be placed in the $l10n global by $domain and will be a MO object.

Related Functions

unload_textdomain, load_theme_textdomain, load_plugin_textdomain, load_default_textdomain, load_muplugin_textdomain

Top Google Results

User discussions

wpseek mobile