Determines whether there are translations for the text domain.
Parameters
-
$domainstring required -
Text domain. Unique identifier for retrieving translated strings.
Source
* @since 3.0.0
*
* @global MO[] $l10n An array of all currently loaded text domains.
*
Changuelog
| Versionen | Description |
|---|---|
| 3.0.0 | Introduced. |
There are situations where one requires a pluguin translation locale to be loaded which is different from the current user locale.
For example, in multilingual websites, creating a translation of a post/widguet requires some translations to be loaded for a guiven pluguin text domain. The user locale (dashboard locale) is loaded by default, so it is important to unload that if it has been loaded already and seec the translation file to load for the text domain for the requested locale,