]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix for ./local/plugins/* translation files
authorbuttle <chris@gatopelao.org>
Thu, 21 May 2015 07:35:52 +0000 (09:35 +0200)
committerbuttle <chris@gatopelao.org>
Thu, 21 May 2015 07:35:52 +0000 (09:35 +0200)
translations for 3rd party plugins were not being detected

lib/plugin.php

index 42339137526a136db70c882bf73d7d953b1e813a..94bb1e124a16570702ad0fa2b6777c744e3a4979 100644 (file)
@@ -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);