forked from GNUsocial/gnu-social
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:
parent
f5c82d9d60
commit
cb5d6d5c30
@ -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');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user