summaryrefslogtreecommitdiffstats
path: root/perl-install/lang.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-07-17 16:45:33 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-07-17 16:45:33 +0000
commitdeddef1f4746139ed4ef994d8f053bf39d4d6384 (patch)
tree1b2ce28fc88f3b55e7dae2af56782ee6c849d775 /perl-install/lang.pm
parent9f8734e27c9a88137a2933970b7a5962e37789da (diff)
downloaddrakx-backup-do-not-use-deddef1f4746139ed4ef994d8f053bf39d4d6384.tar
drakx-backup-do-not-use-deddef1f4746139ed4ef994d8f053bf39d4d6384.tar.gz
drakx-backup-do-not-use-deddef1f4746139ed4ef994d8f053bf39d4d6384.tar.bz2
drakx-backup-do-not-use-deddef1f4746139ed4ef994d8f053bf39d4d6384.tar.xz
drakx-backup-do-not-use-deddef1f4746139ed4ef994d8f053bf39d4d6384.zip
*** empty log message ***
Diffstat (limited to 'perl-install/lang.pm')
-rw-r--r--perl-install/lang.pm9
1 files changed, 8 insertions, 1 deletions
diff --git a/perl-install/lang.pm b/perl-install/lang.pm
index a14c7c3ca..c7d8ed25e 100644
--- a/perl-install/lang.pm
+++ b/perl-install/lang.pm
@@ -24,7 +24,14 @@ my %languages = (
1;
-sub list { keys %languages }
+sub list { map { $_->[0] } values %languages }
+sub text2lang {
+ my ($t) = @_;
+ while (my ($k, $v) = each %languages) {
+ $v->[0] eq $t and return $k;
+ }
+ die "unknown language $t";
+}
sub set {
my $lang = shift;