fix for ./local/plugins/* translation files

translations for 3rd party plugins were not being detected
This commit is contained in:
buttle 2015-05-21 09:35:52 +02:00
parent e4a17fedc6
commit ef0385a25c

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);