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?

没有正确的解决方案

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top