Support choosing language for the interface

This commit is contained in:
Daniel Berteaud 2014-07-30 11:38:03 +02:00
parent 8cc7eec3dd
commit e966972d38
1 changed files with 7 additions and 0 deletions

View File

@ -1,2 +1,9 @@
$attachment_repository = '/var/lib/phplist/tmp';
define("ALLOW_ATTACHMENTS",1);
{
my $lang = $phplist{'Language'} || '';
$lang .= ($lang =~ m/\.inc$/) ? '' : '.inc';
if ($lang ne '' && -e '/usr/share/phplist/www/texts/' . $lang){
$OUT .= '$language_module = ' . $lang . ';';
}
}