From: Vincent Petry Date: Tue, 28 Oct 2014 12:19:51 +0000 (+0100) Subject: Fix language file detection X-Git-Tag: v8.0.0alpha1~424^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c682b1f0c17df0f59a1c18b8948547cd1d70bb48;p=nextcloud-server.git Fix language file detection --- diff --git a/lib/private/l10n.php b/lib/private/l10n.php index ab94d017a25..6ec4e967c7f 100644 --- a/lib/private/l10n.php +++ b/lib/private/l10n.php @@ -501,7 +501,7 @@ class OC_L10N implements \OCP\IL10N { } $dir = self::findI18nDir($app); if(is_dir($dir)) { - return file_exists($dir.'/'.$lang.'.php'); + return file_exists($dir.'/'.$lang.'.json'); } return false; }