From 56b374075f45355184b2927cc2f24262dc7e6c21 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Sat, 24 Jul 1999 19:40:11 +0000 Subject: no_comment --- perl-install/common.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'perl-install/common.pm') 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"; +} -- cgit v1.2.1