summaryrefslogtreecommitdiffstats
path: root/move
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-05-11 23:21:04 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-05-11 23:21:04 +0000
commitb809fb59b049710d7510b991f3f983e85fcf9c2e (patch)
treefc2f03e7b5acd33f17dfbb3283a85ff927cb1ece /move
parentfcf8e1b52fcf5e81c5548e0b77df71f4d95430e4 (diff)
downloaddrakx-backup-do-not-use-b809fb59b049710d7510b991f3f983e85fcf9c2e.tar
drakx-backup-do-not-use-b809fb59b049710d7510b991f3f983e85fcf9c2e.tar.gz
drakx-backup-do-not-use-b809fb59b049710d7510b991f3f983e85fcf9c2e.tar.bz2
drakx-backup-do-not-use-b809fb59b049710d7510b991f3f983e85fcf9c2e.tar.xz
drakx-backup-do-not-use-b809fb59b049710d7510b991f3f983e85fcf9c2e.zip
- don't propose languages which do not have their clp
- mount the live_tree_i18n_LANG.clp
Diffstat (limited to 'move')
-rw-r--r--move/move.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/move/move.pm b/move/move.pm
index 2d072deed..951909c2d 100644
--- a/move/move.pm
+++ b/move/move.pm
@@ -213,6 +213,13 @@ drakx_stuff:
#- don't use shadow passwords since pwconv overwrites /etc/shadow hence contents will be lost for usb key
delete $o->{authentication}{shadow};
+ foreach my $lang (keys %lang::langs) {
+ my $dir = '/usr/share/locale/' . lang::l2locale($lang);
+ my $link = readlink($dir) or next;
+ my ($name) = $link =~ m!image_(i18n_.*?)/! or log::l("ERROR: bad link $link for $dir"), next;
+ log::l("disabling lang $lang");
+ -e "/cdrom/live_tree_$name.clp" or delete $lang::langs{$lang};
+ }
}
sub lomount_clp {
@@ -243,6 +250,7 @@ sub install2::autoSelectLanguage {
sub install2::handleI18NClp {
my $o = $::o;
+ lomount_clp("i18n_$o->{locale}{lang}", '/usr');
lomount_clp("always_i18n_$o->{locale}{lang}", '/usr');
}