summaryrefslogtreecommitdiffstats
path: root/perl-install/share/gen_locales.pl
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-02-11 11:05:40 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-02-11 11:05:40 +0000
commit1578744ebaf6815cca87d0ea763be6cdc7c7391a (patch)
tree56ca4c3af83029a0f1c75156ec13afef45a34209 /perl-install/share/gen_locales.pl
parentd0ba827a353fc091b8d27b4da32c789c5300acef (diff)
downloaddrakx-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.pl14
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 $_";
}
}