buttle's local/plugins translation file fix

This commit is contained in:
Mikael Nordfeldth 2015-06-05 23:43:28 +02:00
commit 882ce56cf4

View File

@ -144,6 +144,9 @@ class Plugin
// @fixme this will fail for things installed in local/plugins // @fixme this will fail for things installed in local/plugins
// ... but then so will web links so far. // ... but then so will web links so far.
$path = INSTALLDIR . "/plugins/$name/locale"; $path = INSTALLDIR . "/plugins/$name/locale";
if (!file_exists($path)) {
$path = INSTALLDIR . "/local/plugins/$name/locale";
}
} }
if (file_exists($path) && is_dir($path)) { if (file_exists($path) && is_dir($path)) {
bindtextdomain($name, $path); bindtextdomain($name, $path);