fixed translation detection thanks to Xuetian Weng

This commit is contained in:
Jan-Christoph Borchardt 2011-09-12 12:29:43 +02:00
parent de729d8d8b
commit 014f4af79c
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}
}