forked from GNUsocial/gnu-social
fix for ./local/plugins/* translation files
translations for 3rd party plugins were not being detected
This commit is contained in:
parent
e4a17fedc6
commit
ef0385a25c
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user