summaryrefslogtreecommitdiffstats
path: root/perl-install/lang.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-09-19 22:50:49 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-09-19 22:50:49 +0000
commita117445ee6c9611403e523fa212399101e93fc16 (patch)
tree2ecc97dde024fdfc499448e6ac76ee37aa1ae115 /perl-install/lang.pm
parenta1b2c33c15ab52218a15839f21f4da1af6a68a07 (diff)
downloaddrakx-backup-do-not-use-a117445ee6c9611403e523fa212399101e93fc16.tar
drakx-backup-do-not-use-a117445ee6c9611403e523fa212399101e93fc16.tar.gz
drakx-backup-do-not-use-a117445ee6c9611403e523fa212399101e93fc16.tar.bz2
drakx-backup-do-not-use-a117445ee6c9611403e523fa212399101e93fc16.tar.xz
drakx-backup-do-not-use-a117445ee6c9611403e523fa212399101e93fc16.zip
no_comment
Diffstat (limited to 'perl-install/lang.pm')
-rw-r--r--perl-install/lang.pm8
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};