Domanda

putenv("LANG=fr_FR");
putenv('LC_ALL=fr_FR');
setlocale(LC_ALL, "fr_FR");
setlocale(LANG, "fr_FR");
setlocale(LC_MESSAGES, "fr_FR");
$domain = "fr_FR";
bindtextdomain($domain, "l10n");
bind_textdomain_codeset($domain, 'UTF-8');
textdomain($domain);

With the folder structure:

l10n>FR>LC_MESSAGES>fr_FR.mo
l10n>FR>LC_MESSAGES>fr_FR.po

But no reaction, the strings stay in english no matter what I do. Any what I am doing wrong?

Nessuna soluzione corretta

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top