SA Bugzilla – Attachment #3033: Added use_language conf setting for bug #3755
$self->{config_text} .= $self->read_cf ($fname, 'user prefs file');
}
# Read the language files
$fname = $sysrules;
if (defined $fname) {
$self->{config_text} .= $self->read_cf ("$fname/lang", 'lang files');
if ($self->{config_text} !~ /\S/) {
next unless($line); # skip empty lines
# handle i18n
if ($conf->{use_language} ne "LANG") {
$lang = $conf->{use_language};
if ($line =~ s/^lang\s+(\S+)\s+//) { next if ($lang !~ /^$1/i); }
my($key, $value) = split(/\s+/, $line, 2);
=over 4
=item use_language xx (default: LANG)
This options defines which language you want SpamAssassin to use in
its reports.
The default is to use the value of the LANG enviroment variable. If
you use spamd or your users do not have shell access you can override
the LANG enviroment variable with this setting.
Examples:
use_language de
use_language pt_br
use_language LANG
=cut
push (@cmds, {
setting => 'use_language',
default => 'LANG',
type => $CONF_TYPE_STRING
});
=item ok_locales xx [ yy zz ... ] (default: all)
This option is used to specify which locales (country codes) are