diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-02-11 11:05:40 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-02-11 11:05:40 +0000 |
commit | 1578744ebaf6815cca87d0ea763be6cdc7c7391a (patch) | |
tree | 56ca4c3af83029a0f1c75156ec13afef45a34209 /perl-install/share/gen_locales.pl | |
parent | d0ba827a353fc091b8d27b4da32c789c5300acef (diff) | |
download | drakx-1578744ebaf6815cca87d0ea763be6cdc7c7391a.tar drakx-1578744ebaf6815cca87d0ea763be6cdc7c7391a.tar.gz drakx-1578744ebaf6815cca87d0ea763be6cdc7c7391a.tar.bz2 drakx-1578744ebaf6815cca87d0ea763be6cdc7c7391a.tar.xz drakx-1578744ebaf6815cca87d0ea763be6cdc7c7391a.zip |
update to changes in lang.pm
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 $_"; } } |