line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package ACME::Error::Translate; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
680
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
38
|
|
4
|
1
|
|
|
1
|
|
4
|
no strict 'refs'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
28
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
4
|
use vars qw[$VERSION]; |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
72
|
|
7
|
|
|
|
|
|
|
$VERSION = '0.01'; |
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
1664
|
use Lingua::Translate; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
{ |
12
|
|
|
|
|
|
|
my $translator = undef; |
13
|
|
|
|
|
|
|
sub import { |
14
|
|
|
|
|
|
|
my $class = shift; |
15
|
|
|
|
|
|
|
$translator = Lingua::Translate->new( src => 'en', dest => shift ); |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
*die_handler = *warn_handler = sub { |
19
|
|
|
|
|
|
|
if ( $translator ) { |
20
|
|
|
|
|
|
|
return map $translator->translate( $_ ), @_; |
21
|
|
|
|
|
|
|
} else { |
22
|
|
|
|
|
|
|
return @_; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
}; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
__END__ |