Fix charset setting for plugin localizations; default setting was blanking out non-ASCII chars. Needed for eg Bulgarian translation of Facebook plugin, was previously showing all as ???s. Now works yay!

This commit is contained in:
Brion Vibber 2010-04-28 23:06:08 +00:00
parent f5c82d9d60
commit cb5d6d5c30

View File

@ -91,6 +91,7 @@ class Plugin
$path = INSTALLDIR . "/plugins/$name/locale"; $path = INSTALLDIR . "/plugins/$name/locale";
if (file_exists($path) && is_dir($path)) { if (file_exists($path) && is_dir($path)) {
bindtextdomain($name, $path); bindtextdomain($name, $path);
bind_textdomain_codeset($name, 'UTF-8');
} }
} }
} }