line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
=head1 |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
Locale::CLDR::Locales::Af::Any::Na - Package for language Afrikaans |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
=cut |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
package Locale::CLDR::Locales::Af::Any::Na; |
8
|
|
|
|
|
|
|
# This file auto generated from Data\common\main\af_NA.xml |
9
|
|
|
|
|
|
|
# on Sun 24 Apr 8:13:52 am GMT |
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
917
|
use version; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
7
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
our $VERSION = version->declare('v0.29.0'); |
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
1
|
|
87
|
use v5.10.1; |
|
1
|
|
|
|
|
3
|
|
16
|
1
|
|
|
1
|
|
4
|
use mro 'c3'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
10
|
|
17
|
1
|
|
|
1
|
|
31
|
use utf8; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
6
|
|
18
|
1
|
|
|
1
|
|
27
|
use if $^V ge v5.12.0, feature => 'unicode_strings'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
13
|
|
19
|
|
|
|
|
|
|
|
20
|
1
|
|
|
1
|
|
112
|
use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
9
|
|
21
|
1
|
|
|
1
|
|
805
|
use Moo; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
5
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
extends('Locale::CLDR::Locales::Af::Any'); |
24
|
|
|
|
|
|
|
has 'currencies' => ( |
25
|
|
|
|
|
|
|
is => 'ro', |
26
|
|
|
|
|
|
|
isa => HashRef, |
27
|
|
|
|
|
|
|
init_arg => undef, |
28
|
|
|
|
|
|
|
default => sub { { |
29
|
|
|
|
|
|
|
'NAD' => { |
30
|
|
|
|
|
|
|
symbol => '$', |
31
|
|
|
|
|
|
|
}, |
32
|
|
|
|
|
|
|
} }, |
33
|
|
|
|
|
|
|
); |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
has 'day_period_data' => ( |
37
|
|
|
|
|
|
|
is => 'ro', |
38
|
|
|
|
|
|
|
isa => CodeRef, |
39
|
|
|
|
|
|
|
init_arg => undef, |
40
|
|
|
|
|
|
|
default => sub { sub { |
41
|
|
|
|
|
|
|
# Time in hhmm format |
42
|
|
|
|
|
|
|
my ($self, $type, $time, $day_period_type) = @_; |
43
|
|
|
|
|
|
|
$day_period_type //= 'default'; |
44
|
|
|
|
|
|
|
SWITCH: |
45
|
|
|
|
|
|
|
for ($type) { |
46
|
|
|
|
|
|
|
if ($_ eq 'generic') { |
47
|
|
|
|
|
|
|
if($day_period_type eq 'default') { |
48
|
|
|
|
|
|
|
return 'midnight' if $time == 0; |
49
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
50
|
|
|
|
|
|
|
&& $time < 2400; |
51
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
52
|
|
|
|
|
|
|
&& $time < 500; |
53
|
|
|
|
|
|
|
return 'morning1' if $time >= 500 |
54
|
|
|
|
|
|
|
&& $time < 1200; |
55
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
56
|
|
|
|
|
|
|
&& $time < 1800; |
57
|
|
|
|
|
|
|
} |
58
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
59
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
60
|
|
|
|
|
|
|
&& $time < 500; |
61
|
|
|
|
|
|
|
return 'morning1' if $time >= 500 |
62
|
|
|
|
|
|
|
&& $time < 1200; |
63
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
64
|
|
|
|
|
|
|
&& $time < 1800; |
65
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
66
|
|
|
|
|
|
|
&& $time < 2400; |
67
|
|
|
|
|
|
|
} |
68
|
|
|
|
|
|
|
last SWITCH; |
69
|
|
|
|
|
|
|
} |
70
|
|
|
|
|
|
|
if ($_ eq 'gregorian') { |
71
|
|
|
|
|
|
|
if($day_period_type eq 'default') { |
72
|
|
|
|
|
|
|
return 'midnight' if $time == 0; |
73
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
74
|
|
|
|
|
|
|
&& $time < 2400; |
75
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
76
|
|
|
|
|
|
|
&& $time < 500; |
77
|
|
|
|
|
|
|
return 'morning1' if $time >= 500 |
78
|
|
|
|
|
|
|
&& $time < 1200; |
79
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
80
|
|
|
|
|
|
|
&& $time < 1800; |
81
|
|
|
|
|
|
|
} |
82
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
83
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
84
|
|
|
|
|
|
|
&& $time < 500; |
85
|
|
|
|
|
|
|
return 'morning1' if $time >= 500 |
86
|
|
|
|
|
|
|
&& $time < 1200; |
87
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
88
|
|
|
|
|
|
|
&& $time < 1800; |
89
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
90
|
|
|
|
|
|
|
&& $time < 2400; |
91
|
|
|
|
|
|
|
} |
92
|
|
|
|
|
|
|
last SWITCH; |
93
|
|
|
|
|
|
|
} |
94
|
|
|
|
|
|
|
} |
95
|
|
|
|
|
|
|
} }, |
96
|
|
|
|
|
|
|
); |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
around day_period_data => sub { |
99
|
|
|
|
|
|
|
my ($orig, $self) = @_; |
100
|
|
|
|
|
|
|
return $self->$orig; |
101
|
|
|
|
|
|
|
}; |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
has 'eras' => ( |
104
|
|
|
|
|
|
|
is => 'ro', |
105
|
|
|
|
|
|
|
isa => HashRef, |
106
|
|
|
|
|
|
|
init_arg => undef, |
107
|
|
|
|
|
|
|
default => sub { { |
108
|
|
|
|
|
|
|
'generic' => { |
109
|
|
|
|
|
|
|
}, |
110
|
|
|
|
|
|
|
'gregorian' => { |
111
|
|
|
|
|
|
|
}, |
112
|
|
|
|
|
|
|
} }, |
113
|
|
|
|
|
|
|
); |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
has 'date_formats' => ( |
116
|
|
|
|
|
|
|
is => 'ro', |
117
|
|
|
|
|
|
|
isa => HashRef, |
118
|
|
|
|
|
|
|
init_arg => undef, |
119
|
|
|
|
|
|
|
default => sub { { |
120
|
|
|
|
|
|
|
'generic' => { |
121
|
|
|
|
|
|
|
'full' => q{EEEE d MMMM y G}, |
122
|
|
|
|
|
|
|
'long' => q{d MMMM y G}, |
123
|
|
|
|
|
|
|
'medium' => q{d MMM y G}, |
124
|
|
|
|
|
|
|
}, |
125
|
|
|
|
|
|
|
'gregorian' => { |
126
|
|
|
|
|
|
|
'full' => q{EEEE d MMMM y}, |
127
|
|
|
|
|
|
|
'long' => q{d MMMM y}, |
128
|
|
|
|
|
|
|
'medium' => q{d MMM y}, |
129
|
|
|
|
|
|
|
}, |
130
|
|
|
|
|
|
|
} }, |
131
|
|
|
|
|
|
|
); |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
has 'time_formats' => ( |
134
|
|
|
|
|
|
|
is => 'ro', |
135
|
|
|
|
|
|
|
isa => HashRef, |
136
|
|
|
|
|
|
|
init_arg => undef, |
137
|
|
|
|
|
|
|
default => sub { { |
138
|
|
|
|
|
|
|
'generic' => { |
139
|
|
|
|
|
|
|
}, |
140
|
|
|
|
|
|
|
'gregorian' => { |
141
|
|
|
|
|
|
|
}, |
142
|
|
|
|
|
|
|
} }, |
143
|
|
|
|
|
|
|
); |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
has 'datetime_formats' => ( |
146
|
|
|
|
|
|
|
is => 'ro', |
147
|
|
|
|
|
|
|
isa => HashRef, |
148
|
|
|
|
|
|
|
init_arg => undef, |
149
|
|
|
|
|
|
|
default => sub { { |
150
|
|
|
|
|
|
|
'generic' => { |
151
|
|
|
|
|
|
|
}, |
152
|
|
|
|
|
|
|
'gregorian' => { |
153
|
|
|
|
|
|
|
}, |
154
|
|
|
|
|
|
|
} }, |
155
|
|
|
|
|
|
|
); |
156
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
has 'datetime_formats_available_formats' => ( |
158
|
|
|
|
|
|
|
is => 'ro', |
159
|
|
|
|
|
|
|
isa => HashRef, |
160
|
|
|
|
|
|
|
init_arg => undef, |
161
|
|
|
|
|
|
|
default => sub { { |
162
|
|
|
|
|
|
|
} }, |
163
|
|
|
|
|
|
|
); |
164
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
has 'datetime_formats_append_item' => ( |
166
|
|
|
|
|
|
|
is => 'ro', |
167
|
|
|
|
|
|
|
isa => HashRef, |
168
|
|
|
|
|
|
|
init_arg => undef, |
169
|
|
|
|
|
|
|
default => sub { { |
170
|
|
|
|
|
|
|
} }, |
171
|
|
|
|
|
|
|
); |
172
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
has 'datetime_formats_interval' => ( |
174
|
|
|
|
|
|
|
is => 'ro', |
175
|
|
|
|
|
|
|
isa => HashRef, |
176
|
|
|
|
|
|
|
init_arg => undef, |
177
|
|
|
|
|
|
|
default => sub { { |
178
|
|
|
|
|
|
|
} }, |
179
|
|
|
|
|
|
|
); |
180
|
|
|
|
|
|
|
|
181
|
1
|
|
|
1
|
|
3363
|
no Moo; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
5
|
|
182
|
|
|
|
|
|
|
|
183
|
|
|
|
|
|
|
1; |
184
|
|
|
|
|
|
|
|
185
|
|
|
|
|
|
|
# vim: tabstop=4 |