line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
=encoding utf8 |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 NAME |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
Locale::CLDR::Locales::Sw::Any::Ke - Package for language Swahili |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=cut |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
package Locale::CLDR::Locales::Sw::Any::Ke; |
10
|
|
|
|
|
|
|
# This file auto generated from Data\common\main\sw_KE.xml |
11
|
|
|
|
|
|
|
# on Fri 13 Oct 9:43:06 am GMT |
12
|
|
|
|
|
|
|
|
13
|
1
|
|
|
1
|
|
855
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
24
|
|
14
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
21
|
|
15
|
1
|
|
|
1
|
|
4
|
use version; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
our $VERSION = version->declare('v0.34.2'); |
18
|
|
|
|
|
|
|
|
19
|
1
|
|
|
1
|
|
82
|
use v5.10.1; |
|
1
|
|
|
|
|
3
|
|
20
|
1
|
|
|
1
|
|
4
|
use mro 'c3'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
21
|
1
|
|
|
1
|
|
19
|
use utf8; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
22
|
1
|
|
|
1
|
|
40
|
use if $^V ge v5.12.0, feature => 'unicode_strings'; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
10
|
|
23
|
1
|
|
|
1
|
|
81
|
use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef ); |
|
1
|
|
|
|
|
9
|
|
|
1
|
|
|
|
|
7
|
|
24
|
1
|
|
|
1
|
|
915
|
use Moo; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
extends('Locale::CLDR::Locales::Sw::Any'); |
27
|
|
|
|
|
|
|
has 'display_name_language' => ( |
28
|
|
|
|
|
|
|
is => 'ro', |
29
|
|
|
|
|
|
|
isa => CodeRef, |
30
|
|
|
|
|
|
|
init_arg => undef, |
31
|
|
|
|
|
|
|
default => sub { |
32
|
|
|
|
|
|
|
sub { |
33
|
|
|
|
|
|
|
my %languages = ( |
34
|
|
|
|
|
|
|
'arq' => 'Kiarabu cha Aljeria', |
35
|
|
|
|
|
|
|
'as' => 'Kiasamisi', |
36
|
|
|
|
|
|
|
'chr' => 'Kicheroki', |
37
|
|
|
|
|
|
|
'cu' => 'Kislovakia cha Kanisa la Jadi', |
38
|
|
|
|
|
|
|
'gaa' => 'Kiga', |
39
|
|
|
|
|
|
|
'grc' => 'Kigiriki cha Kale', |
40
|
|
|
|
|
|
|
'gwi' => 'Kigwichʼin', |
41
|
|
|
|
|
|
|
'hsb' => 'Kisorbia cha Juu', |
42
|
|
|
|
|
|
|
'hup' => 'Kihupa', |
43
|
|
|
|
|
|
|
'hy' => 'Kiamenia', |
44
|
|
|
|
|
|
|
'inh' => 'Kiingushi', |
45
|
|
|
|
|
|
|
'jbo' => 'Kilojbani', |
46
|
|
|
|
|
|
|
'kac' => 'Kikachini', |
47
|
|
|
|
|
|
|
'khq' => 'Kikoyrachiini', |
48
|
|
|
|
|
|
|
'kkj' => 'Kikako', |
49
|
|
|
|
|
|
|
'km' => 'Kikhmeri', |
50
|
|
|
|
|
|
|
'kn' => 'Kikanada', |
51
|
|
|
|
|
|
|
'koi' => 'Kikomipermyak', |
52
|
|
|
|
|
|
|
'kru' => 'Kikurukh', |
53
|
|
|
|
|
|
|
'lag' => 'Kilangi', |
54
|
|
|
|
|
|
|
'lam' => 'Kilamba', |
55
|
|
|
|
|
|
|
'li' => 'Kilimbugishi', |
56
|
|
|
|
|
|
|
'mdf' => 'Kimoksha', |
57
|
|
|
|
|
|
|
'mic' => 'Kimi\'kmak', |
58
|
|
|
|
|
|
|
'mk' => 'Kimasedonia', |
59
|
|
|
|
|
|
|
'moh' => 'Kimohoki', |
60
|
|
|
|
|
|
|
'nnh' => 'Kiingiemboon', |
61
|
|
|
|
|
|
|
'nqo' => 'Kiin’ko', |
62
|
|
|
|
|
|
|
'or' => 'Kiodia', |
63
|
|
|
|
|
|
|
'pcm' => 'Kipijini cha Nigeria', |
64
|
|
|
|
|
|
|
'ses' => 'Kikoyraborosenni', |
65
|
|
|
|
|
|
|
'shu' => 'Kiarabu cha Chadi', |
66
|
|
|
|
|
|
|
'srn' => 'Kisranantongo', |
67
|
|
|
|
|
|
|
'sw_CD' => 'Kiswahili cha Kongo', |
68
|
|
|
|
|
|
|
'swb' => 'Kikomoro', |
69
|
|
|
|
|
|
|
'syr' => 'Kisiria', |
70
|
|
|
|
|
|
|
'tw' => 'Kitwi', |
71
|
|
|
|
|
|
|
'twq' => 'Kitasawak', |
72
|
|
|
|
|
|
|
'udm' => 'Kiudumurti', |
73
|
|
|
|
|
|
|
'ug' => 'Kiuiguri', |
74
|
|
|
|
|
|
|
'zgh' => 'Kitamazighati Sanifu cha Moroko', |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
); |
77
|
|
|
|
|
|
|
if (@_) { |
78
|
|
|
|
|
|
|
return $languages{$_[0]}; |
79
|
|
|
|
|
|
|
} |
80
|
|
|
|
|
|
|
return \%languages; |
81
|
|
|
|
|
|
|
} |
82
|
|
|
|
|
|
|
}, |
83
|
|
|
|
|
|
|
); |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
has 'display_name_region' => ( |
86
|
|
|
|
|
|
|
is => 'ro', |
87
|
|
|
|
|
|
|
isa => HashRef[Str], |
88
|
|
|
|
|
|
|
init_arg => undef, |
89
|
|
|
|
|
|
|
default => sub { |
90
|
|
|
|
|
|
|
{ |
91
|
|
|
|
|
|
|
'AF' => 'Afghanistani', |
92
|
|
|
|
|
|
|
'AI' => 'Anguila', |
93
|
|
|
|
|
|
|
'AQ' => 'Antaktika', |
94
|
|
|
|
|
|
|
'AZ' => 'Azabajani', |
95
|
|
|
|
|
|
|
'BJ' => 'Benini', |
96
|
|
|
|
|
|
|
'BT' => 'Bhutani', |
97
|
|
|
|
|
|
|
'BY' => 'Belarusi', |
98
|
|
|
|
|
|
|
'CC' => 'Visiwa vya Kokos (Keeling)', |
99
|
|
|
|
|
|
|
'CD' => 'Kongo - Kinshasa', |
100
|
|
|
|
|
|
|
'CI' => 'Ivorikosti', |
101
|
|
|
|
|
|
|
'CY' => 'Saiprasi', |
102
|
|
|
|
|
|
|
'DK' => 'Denmaki', |
103
|
|
|
|
|
|
|
'EA' => 'Keuta na Melilla', |
104
|
|
|
|
|
|
|
'EC' => 'Ekwado', |
105
|
|
|
|
|
|
|
'FM' => 'Mikronesia', |
106
|
|
|
|
|
|
|
'GA' => 'Gaboni', |
107
|
|
|
|
|
|
|
'GL' => 'Grinilandi', |
108
|
|
|
|
|
|
|
'GP' => 'Gwadelupe', |
109
|
|
|
|
|
|
|
'GS' => 'Visiwa vya Jojia ya Kusini na Sandwich ya Kusini', |
110
|
|
|
|
|
|
|
'GU' => 'Guami', |
111
|
|
|
|
|
|
|
'HR' => 'Kroashia', |
112
|
|
|
|
|
|
|
'IO' => 'Himaya ya Uingereza katika Bahari Hindi', |
113
|
|
|
|
|
|
|
'JO' => 'Yordani', |
114
|
|
|
|
|
|
|
'KY' => 'Visiwa vya Kaimani', |
115
|
|
|
|
|
|
|
'LA' => 'Laosi', |
116
|
|
|
|
|
|
|
'LB' => 'Lebanoni', |
117
|
|
|
|
|
|
|
'LI' => 'Lishenteni', |
118
|
|
|
|
|
|
|
'LS' => 'Lesotho', |
119
|
|
|
|
|
|
|
'LU' => 'Lasembagi', |
120
|
|
|
|
|
|
|
'LV' => 'Lativia', |
121
|
|
|
|
|
|
|
'MA' => 'Moroko', |
122
|
|
|
|
|
|
|
'MC' => 'Monako', |
123
|
|
|
|
|
|
|
'MK' => 'Masedonia', |
124
|
|
|
|
|
|
|
'MK@alt=variant' => 'Masedonia (FYROM)', |
125
|
|
|
|
|
|
|
'MM' => 'Myama (Burma)', |
126
|
|
|
|
|
|
|
'MO' => 'Makau SAR China', |
127
|
|
|
|
|
|
|
'MO@alt=short' => 'Makau', |
128
|
|
|
|
|
|
|
'MQ' => 'Martiniki', |
129
|
|
|
|
|
|
|
'MS' => 'Montserati', |
130
|
|
|
|
|
|
|
'MV' => 'Maldivi', |
131
|
|
|
|
|
|
|
'NC' => 'Nyukaledonia', |
132
|
|
|
|
|
|
|
'NE' => 'Nijeri', |
133
|
|
|
|
|
|
|
'NO' => 'Norwe', |
134
|
|
|
|
|
|
|
'NP' => 'Nepali', |
135
|
|
|
|
|
|
|
'OM' => 'Omani', |
136
|
|
|
|
|
|
|
'PF' => 'Polinesia ya Ufaransa', |
137
|
|
|
|
|
|
|
'PG' => 'Papua Guinea Mpya', |
138
|
|
|
|
|
|
|
'PL' => 'Polandi', |
139
|
|
|
|
|
|
|
'PR' => 'Puetoriko', |
140
|
|
|
|
|
|
|
'PS' => 'Himaya za Palestina', |
141
|
|
|
|
|
|
|
'PY' => 'Paragwai', |
142
|
|
|
|
|
|
|
'QA' => 'Katari', |
143
|
|
|
|
|
|
|
'SG' => 'Singapuri', |
144
|
|
|
|
|
|
|
'SR' => 'Surinamu', |
145
|
|
|
|
|
|
|
'ST' => 'Sao Tome na Prinsipe', |
146
|
|
|
|
|
|
|
'SY' => 'Shamu', |
147
|
|
|
|
|
|
|
'TD' => 'Chadi', |
148
|
|
|
|
|
|
|
'TH' => 'Thailandi', |
149
|
|
|
|
|
|
|
'TM' => 'Turukimenstani', |
150
|
|
|
|
|
|
|
'TW' => 'Taiwani', |
151
|
|
|
|
|
|
|
'UA' => 'Ukreni', |
152
|
|
|
|
|
|
|
'UY' => 'Urugwai', |
153
|
|
|
|
|
|
|
'VA' => 'Mji wa Vatikani', |
154
|
|
|
|
|
|
|
'VG' => 'Visiwa vya Virgin vya Uingereza', |
155
|
|
|
|
|
|
|
'VI' => 'Visiwa vya Virgin vya Marekani', |
156
|
|
|
|
|
|
|
'VN' => 'Vietnamu', |
157
|
|
|
|
|
|
|
'YT' => 'Mayote', |
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
} |
160
|
|
|
|
|
|
|
}, |
161
|
|
|
|
|
|
|
); |
162
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
has 'day_period_data' => ( |
164
|
|
|
|
|
|
|
is => 'ro', |
165
|
|
|
|
|
|
|
isa => CodeRef, |
166
|
|
|
|
|
|
|
init_arg => undef, |
167
|
|
|
|
|
|
|
default => sub { sub { |
168
|
|
|
|
|
|
|
# Time in hhmm format |
169
|
|
|
|
|
|
|
my ($self, $type, $time, $day_period_type) = @_; |
170
|
|
|
|
|
|
|
$day_period_type //= 'default'; |
171
|
|
|
|
|
|
|
SWITCH: |
172
|
|
|
|
|
|
|
for ($type) { |
173
|
|
|
|
|
|
|
if ($_ eq 'generic') { |
174
|
|
|
|
|
|
|
if($day_period_type eq 'default') { |
175
|
|
|
|
|
|
|
return 'midnight' if $time == 0; |
176
|
|
|
|
|
|
|
return 'noon' if $time == 1200; |
177
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
178
|
|
|
|
|
|
|
&& $time < 1600; |
179
|
|
|
|
|
|
|
return 'evening1' if $time >= 1600 |
180
|
|
|
|
|
|
|
&& $time < 1900; |
181
|
|
|
|
|
|
|
return 'morning1' if $time >= 400 |
182
|
|
|
|
|
|
|
&& $time < 700; |
183
|
|
|
|
|
|
|
return 'morning2' if $time >= 700 |
184
|
|
|
|
|
|
|
&& $time < 1200; |
185
|
|
|
|
|
|
|
return 'night1' if $time >= 1900; |
186
|
|
|
|
|
|
|
return 'night1' if $time < 400; |
187
|
|
|
|
|
|
|
} |
188
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
189
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
190
|
|
|
|
|
|
|
&& $time < 1600; |
191
|
|
|
|
|
|
|
return 'evening1' if $time >= 1600 |
192
|
|
|
|
|
|
|
&& $time < 1900; |
193
|
|
|
|
|
|
|
return 'morning1' if $time >= 400 |
194
|
|
|
|
|
|
|
&& $time < 700; |
195
|
|
|
|
|
|
|
return 'morning2' if $time >= 700 |
196
|
|
|
|
|
|
|
&& $time < 1200; |
197
|
|
|
|
|
|
|
return 'night1' if $time >= 1900; |
198
|
|
|
|
|
|
|
return 'night1' if $time < 400; |
199
|
|
|
|
|
|
|
} |
200
|
|
|
|
|
|
|
last SWITCH; |
201
|
|
|
|
|
|
|
} |
202
|
|
|
|
|
|
|
if ($_ eq 'gregorian') { |
203
|
|
|
|
|
|
|
if($day_period_type eq 'default') { |
204
|
|
|
|
|
|
|
return 'midnight' if $time == 0; |
205
|
|
|
|
|
|
|
return 'noon' if $time == 1200; |
206
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
207
|
|
|
|
|
|
|
&& $time < 1600; |
208
|
|
|
|
|
|
|
return 'evening1' if $time >= 1600 |
209
|
|
|
|
|
|
|
&& $time < 1900; |
210
|
|
|
|
|
|
|
return 'morning1' if $time >= 400 |
211
|
|
|
|
|
|
|
&& $time < 700; |
212
|
|
|
|
|
|
|
return 'morning2' if $time >= 700 |
213
|
|
|
|
|
|
|
&& $time < 1200; |
214
|
|
|
|
|
|
|
return 'night1' if $time >= 1900; |
215
|
|
|
|
|
|
|
return 'night1' if $time < 400; |
216
|
|
|
|
|
|
|
} |
217
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
218
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
219
|
|
|
|
|
|
|
&& $time < 1600; |
220
|
|
|
|
|
|
|
return 'evening1' if $time >= 1600 |
221
|
|
|
|
|
|
|
&& $time < 1900; |
222
|
|
|
|
|
|
|
return 'morning1' if $time >= 400 |
223
|
|
|
|
|
|
|
&& $time < 700; |
224
|
|
|
|
|
|
|
return 'morning2' if $time >= 700 |
225
|
|
|
|
|
|
|
&& $time < 1200; |
226
|
|
|
|
|
|
|
return 'night1' if $time >= 1900; |
227
|
|
|
|
|
|
|
return 'night1' if $time < 400; |
228
|
|
|
|
|
|
|
} |
229
|
|
|
|
|
|
|
last SWITCH; |
230
|
|
|
|
|
|
|
} |
231
|
|
|
|
|
|
|
} |
232
|
|
|
|
|
|
|
} }, |
233
|
|
|
|
|
|
|
); |
234
|
|
|
|
|
|
|
|
235
|
|
|
|
|
|
|
around day_period_data => sub { |
236
|
|
|
|
|
|
|
my ($orig, $self) = @_; |
237
|
|
|
|
|
|
|
return $self->$orig; |
238
|
|
|
|
|
|
|
}; |
239
|
|
|
|
|
|
|
|
240
|
|
|
|
|
|
|
has 'day_periods' => ( |
241
|
|
|
|
|
|
|
is => 'ro', |
242
|
|
|
|
|
|
|
isa => HashRef, |
243
|
|
|
|
|
|
|
init_arg => undef, |
244
|
|
|
|
|
|
|
default => sub { { |
245
|
|
|
|
|
|
|
'gregorian' => { |
246
|
|
|
|
|
|
|
'format' => { |
247
|
|
|
|
|
|
|
'wide' => { |
248
|
|
|
|
|
|
|
'pm' => q{PM}, |
249
|
|
|
|
|
|
|
}, |
250
|
|
|
|
|
|
|
}, |
251
|
|
|
|
|
|
|
}, |
252
|
|
|
|
|
|
|
} }, |
253
|
|
|
|
|
|
|
); |
254
|
|
|
|
|
|
|
|
255
|
|
|
|
|
|
|
has 'eras' => ( |
256
|
|
|
|
|
|
|
is => 'ro', |
257
|
|
|
|
|
|
|
isa => HashRef, |
258
|
|
|
|
|
|
|
init_arg => undef, |
259
|
|
|
|
|
|
|
default => sub { { |
260
|
|
|
|
|
|
|
'generic' => { |
261
|
|
|
|
|
|
|
}, |
262
|
|
|
|
|
|
|
'gregorian' => { |
263
|
|
|
|
|
|
|
}, |
264
|
|
|
|
|
|
|
} }, |
265
|
|
|
|
|
|
|
); |
266
|
|
|
|
|
|
|
|
267
|
|
|
|
|
|
|
has 'date_formats' => ( |
268
|
|
|
|
|
|
|
is => 'ro', |
269
|
|
|
|
|
|
|
isa => HashRef, |
270
|
|
|
|
|
|
|
init_arg => undef, |
271
|
|
|
|
|
|
|
default => sub { { |
272
|
|
|
|
|
|
|
'generic' => { |
273
|
|
|
|
|
|
|
}, |
274
|
|
|
|
|
|
|
'gregorian' => { |
275
|
|
|
|
|
|
|
}, |
276
|
|
|
|
|
|
|
} }, |
277
|
|
|
|
|
|
|
); |
278
|
|
|
|
|
|
|
|
279
|
|
|
|
|
|
|
has 'time_formats' => ( |
280
|
|
|
|
|
|
|
is => 'ro', |
281
|
|
|
|
|
|
|
isa => HashRef, |
282
|
|
|
|
|
|
|
init_arg => undef, |
283
|
|
|
|
|
|
|
default => sub { { |
284
|
|
|
|
|
|
|
'generic' => { |
285
|
|
|
|
|
|
|
}, |
286
|
|
|
|
|
|
|
'gregorian' => { |
287
|
|
|
|
|
|
|
}, |
288
|
|
|
|
|
|
|
} }, |
289
|
|
|
|
|
|
|
); |
290
|
|
|
|
|
|
|
|
291
|
|
|
|
|
|
|
has 'datetime_formats' => ( |
292
|
|
|
|
|
|
|
is => 'ro', |
293
|
|
|
|
|
|
|
isa => HashRef, |
294
|
|
|
|
|
|
|
init_arg => undef, |
295
|
|
|
|
|
|
|
default => sub { { |
296
|
|
|
|
|
|
|
'generic' => { |
297
|
|
|
|
|
|
|
'full' => q{{1} 'saa' {0}}, |
298
|
|
|
|
|
|
|
'long' => q{{1} 'saa' {0}}, |
299
|
|
|
|
|
|
|
'medium' => q{{1}, {0}}, |
300
|
|
|
|
|
|
|
'short' => q{{1}, {0}}, |
301
|
|
|
|
|
|
|
}, |
302
|
|
|
|
|
|
|
'gregorian' => { |
303
|
|
|
|
|
|
|
'full' => q{{1} 'saa' {0}}, |
304
|
|
|
|
|
|
|
'long' => q{{1} 'saa' {0}}, |
305
|
|
|
|
|
|
|
'medium' => q{{1}, {0}}, |
306
|
|
|
|
|
|
|
'short' => q{{1}, {0}}, |
307
|
|
|
|
|
|
|
}, |
308
|
|
|
|
|
|
|
} }, |
309
|
|
|
|
|
|
|
); |
310
|
|
|
|
|
|
|
|
311
|
|
|
|
|
|
|
has 'datetime_formats_available_formats' => ( |
312
|
|
|
|
|
|
|
is => 'ro', |
313
|
|
|
|
|
|
|
isa => HashRef, |
314
|
|
|
|
|
|
|
init_arg => undef, |
315
|
|
|
|
|
|
|
default => sub { { |
316
|
|
|
|
|
|
|
} }, |
317
|
|
|
|
|
|
|
); |
318
|
|
|
|
|
|
|
|
319
|
|
|
|
|
|
|
has 'datetime_formats_append_item' => ( |
320
|
|
|
|
|
|
|
is => 'ro', |
321
|
|
|
|
|
|
|
isa => HashRef, |
322
|
|
|
|
|
|
|
init_arg => undef, |
323
|
|
|
|
|
|
|
default => sub { { |
324
|
|
|
|
|
|
|
} }, |
325
|
|
|
|
|
|
|
); |
326
|
|
|
|
|
|
|
|
327
|
|
|
|
|
|
|
has 'datetime_formats_interval' => ( |
328
|
|
|
|
|
|
|
is => 'ro', |
329
|
|
|
|
|
|
|
isa => HashRef, |
330
|
|
|
|
|
|
|
init_arg => undef, |
331
|
|
|
|
|
|
|
default => sub { { |
332
|
|
|
|
|
|
|
} }, |
333
|
|
|
|
|
|
|
); |
334
|
|
|
|
|
|
|
|
335
|
1
|
|
|
1
|
|
1323
|
no Moo; |
|
1
|
|
|
|
|
21
|
|
|
1
|
|
|
|
|
5
|
|
336
|
|
|
|
|
|
|
|
337
|
|
|
|
|
|
|
1; |
338
|
|
|
|
|
|
|
|
339
|
|
|
|
|
|
|
# vim: tabstop=4 |