diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-02-09 11:38:02 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-02-09 11:38:02 +0000 |
commit | 4ce69234e573c58002f3d1a9f361489410e883b2 (patch) | |
tree | e9f590e2fd57d708f76c3249a442864a2b50a365 /perl-install/lang.pm | |
parent | 06f02f9536b2a9fb1283dd33c441b5e66da23551 (diff) | |
download | drakx-4ce69234e573c58002f3d1a9f361489410e883b2.tar drakx-4ce69234e573c58002f3d1a9f361489410e883b2.tar.gz drakx-4ce69234e573c58002f3d1a9f361489410e883b2.tar.bz2 drakx-4ce69234e573c58002f3d1a9f361489410e883b2.tar.xz drakx-4ce69234e573c58002f3d1a9f361489410e883b2.zip |
no_comment
Diffstat (limited to 'perl-install/lang.pm')
-rw-r--r-- | perl-install/lang.pm | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/perl-install/lang.pm b/perl-install/lang.pm index e100e6a44..6ceabf918 100644 --- a/perl-install/lang.pm +++ b/perl-install/lang.pm @@ -200,7 +200,7 @@ sub text2lang { } sub set { - my ($lang, $prefix) = @_; + my ($lang, $langs) = @_; if ($lang) { $ENV{LC_ALL} = $lang; @@ -208,7 +208,7 @@ sub set { $ENV{LANGUAGE} = $languages{$lang}[3]; #- apparently autoconf/automake doesn't like LINGUAS having a list of values #- $ENV{LINGUAS} = $languages{$lang}[3]; - $ENV{RPM_INSTALL_LANG} = $languages{$lang}[3]; + set_langs($langs || [$lang]); local $_ = $languages{$lang}[1]; s/iso-8859-1$/iso-8859-15/; @@ -226,6 +226,14 @@ sub set { } } +sub set_langs { + my ($l) = @_; + $ENV{RPM_INSTALL_LANG} = member('all', @$l) ? 'all' : + join ':', uniq(map { substr($languages{$_}[2], 0, 2) } @$l); + +# $ENV{RPM_INSTALL_LANG} = join ':', uniq(map { split ':', $languages{$_}[3] } @{$_[0]}); +} + sub write { my ($prefix) = @_; my $lang = $ENV{LC_ALL}; |