From e966972d38a51e5177289fabeff70378a4d39fae Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 30 Jul 2014 11:38:03 +0200 Subject: [PATCH] Support choosing language for the interface --- root/etc/e-smith/templates/etc/phplist/config.php/50Options | 7 +++++++ 1 file changed, 7 insertions(+) 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 . ';'; + } +}