From: buttle Date: Thu, 21 May 2015 07:35:52 +0000 (+0200) Subject: fix for ./local/plugins/* translation files X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ef0385a25cb49482c8d2ccfed2e46b192eb716ca;p=quix0rs-gnu-social.git fix for ./local/plugins/* translation files translations for 3rd party plugins were not being detected --- diff --git a/lib/plugin.php b/lib/plugin.php index 4233913752..94bb1e124a 100644 --- a/lib/plugin.php +++ b/lib/plugin.php @@ -144,6 +144,9 @@ class Plugin // @fixme this will fail for things installed in local/plugins // ... but then so will web links so far. $path = INSTALLDIR . "/plugins/$name/locale"; + if (!file_exists($path)) { + $path = INSTALLDIR . "/local/plugins/$name/locale"; + } } if (file_exists($path) && is_dir($path)) { bindtextdomain($name, $path);