diff --git a/root/etc/e-smith/templates/etc/phplist/config.php/50Options b/root/etc/e-smith/templates/etc/phplist/config.php/50Options index 72f77ff..eceb853 100644 --- a/root/etc/e-smith/templates/etc/phplist/config.php/50Options +++ b/root/etc/e-smith/templates/etc/phplist/config.php/50Options @@ -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 . ';'; + } +}