diff options
| author | Thierry Vignaud <tvignaud@mandriva.org> | 2003-05-21 11:40:53 +0000 |
|---|---|---|
| committer | Thierry Vignaud <tvignaud@mandriva.org> | 2003-05-21 11:40:53 +0000 |
| commit | 6d601df6422fe2c25bce17152884bc6239c6b14a (patch) | |
| tree | fef2e130cfdaaea1e938a02982b80f53a1bf4fff | |
| parent | 9daaa3f09953412921ea636ce409bd830afe8443 (diff) | |
| download | drakx-6d601df6422fe2c25bce17152884bc6239c6b14a.tar drakx-6d601df6422fe2c25bce17152884bc6239c6b14a.tar.gz drakx-6d601df6422fe2c25bce17152884bc6239c6b14a.tar.bz2 drakx-6d601df6422fe2c25bce17152884bc6239c6b14a.tar.xz drakx-6d601df6422fe2c25bce17152884bc6239c6b14a.zip | |
(write) use newly introduced IM2packages() in order to install proper
packages depending on (locale, input method) tuple
| -rw-r--r-- | perl-install/lang.pm | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/perl-install/lang.pm b/perl-install/lang.pm index 8264182ee..de731a317 100644 --- a/perl-install/lang.pm +++ b/perl-install/lang.pm @@ -1031,6 +1031,21 @@ sub write { if ($locale->{IM}) { delete @$h{qw(GTK_IM_MODULE XIM XIM_PROGRAM XMODIFIERS)}; add2hash($h, $gtkqt_im{$locale->{IM}}); + my @packages = IM2packages($locale->{IM}); + if (@packages && $b_user_only) { + require interactive; + interactive->vnew->ask_warn(N("Warning"), + N("You should install the following packages: %s", + join( + #-PO: the following is used to combine packages names. eg: "initscripts, harddrake, yudit" + N(", "), + @packages, + ), + ) + ); + } elsif(@packages) { + do_pkgs_standalone->new->install((IM2packages($locale->{IM}), )) ; + } } #- deactivate translations on console for RTL languages |
