]> source.dussan.org Git - nextcloud-server.git/commitdiff
fixed translation detection thanks to Xuetian Weng
authorJan-Christoph Borchardt <JanCBorchardt@fsfe.org>
Mon, 12 Sep 2011 10:29:43 +0000 (12:29 +0200)
committerJan-Christoph Borchardt <JanCBorchardt@fsfe.org>
Mon, 12 Sep 2011 10:29:43 +0000 (12:29 +0200)
lib/l10n.php

index 2d565ad0799b94538d84ace98cf965068fc9e092..ab4147f3a7c1855deaea822afc8076f38a75b6d7 100644 (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;
        }
-}
\ No newline at end of file
+}