blob: ba0f4784efd4da1cf92c3e27420cf11c30b5e6c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/usr/bin/perl
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";
} else {
symlink $c, "usr/share/locale/$LANG" or die "can't create symlink $LANG (for $_)";
}
}
|