Support choosing language for the interface

tags/smeserver-phplist-0.2.1-1
Daniel Berteaud 10 years ago
parent 8cc7eec3dd
commit e966972d38
  1. 7
      root/etc/e-smith/templates/etc/phplist/config.php/50Options

@ -1,2 +1,9 @@
$attachment_repository = '/var/lib/phplist/tmp'; $attachment_repository = '/var/lib/phplist/tmp';
define("ALLOW_ATTACHMENTS",1); 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 . ';';
}
}

Loading…
Cancel
Save