Loads 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.
$domain, $mofile, $locale = null
Sortie :
@param string $domain Text domain. Unique identifier for retrieving translated strings. @param string $mofile Path to the .mo file. @param string $locale Optional. Locale. Default is the current locale. @return bool True on success, false on failure.
// Utilisation de la fonction load_textdomain
$result = load_textdomain($domain, $mofile, $locale = null);
if ($result) {
// Votre logique ici
}
Chargement des actualités...