summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-09-09 08:47:43 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-09-09 08:47:43 +0000
commitc27aeaa260b451e788f08c65e4c2151c3cf14fab (patch)
tree555eed2cf695b61211f29b846aaf4d7d92168485 /perl-install
parent4a31af4c6892924934e748eeed17b32cc3d29b97 (diff)
downloaddrakx-backup-do-not-use-c27aeaa260b451e788f08c65e4c2151c3cf14fab.tar
drakx-backup-do-not-use-c27aeaa260b451e788f08c65e4c2151c3cf14fab.tar.gz
drakx-backup-do-not-use-c27aeaa260b451e788f08c65e4c2151c3cf14fab.tar.bz2
drakx-backup-do-not-use-c27aeaa260b451e788f08c65e4c2151c3cf14fab.tar.xz
drakx-backup-do-not-use-c27aeaa260b451e788f08c65e4c2151c3cf14fab.zip
(write) make it a little more readable
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/lang.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/perl-install/lang.pm b/perl-install/lang.pm
index 3057ffebf..7fac84d3e 100644
--- a/perl-install/lang.pm
+++ b/perl-install/lang.pm
@@ -1024,10 +1024,12 @@ sub write {
}
}
- if ($locale->{IM} && $locale->{IM} ne 'None') {
- log::explanations(qq(Configuring "$locale->{IM}" IM));
+
+ my $im = $locale->{IM};
+ if ($im && $im ne 'None') {
+ log::explanations(qq(Configuring "$im" IM));
delete @$h{qw(GTK_IM_MODULE QT_IM_MODULE XIM XIM_PROGRAM XMODIFIERS)};
- add2hash($h, { XIM_PROGRAM => $im_xim_program{$locale->{IM}}{$h->{LC_NAME}} });
+ add2hash($h, { XIM_PROGRAM => $im_xim_program{$im}{$h->{LC_NAME}} });
add2hash($h, $xim{$locale->{lang}});
add2hash($h, $gtkqt_im{$locale->{IM}});
$h->{QT_IM_MODULE} = $h->{GTK_IM_MODULE} if $h->{GTK_IM_MODULE};