From: Jan-Christoph Borchardt Date: Mon, 12 Sep 2011 10:29:43 +0000 (+0200) Subject: fixed translation detection thanks to Xuetian Weng X-Git-Tag: v3.0~217^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=014f4af79c9c79282829f5db980da174548047ab;p=nextcloud-server.git fixed translation detection thanks to Xuetian Weng --- diff --git a/lib/l10n.php b/lib/l10n.php index 2d565ad0799..ab4147f3a7c 100644 --- a/lib/l10n.php +++ b/lib/l10n.php @@ -251,7 +251,7 @@ class OC_L10N{ if( file_exists($dir)){ $dh = opendir($dir); while(( $file = readdir( $dh )) !== false ){ - if( substr( $file, -4, 4 ) == '.php' and strlen($file)==6 ){ + if(substr($file, -4, 4) == '.php' and (strlen($file) == 6 || strlen($file) == 9)){ $i = substr( $file, 0, -4 ); if( $i != '' ){ $available[] = $i; @@ -262,4 +262,4 @@ class OC_L10N{ } return $available; } -} \ No newline at end of file +}