Skip to content
Snippets Groups Projects
Commit 014f4af7 authored by Jan-Christoph Borchardt's avatar Jan-Christoph Borchardt
Browse files

fixed translation detection thanks to Xuetian Weng

parent de729d8d
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment