diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-09-19 22:50:49 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-09-19 22:50:49 +0000 |
commit | a117445ee6c9611403e523fa212399101e93fc16 (patch) | |
tree | 2ecc97dde024fdfc499448e6ac76ee37aa1ae115 /perl-install/lang.pm | |
parent | a1b2c33c15ab52218a15839f21f4da1af6a68a07 (diff) | |
download | drakx-a117445ee6c9611403e523fa212399101e93fc16.tar drakx-a117445ee6c9611403e523fa212399101e93fc16.tar.gz drakx-a117445ee6c9611403e523fa212399101e93fc16.tar.bz2 drakx-a117445ee6c9611403e523fa212399101e93fc16.tar.xz drakx-a117445ee6c9611403e523fa212399101e93fc16.zip |
no_comment
Diffstat (limited to 'perl-install/lang.pm')
-rw-r--r-- | perl-install/lang.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/perl-install/lang.pm b/perl-install/lang.pm index 6b5498025..9f250bcdf 100644 --- a/perl-install/lang.pm +++ b/perl-install/lang.pm @@ -283,6 +283,14 @@ sub set_langs { log::l("RPM_INSTALL_LANG: $ENV{RPM_INSTALL_LANG}"); } +sub get_langs { + [ + $ENV{RPM_INSTALL_LANG} eq 'all' ? + map { substr($_->[2], 0, 2) } values %languages : + split(':', $ENV{RPM_INSTALL_LANG}) + ]; +} + sub write { my ($prefix) = @_; my $lang = $ENV{LC_ALL}; |