summaryrefslogtreecommitdiffstats
path: root/lib/l10n.php
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-09-12 12:29:43 +0200
committerJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-09-12 12:29:43 +0200
commit014f4af79c9c79282829f5db980da174548047ab (patch)
tree60b371e025adfea537d1e8c5a01c4047986e34ef /lib/l10n.php
parentde729d8d8bb472be99fceaae96e5f5f5603e5e42 (diff)
downloadnextcloud-server-014f4af79c9c79282829f5db980da174548047ab.tar.gz
nextcloud-server-014f4af79c9c79282829f5db980da174548047ab.zip
fixed translation detection thanks to Xuetian Weng
Diffstat (limited to 'lib/l10n.php')
-rw-r--r--lib/l10n.php4
1 files changed, 2 insertions, 2 deletions
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
+}