summaryrefslogtreecommitdiffstats
path: root/perl-install/lang.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-07-02 02:23:02 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-07-02 02:23:02 +0000
commit2d9992647a450d165a08aeabaa5f7425814c3860 (patch)
tree03b614fface436760d76941bdf3ee5f0ff3bdb34 /perl-install/lang.pm
parent99a89dc2567b72608068b281665059e5cf040a7a (diff)
downloaddrakx-2d9992647a450d165a08aeabaa5f7425814c3860.tar
drakx-2d9992647a450d165a08aeabaa5f7425814c3860.tar.gz
drakx-2d9992647a450d165a08aeabaa5f7425814c3860.tar.bz2
drakx-2d9992647a450d165a08aeabaa5f7425814c3860.tar.xz
drakx-2d9992647a450d165a08aeabaa5f7425814c3860.zip
(write) configure menu-method's language too so that altering language
is done for KDE menu entries too (instead of just programs' messages)
Diffstat (limited to 'perl-install/lang.pm')
-rw-r--r--perl-install/lang.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/lang.pm b/perl-install/lang.pm
index c049af690..4ac897da2 100644
--- a/perl-install/lang.pm
+++ b/perl-install/lang.pm
@@ -1008,6 +1008,9 @@ sub write {
}
setVarsInSh($prefix . ($b_user_only ? "$ENV{HOME}/.i18n" : '/etc/sysconfig/i18n'), $h);
+ substInFile {
+ s!^function lang\b.*!function lang()="$h->{LANG}"!g;
+ } "/etc/menu-methods/lang.h";
eval {
my $confdir = $prefix . ($b_user_only ? "$ENV{HOME}/.kde" : '/usr') . '/share/config';