line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Locale::MakePhrase::Language::en; |
2
|
|
|
|
|
|
|
our $VERSION = 0.2; |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
=head1 NAME |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
Locale::MakePhrase::Langage::en - Custom language handling for English. |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 DESCRIPTION |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
This module implements custom language handling capabilites, for the |
11
|
|
|
|
|
|
|
English language. |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 API |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
The following methods are implemented: |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=cut |
18
|
|
|
|
|
|
|
|
19
|
8
|
|
|
8
|
|
797
|
use strict; |
|
8
|
|
|
|
|
15
|
|
|
8
|
|
|
|
|
428
|
|
20
|
8
|
|
|
8
|
|
47
|
use warnings; |
|
8
|
|
|
|
|
14
|
|
|
8
|
|
|
|
|
252
|
|
21
|
8
|
|
|
8
|
|
45
|
use utf8; |
|
8
|
|
|
|
|
14
|
|
|
8
|
|
|
|
|
65
|
|
22
|
8
|
|
|
8
|
|
200
|
use Data::Dumper; |
|
8
|
|
|
|
|
14
|
|
|
8
|
|
|
|
|
963
|
|
23
|
8
|
|
|
8
|
|
186
|
use base qw(Locale::MakePhrase::Language); |
|
8
|
|
|
|
|
20
|
|
|
8
|
|
|
|
|
10563
|
|
24
|
8
|
|
|
8
|
|
48
|
use Locale::MakePhrase::Utils qw(left); |
|
8
|
|
|
|
|
14
|
|
|
8
|
|
|
|
|
860
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
#-------------------------------------------------------------------------- |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head2 $self new([...]) |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
[ Inherited from L. ] |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
No options are necessary for this module. |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
If you are using this as an example, you would implement the |
35
|
|
|
|
|
|
|
C method, then return a reference to C<$self>. |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=cut |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
#-------------------------------------------------------------------------- |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head2 boolean y_or_n($keypress) |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
Implements handling of B or B keypress for English languages. |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=cut |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
sub y_or_n { |
48
|
0
|
|
|
0
|
1
|
|
my $y = lc(left($_[1])); |
49
|
0
|
0
|
|
|
|
|
return 0 unless $y eq 'y'; |
50
|
0
|
|
|
|
|
|
1; |
51
|
|
|
|
|
|
|
} |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
1; |
54
|
|
|
|
|
|
|
__END__ |