line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
=encoding utf8 |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
Locale::CLDR::Locales::En::Any::Mt - Package for language English |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=cut |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# This file auto generated from Data/common/main/en_MT.xml |
10
|
|
|
|
|
|
|
# on Mon 11 Apr 5:27:06 pm GMT |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
use strict; |
13
|
1
|
|
|
1
|
|
766
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
24
|
|
14
|
1
|
|
|
1
|
|
4
|
use version; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
17
|
|
15
|
1
|
|
|
1
|
|
4
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
16
|
|
|
|
|
|
|
our $VERSION = version->declare('v0.34.1'); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
use v5.10.1; |
19
|
1
|
|
|
1
|
|
75
|
use mro 'c3'; |
|
1
|
|
|
|
|
3
|
|
20
|
1
|
|
|
1
|
|
5
|
use utf8; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
21
|
1
|
|
|
1
|
|
21
|
use if $^V ge v5.12.0, feature => 'unicode_strings'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
4
|
|
22
|
1
|
|
|
1
|
|
35
|
use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef ); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
10
|
|
23
|
1
|
|
|
1
|
|
73
|
use Moo; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
24
|
1
|
|
|
1
|
|
817
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
25
|
|
|
|
|
|
|
extends('Locale::CLDR::Locales::En::Any::001'); |
26
|
|
|
|
|
|
|
has 'currencies' => ( |
27
|
|
|
|
|
|
|
is => 'ro', |
28
|
|
|
|
|
|
|
isa => HashRef, |
29
|
|
|
|
|
|
|
init_arg => undef, |
30
|
|
|
|
|
|
|
default => sub { { |
31
|
|
|
|
|
|
|
'GBP' => { |
32
|
|
|
|
|
|
|
symbol => 'GB£', |
33
|
|
|
|
|
|
|
}, |
34
|
|
|
|
|
|
|
} }, |
35
|
|
|
|
|
|
|
); |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
has 'day_period_data' => ( |
39
|
|
|
|
|
|
|
is => 'ro', |
40
|
|
|
|
|
|
|
isa => CodeRef, |
41
|
|
|
|
|
|
|
init_arg => undef, |
42
|
|
|
|
|
|
|
default => sub { sub { |
43
|
|
|
|
|
|
|
# Time in hhmm format |
44
|
|
|
|
|
|
|
my ($self, $type, $time, $day_period_type) = @_; |
45
|
|
|
|
|
|
|
$day_period_type //= 'default'; |
46
|
|
|
|
|
|
|
SWITCH: |
47
|
|
|
|
|
|
|
for ($type) { |
48
|
|
|
|
|
|
|
if ($_ eq 'generic') { |
49
|
|
|
|
|
|
|
if($day_period_type eq 'default') { |
50
|
|
|
|
|
|
|
return 'midnight' if $time == 0; |
51
|
|
|
|
|
|
|
return 'noon' if $time == 1200; |
52
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
53
|
|
|
|
|
|
|
&& $time < 1800; |
54
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
55
|
|
|
|
|
|
|
&& $time < 2100; |
56
|
|
|
|
|
|
|
return 'morning1' if $time >= 600 |
57
|
|
|
|
|
|
|
&& $time < 1200; |
58
|
|
|
|
|
|
|
return 'night1' if $time >= 2100; |
59
|
|
|
|
|
|
|
return 'night1' if $time < 600; |
60
|
|
|
|
|
|
|
} |
61
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
62
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
63
|
|
|
|
|
|
|
&& $time < 1800; |
64
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
65
|
|
|
|
|
|
|
&& $time < 2100; |
66
|
|
|
|
|
|
|
return 'morning1' if $time >= 600 |
67
|
|
|
|
|
|
|
&& $time < 1200; |
68
|
|
|
|
|
|
|
return 'night1' if $time >= 2100; |
69
|
|
|
|
|
|
|
return 'night1' if $time < 600; |
70
|
|
|
|
|
|
|
} |
71
|
|
|
|
|
|
|
last SWITCH; |
72
|
|
|
|
|
|
|
} |
73
|
|
|
|
|
|
|
if ($_ eq 'gregorian') { |
74
|
|
|
|
|
|
|
if($day_period_type eq 'default') { |
75
|
|
|
|
|
|
|
return 'midnight' if $time == 0; |
76
|
|
|
|
|
|
|
return 'noon' if $time == 1200; |
77
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
78
|
|
|
|
|
|
|
&& $time < 1800; |
79
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
80
|
|
|
|
|
|
|
&& $time < 2100; |
81
|
|
|
|
|
|
|
return 'morning1' if $time >= 600 |
82
|
|
|
|
|
|
|
&& $time < 1200; |
83
|
|
|
|
|
|
|
return 'night1' if $time >= 2100; |
84
|
|
|
|
|
|
|
return 'night1' if $time < 600; |
85
|
|
|
|
|
|
|
} |
86
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
87
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
88
|
|
|
|
|
|
|
&& $time < 1800; |
89
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
90
|
|
|
|
|
|
|
&& $time < 2100; |
91
|
|
|
|
|
|
|
return 'morning1' if $time >= 600 |
92
|
|
|
|
|
|
|
&& $time < 1200; |
93
|
|
|
|
|
|
|
return 'night1' if $time >= 2100; |
94
|
|
|
|
|
|
|
return 'night1' if $time < 600; |
95
|
|
|
|
|
|
|
} |
96
|
|
|
|
|
|
|
last SWITCH; |
97
|
|
|
|
|
|
|
} |
98
|
|
|
|
|
|
|
} |
99
|
|
|
|
|
|
|
} }, |
100
|
|
|
|
|
|
|
); |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
around day_period_data => sub { |
103
|
|
|
|
|
|
|
my ($orig, $self) = @_; |
104
|
|
|
|
|
|
|
return $self->$orig; |
105
|
|
|
|
|
|
|
}; |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
has 'eras' => ( |
108
|
|
|
|
|
|
|
is => 'ro', |
109
|
|
|
|
|
|
|
isa => HashRef, |
110
|
|
|
|
|
|
|
init_arg => undef, |
111
|
|
|
|
|
|
|
default => sub { { |
112
|
|
|
|
|
|
|
'generic' => { |
113
|
|
|
|
|
|
|
}, |
114
|
|
|
|
|
|
|
'gregorian' => { |
115
|
|
|
|
|
|
|
}, |
116
|
|
|
|
|
|
|
} }, |
117
|
|
|
|
|
|
|
); |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
has 'date_formats' => ( |
120
|
|
|
|
|
|
|
is => 'ro', |
121
|
|
|
|
|
|
|
isa => HashRef, |
122
|
|
|
|
|
|
|
init_arg => undef, |
123
|
|
|
|
|
|
|
default => sub { { |
124
|
|
|
|
|
|
|
'generic' => { |
125
|
|
|
|
|
|
|
'long' => q{dd MMMM y G}, |
126
|
|
|
|
|
|
|
'medium' => q{dd MMM y G}, |
127
|
|
|
|
|
|
|
}, |
128
|
|
|
|
|
|
|
'gregorian' => { |
129
|
|
|
|
|
|
|
'long' => q{dd MMMM y}, |
130
|
|
|
|
|
|
|
'medium' => q{dd MMM y}, |
131
|
|
|
|
|
|
|
}, |
132
|
|
|
|
|
|
|
} }, |
133
|
|
|
|
|
|
|
); |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
has 'time_formats' => ( |
136
|
|
|
|
|
|
|
is => 'ro', |
137
|
|
|
|
|
|
|
isa => HashRef, |
138
|
|
|
|
|
|
|
init_arg => undef, |
139
|
|
|
|
|
|
|
default => sub { { |
140
|
|
|
|
|
|
|
'generic' => { |
141
|
|
|
|
|
|
|
}, |
142
|
|
|
|
|
|
|
'gregorian' => { |
143
|
|
|
|
|
|
|
'full' => q{HH:mm:ss zzzz}, |
144
|
|
|
|
|
|
|
'long' => q{HH:mm:ss z}, |
145
|
|
|
|
|
|
|
'medium' => q{HH:mm:ss}, |
146
|
|
|
|
|
|
|
'short' => q{HH:mm}, |
147
|
|
|
|
|
|
|
}, |
148
|
|
|
|
|
|
|
} }, |
149
|
|
|
|
|
|
|
); |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
has 'datetime_formats' => ( |
152
|
|
|
|
|
|
|
is => 'ro', |
153
|
|
|
|
|
|
|
isa => HashRef, |
154
|
|
|
|
|
|
|
init_arg => undef, |
155
|
|
|
|
|
|
|
default => sub { { |
156
|
|
|
|
|
|
|
'generic' => { |
157
|
|
|
|
|
|
|
}, |
158
|
|
|
|
|
|
|
'gregorian' => { |
159
|
|
|
|
|
|
|
}, |
160
|
|
|
|
|
|
|
} }, |
161
|
|
|
|
|
|
|
); |
162
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
has 'datetime_formats_available_formats' => ( |
164
|
|
|
|
|
|
|
is => 'ro', |
165
|
|
|
|
|
|
|
isa => HashRef, |
166
|
|
|
|
|
|
|
init_arg => undef, |
167
|
|
|
|
|
|
|
default => sub { { |
168
|
|
|
|
|
|
|
'generic' => { |
169
|
|
|
|
|
|
|
MMMd => q{dd MMM}, |
170
|
|
|
|
|
|
|
yyyyMMMEd => q{E, dd MMM y G}, |
171
|
|
|
|
|
|
|
yyyyMMMd => q{dd MMM y G}, |
172
|
|
|
|
|
|
|
}, |
173
|
|
|
|
|
|
|
'gregorian' => { |
174
|
|
|
|
|
|
|
MMMd => q{dd MMM}, |
175
|
|
|
|
|
|
|
yMMMEd => q{E, dd MMM y}, |
176
|
|
|
|
|
|
|
yMMMd => q{dd MMM y}, |
177
|
|
|
|
|
|
|
}, |
178
|
|
|
|
|
|
|
} }, |
179
|
|
|
|
|
|
|
); |
180
|
|
|
|
|
|
|
|
181
|
|
|
|
|
|
|
has 'datetime_formats_append_item' => ( |
182
|
|
|
|
|
|
|
is => 'ro', |
183
|
|
|
|
|
|
|
isa => HashRef, |
184
|
|
|
|
|
|
|
init_arg => undef, |
185
|
|
|
|
|
|
|
default => sub { { |
186
|
|
|
|
|
|
|
} }, |
187
|
|
|
|
|
|
|
); |
188
|
|
|
|
|
|
|
|
189
|
|
|
|
|
|
|
has 'datetime_formats_interval' => ( |
190
|
|
|
|
|
|
|
is => 'ro', |
191
|
|
|
|
|
|
|
isa => HashRef, |
192
|
|
|
|
|
|
|
init_arg => undef, |
193
|
|
|
|
|
|
|
default => sub { { |
194
|
|
|
|
|
|
|
'generic' => { |
195
|
|
|
|
|
|
|
MEd => { |
196
|
|
|
|
|
|
|
M => q{E, dd/MM – E, dd/MM}, |
197
|
|
|
|
|
|
|
d => q{E, dd/MM – E, dd/MM}, |
198
|
|
|
|
|
|
|
}, |
199
|
|
|
|
|
|
|
MMMEd => { |
200
|
|
|
|
|
|
|
M => q{E, dd MMM – E, dd MMM}, |
201
|
|
|
|
|
|
|
d => q{E, dd – E, dd MMM}, |
202
|
|
|
|
|
|
|
}, |
203
|
|
|
|
|
|
|
MMMd => { |
204
|
|
|
|
|
|
|
M => q{dd MMM – dd MMM}, |
205
|
|
|
|
|
|
|
d => q{dd – dd MMM}, |
206
|
|
|
|
|
|
|
}, |
207
|
|
|
|
|
|
|
yM => { |
208
|
|
|
|
|
|
|
M => q{MM/y – MM/y G}, |
209
|
|
|
|
|
|
|
y => q{MM/y – MM/y G}, |
210
|
|
|
|
|
|
|
}, |
211
|
|
|
|
|
|
|
yMEd => { |
212
|
|
|
|
|
|
|
M => q{E, dd/MM/y – E, dd/MM/y G}, |
213
|
|
|
|
|
|
|
d => q{E, dd/MM/y – E, dd/MM/y G}, |
214
|
|
|
|
|
|
|
y => q{E, dd/MM/y – E, dd/MM/y G}, |
215
|
|
|
|
|
|
|
}, |
216
|
|
|
|
|
|
|
yMMMd => { |
217
|
|
|
|
|
|
|
M => q{dd MMM – dd MMM y G}, |
218
|
|
|
|
|
|
|
d => q{dd – dd MMM y G}, |
219
|
|
|
|
|
|
|
y => q{dd MMM y – dd MMM y G}, |
220
|
|
|
|
|
|
|
}, |
221
|
|
|
|
|
|
|
yMd => { |
222
|
|
|
|
|
|
|
M => q{dd/MM/y – dd/MM/y G}, |
223
|
|
|
|
|
|
|
d => q{dd/MM/y – dd/MM/y G}, |
224
|
|
|
|
|
|
|
y => q{dd/MM/y – dd/MM/y G}, |
225
|
|
|
|
|
|
|
}, |
226
|
|
|
|
|
|
|
}, |
227
|
|
|
|
|
|
|
'gregorian' => { |
228
|
|
|
|
|
|
|
MEd => { |
229
|
|
|
|
|
|
|
M => q{E, dd/MM – E, dd/MM}, |
230
|
|
|
|
|
|
|
d => q{E, dd/MM – E, dd/MM}, |
231
|
|
|
|
|
|
|
}, |
232
|
|
|
|
|
|
|
MMMEd => { |
233
|
|
|
|
|
|
|
M => q{E, dd MMM – E, dd MMM}, |
234
|
|
|
|
|
|
|
d => q{E, dd – E, dd MMM}, |
235
|
|
|
|
|
|
|
}, |
236
|
|
|
|
|
|
|
MMMd => { |
237
|
|
|
|
|
|
|
M => q{dd MMM – dd MMM}, |
238
|
|
|
|
|
|
|
d => q{dd – dd MMM}, |
239
|
|
|
|
|
|
|
}, |
240
|
|
|
|
|
|
|
yMMMd => { |
241
|
|
|
|
|
|
|
M => q{dd MMM – dd MMM y}, |
242
|
|
|
|
|
|
|
d => q{dd – dd MMM y}, |
243
|
|
|
|
|
|
|
y => q{dd MMM y – dd MMM y}, |
244
|
|
|
|
|
|
|
}, |
245
|
|
|
|
|
|
|
}, |
246
|
|
|
|
|
|
|
} }, |
247
|
|
|
|
|
|
|
); |
248
|
|
|
|
|
|
|
|
249
|
|
|
|
|
|
|
no Moo; |
250
|
1
|
|
|
1
|
|
980
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
3
|
|
251
|
|
|
|
|
|
|
1; |
252
|
|
|
|
|
|
|
|
253
|
|
|
|
|
|
|
# vim: tabstop=4 |