Commit 8ce4109f authored by sikeda's avatar sikeda
Browse files

[-dev] sympa_wizard: set C locale if i18n is not available.

git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-6.2-branch@8955 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
parent f806a2ef
......@@ -111,7 +111,7 @@ sub create_configuration {
sub { Text::Wrap::wrap($_[1], $_[2], $_[0]) . "\n"; };
}
} else {
my $lang = $ENV{'LANGUAGE'} || $ENV{'LC_ALL'} || $ENV{'LANG'} || '';
my $lang = $ENV{'LANGUAGE'} || $ENV{'LC_ALL'} || $ENV{'LANG'} || 'C';
$lang =~ s/\..*//;
Language::SetLang($lang);
}
......@@ -211,11 +211,11 @@ sub edit_configuration {
$rep = <STDIN>;
chomp $rep;
if (lc $rep eq 'y') {
my $lang = $ENV{'LANGUAGE'} || $ENV{'LC_ALL'} || $ENV{'LANG'} || '';
my $lang = $ENV{'LANGUAGE'} || $ENV{'LC_ALL'} || $ENV{'LANG'} || 'C';
$lang =~ s/\..*//;
Language::SetLang($lang);
} else {
Language::SetLang('en_US');
Language::SetLang('C');
}
my @new_sympa_conf;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment