From 1578744ebaf6815cca87d0ea763be6cdc7c7391a Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Tue, 11 Feb 2003 11:05:40 +0000 Subject: update to changes in lang.pm --- perl-install/share/gen_locales.pl | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'perl-install') 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 $_"; } } -- cgit v1.2.1