diff --git a/setup/inc/functions.inc.php b/setup/inc/functions.inc.php index 0b2b75ec3c..1040c65780 100644 --- a/setup/inc/functions.inc.php +++ b/setup/inc/functions.inc.php @@ -130,9 +130,9 @@ $d = dir('./lang'); while($file=$d->read()) { - if(preg_match('/^phpgw_([-a-z]+).lang$/i',$file,$matches)) + if(preg_match('/^(php|e)gw_([-a-z]+).lang$/i',$file,$matches)) { - $languages[$matches[1]]['available'] = True; + $languages[$matches[2]]['available'] = True; } } $d->close();