diff options
Diffstat (limited to 'perl-install/share/gen_locales.pl')
-rw-r--r-- | perl-install/share/gen_locales.pl | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/perl-install/share/gen_locales.pl b/perl-install/share/gen_locales.pl index ba0f4784e..93820bca7 100644 --- a/perl-install/share/gen_locales.pl +++ b/perl-install/share/gen_locales.pl @@ -3,14 +3,12 @@ use MDK::Common; use lang; -foreach (lang::list()) { - my $LANG = lang::lang2LANG($_); - - my $c = lang::during_install__lang2charset($_) or next; - -e "usr/share/locale/$c" or warn("not handled language $_ ($LANG, $c)\n"), next; - if (my $exist = readlink "usr/share/locale/$LANG") { - $exist eq $c or die "symlink $LANG already exist and is $exist instead of $c\n"; +foreach (lang::list_langs()) { + my $c = lang::during_install__l2charset($_) or next; + -e "usr/share/locale/$c" or warn("not handled lang $_ (charset $c)\n"), next; + if (my $exist = readlink "usr/share/locale/$_") { + $exist eq $c or die "symlink $_ already exist and is $exist instead of $c\n"; } else { - symlink $c, "usr/share/locale/$LANG" or die "can't create symlink $LANG (for $_)"; + symlink $c, "usr/share/locale/$_" or die "can't create symlink $_"; } } |