diff options
author | Pascal Rigaux <pixel@mandriva.com> | 1999-07-24 19:40:11 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 1999-07-24 19:40:11 +0000 |
commit | 56b374075f45355184b2927cc2f24262dc7e6c21 (patch) | |
tree | 0131cb0b14564bedd750bae2dce222b46b6deecd /perl-install/common.pm | |
parent | 5a632fe532f355a2583970fefb2ed8ceec6c9460 (diff) | |
download | drakx-56b374075f45355184b2927cc2f24262dc7e6c21.tar drakx-56b374075f45355184b2927cc2f24262dc7e6c21.tar.gz drakx-56b374075f45355184b2927cc2f24262dc7e6c21.tar.bz2 drakx-56b374075f45355184b2927cc2f24262dc7e6c21.tar.xz drakx-56b374075f45355184b2927cc2f24262dc7e6c21.zip |
no_comment
Diffstat (limited to 'perl-install/common.pm')
-rw-r--r-- | perl-install/common.pm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm index 429a18d35..ce4d599e9 100644 --- a/perl-install/common.pm +++ b/perl-install/common.pm @@ -6,7 +6,7 @@ use vars qw(@ISA %EXPORT_TAGS @EXPORT_OK $printable_chars $sizeof_int $bitof_int @ISA = qw(Exporter); %EXPORT_TAGS = ( - common => [ qw(_ __ min max bool member divide is_empty_array_ref set_new set_add round_up round_down first second top uniq translate) ], + common => [ qw(_ __ min max bool member divide is_empty_array_ref set_new set_add round_up round_down first second top uniq translate untranslate) ], file => [ qw(dirname basename all glob_ cat_ chop_ mode) ], system => [ qw(sync makedev unmakedev psizeof strcpy gettimeofday syscall_ crypt_) ], constant => [ qw($printable_chars $sizeof_int $bitof_int $SECTORSIZE) ], @@ -96,3 +96,9 @@ sub translate { } $po::I18N::I18N{$s} || $s; } + +sub untranslate($@) { + my $s = shift; + foreach (@_) { translate($_) eq $s and return $_ } + die "untranslate failed"; +} |