line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
=encoding utf8 |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
Locale::CLDR::Locales::Sv::Any::Fi - Package for language Swedish |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=cut |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# This file auto generated from Data/common/main/sv_FI.xml |
10
|
|
|
|
|
|
|
# on Mon 11 Apr 5:38:51 pm GMT |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
use strict; |
13
|
1
|
|
|
1
|
|
965
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
26
|
|
14
|
1
|
|
|
1
|
|
4
|
use version; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
22
|
|
15
|
1
|
|
|
1
|
|
4
|
|
|
1
|
|
|
|
|
8
|
|
|
1
|
|
|
|
|
6
|
|
16
|
|
|
|
|
|
|
our $VERSION = version->declare('v0.34.1'); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
use v5.10.1; |
19
|
1
|
|
|
1
|
|
82
|
use mro 'c3'; |
|
1
|
|
|
|
|
3
|
|
20
|
1
|
|
|
1
|
|
5
|
use utf8; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
7
|
|
21
|
1
|
|
|
1
|
|
22
|
use if $^V ge v5.12.0, feature => 'unicode_strings'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
22
|
1
|
|
|
1
|
|
36
|
use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef ); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
10
|
|
23
|
1
|
|
|
1
|
|
96
|
use Moo; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
8
|
|
24
|
1
|
|
|
1
|
|
895
|
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
6
|
|
25
|
|
|
|
|
|
|
extends('Locale::CLDR::Locales::Sv::Any'); |
26
|
|
|
|
|
|
|
has 'display_name_language' => ( |
27
|
|
|
|
|
|
|
is => 'ro', |
28
|
|
|
|
|
|
|
isa => CodeRef, |
29
|
|
|
|
|
|
|
init_arg => undef, |
30
|
|
|
|
|
|
|
default => sub { |
31
|
|
|
|
|
|
|
sub { |
32
|
|
|
|
|
|
|
my %languages = ( |
33
|
|
|
|
|
|
|
'ky' => 'kirgiziska', |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
); |
36
|
|
|
|
|
|
|
if (@_) { |
37
|
|
|
|
|
|
|
return $languages{$_[0]}; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
return \%languages; |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
}, |
42
|
|
|
|
|
|
|
); |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
has 'display_name_script' => ( |
45
|
|
|
|
|
|
|
is => 'ro', |
46
|
|
|
|
|
|
|
isa => CodeRef, |
47
|
|
|
|
|
|
|
init_arg => undef, |
48
|
|
|
|
|
|
|
default => sub { |
49
|
|
|
|
|
|
|
sub { |
50
|
|
|
|
|
|
|
my %scripts = ( |
51
|
|
|
|
|
|
|
'Arab@alt=variant' => 'persisk-arabiska', |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
); |
54
|
|
|
|
|
|
|
if ( @_ ) { |
55
|
|
|
|
|
|
|
return $scripts{$_[0]}; |
56
|
|
|
|
|
|
|
} |
57
|
|
|
|
|
|
|
return \%scripts; |
58
|
|
|
|
|
|
|
} |
59
|
|
|
|
|
|
|
} |
60
|
|
|
|
|
|
|
); |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
has 'display_name_key' => ( |
63
|
|
|
|
|
|
|
is => 'ro', |
64
|
|
|
|
|
|
|
isa => HashRef[Str], |
65
|
|
|
|
|
|
|
init_arg => undef, |
66
|
|
|
|
|
|
|
default => sub { |
67
|
|
|
|
|
|
|
{ |
68
|
|
|
|
|
|
|
'timezone' => 'tidszon', |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
} |
71
|
|
|
|
|
|
|
}, |
72
|
|
|
|
|
|
|
); |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
has 'display_name_type' => ( |
75
|
|
|
|
|
|
|
is => 'ro', |
76
|
|
|
|
|
|
|
isa => HashRef[HashRef[Str]], |
77
|
|
|
|
|
|
|
init_arg => undef, |
78
|
|
|
|
|
|
|
default => sub { |
79
|
|
|
|
|
|
|
{ |
80
|
|
|
|
|
|
|
'collation' => { |
81
|
|
|
|
|
|
|
'big5han' => q{kinesiska i big5-sorteringsordning}, |
82
|
|
|
|
|
|
|
'gb2312han' => q{kinesiska i gb2312-sorteringsordning}, |
83
|
|
|
|
|
|
|
'pinyin' => q{kinesiska i pinyin-sorteringsordning}, |
84
|
|
|
|
|
|
|
'stroke' => q{kinesiska i strecksorteringsordning}, |
85
|
|
|
|
|
|
|
}, |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
} |
88
|
|
|
|
|
|
|
}, |
89
|
|
|
|
|
|
|
); |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
has 'characters' => ( |
92
|
|
|
|
|
|
|
is => 'ro', |
93
|
|
|
|
|
|
|
isa => HashRef, |
94
|
|
|
|
|
|
|
init_arg => undef, |
95
|
|
|
|
|
|
|
default => $^V ge v5.18.0 |
96
|
|
|
|
|
|
|
? eval <<'EOT' |
97
|
|
|
|
|
|
|
sub { |
98
|
|
|
|
|
|
|
no warnings 'experimental::regex_sets'; |
99
|
|
|
|
|
|
|
return { |
100
|
|
|
|
|
|
|
main => qr{[a à b c d e é f g h i j k l m n o p q r s t u v x y z å ä ö]}, |
101
|
|
|
|
|
|
|
}; |
102
|
|
|
|
|
|
|
}, |
103
|
|
|
|
|
|
|
EOT |
104
|
|
|
|
|
|
|
: sub { |
105
|
|
|
|
|
|
|
return {}; |
106
|
|
|
|
|
|
|
}, |
107
|
|
|
|
|
|
|
); |
108
|
1
|
|
|
1
|
|
92
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
67
|
|
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
has 'units' => ( |
111
|
|
|
|
|
|
|
is => 'ro', |
112
|
|
|
|
|
|
|
isa => HashRef[HashRef[HashRef[Str]]], |
113
|
|
|
|
|
|
|
init_arg => undef, |
114
|
|
|
|
|
|
|
default => sub { { |
115
|
|
|
|
|
|
|
'narrow' => { |
116
|
|
|
|
|
|
|
'kilometer-per-hour' => { |
117
|
|
|
|
|
|
|
'one' => q({0} km/h), |
118
|
|
|
|
|
|
|
'other' => q({0} km/h), |
119
|
|
|
|
|
|
|
}, |
120
|
|
|
|
|
|
|
}, |
121
|
|
|
|
|
|
|
'short' => { |
122
|
|
|
|
|
|
|
'celsius' => { |
123
|
|
|
|
|
|
|
'name' => q(grader Celsius), |
124
|
|
|
|
|
|
|
}, |
125
|
|
|
|
|
|
|
}, |
126
|
|
|
|
|
|
|
} } |
127
|
|
|
|
|
|
|
); |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
has 'calendar_quarters' => ( |
130
|
|
|
|
|
|
|
is => 'ro', |
131
|
|
|
|
|
|
|
isa => HashRef, |
132
|
|
|
|
|
|
|
init_arg => undef, |
133
|
|
|
|
|
|
|
default => sub { { |
134
|
|
|
|
|
|
|
'gregorian' => { |
135
|
|
|
|
|
|
|
'format' => { |
136
|
|
|
|
|
|
|
abbreviated => {0 => 'Q1', |
137
|
|
|
|
|
|
|
1 => 'Q2', |
138
|
|
|
|
|
|
|
2 => 'Q3', |
139
|
|
|
|
|
|
|
3 => 'Q4' |
140
|
|
|
|
|
|
|
}, |
141
|
|
|
|
|
|
|
}, |
142
|
|
|
|
|
|
|
'stand-alone' => { |
143
|
|
|
|
|
|
|
abbreviated => {0 => 'Q1', |
144
|
|
|
|
|
|
|
1 => 'Q2', |
145
|
|
|
|
|
|
|
2 => 'Q3', |
146
|
|
|
|
|
|
|
3 => 'Q4' |
147
|
|
|
|
|
|
|
}, |
148
|
|
|
|
|
|
|
}, |
149
|
|
|
|
|
|
|
}, |
150
|
|
|
|
|
|
|
} }, |
151
|
|
|
|
|
|
|
); |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
has 'day_period_data' => ( |
154
|
|
|
|
|
|
|
is => 'ro', |
155
|
|
|
|
|
|
|
isa => CodeRef, |
156
|
|
|
|
|
|
|
init_arg => undef, |
157
|
|
|
|
|
|
|
default => sub { sub { |
158
|
|
|
|
|
|
|
# Time in hhmm format |
159
|
|
|
|
|
|
|
my ($self, $type, $time, $day_period_type) = @_; |
160
|
|
|
|
|
|
|
$day_period_type //= 'default'; |
161
|
|
|
|
|
|
|
SWITCH: |
162
|
|
|
|
|
|
|
for ($type) { |
163
|
|
|
|
|
|
|
if ($_ eq 'gregorian') { |
164
|
|
|
|
|
|
|
if($day_period_type eq 'default') { |
165
|
|
|
|
|
|
|
return 'midnight' if $time == 0; |
166
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
167
|
|
|
|
|
|
|
&& $time < 1800; |
168
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
169
|
|
|
|
|
|
|
&& $time < 2400; |
170
|
|
|
|
|
|
|
return 'morning1' if $time >= 500 |
171
|
|
|
|
|
|
|
&& $time < 1000; |
172
|
|
|
|
|
|
|
return 'morning2' if $time >= 1000 |
173
|
|
|
|
|
|
|
&& $time < 1200; |
174
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
175
|
|
|
|
|
|
|
&& $time < 500; |
176
|
|
|
|
|
|
|
} |
177
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
178
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
179
|
|
|
|
|
|
|
&& $time < 1800; |
180
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
181
|
|
|
|
|
|
|
&& $time < 2400; |
182
|
|
|
|
|
|
|
return 'morning1' if $time >= 500 |
183
|
|
|
|
|
|
|
&& $time < 1000; |
184
|
|
|
|
|
|
|
return 'morning2' if $time >= 1000 |
185
|
|
|
|
|
|
|
&& $time < 1200; |
186
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
187
|
|
|
|
|
|
|
&& $time < 500; |
188
|
|
|
|
|
|
|
} |
189
|
|
|
|
|
|
|
last SWITCH; |
190
|
|
|
|
|
|
|
} |
191
|
|
|
|
|
|
|
} |
192
|
|
|
|
|
|
|
} }, |
193
|
|
|
|
|
|
|
); |
194
|
|
|
|
|
|
|
|
195
|
|
|
|
|
|
|
around day_period_data => sub { |
196
|
|
|
|
|
|
|
my ($orig, $self) = @_; |
197
|
|
|
|
|
|
|
return $self->$orig; |
198
|
|
|
|
|
|
|
}; |
199
|
|
|
|
|
|
|
|
200
|
|
|
|
|
|
|
has 'eras' => ( |
201
|
|
|
|
|
|
|
is => 'ro', |
202
|
|
|
|
|
|
|
isa => HashRef, |
203
|
|
|
|
|
|
|
init_arg => undef, |
204
|
|
|
|
|
|
|
default => sub { { |
205
|
|
|
|
|
|
|
'gregorian' => { |
206
|
|
|
|
|
|
|
}, |
207
|
|
|
|
|
|
|
} }, |
208
|
|
|
|
|
|
|
); |
209
|
|
|
|
|
|
|
|
210
|
|
|
|
|
|
|
has 'date_formats' => ( |
211
|
|
|
|
|
|
|
is => 'ro', |
212
|
|
|
|
|
|
|
isa => HashRef, |
213
|
|
|
|
|
|
|
init_arg => undef, |
214
|
|
|
|
|
|
|
default => sub { { |
215
|
|
|
|
|
|
|
'gregorian' => { |
216
|
|
|
|
|
|
|
'short' => q{dd-MM-y}, |
217
|
|
|
|
|
|
|
}, |
218
|
|
|
|
|
|
|
} }, |
219
|
|
|
|
|
|
|
); |
220
|
|
|
|
|
|
|
|
221
|
|
|
|
|
|
|
has 'time_formats' => ( |
222
|
|
|
|
|
|
|
is => 'ro', |
223
|
|
|
|
|
|
|
isa => HashRef, |
224
|
|
|
|
|
|
|
init_arg => undef, |
225
|
|
|
|
|
|
|
default => sub { { |
226
|
|
|
|
|
|
|
'gregorian' => { |
227
|
|
|
|
|
|
|
}, |
228
|
|
|
|
|
|
|
} }, |
229
|
|
|
|
|
|
|
); |
230
|
|
|
|
|
|
|
|
231
|
|
|
|
|
|
|
has 'datetime_formats' => ( |
232
|
|
|
|
|
|
|
is => 'ro', |
233
|
|
|
|
|
|
|
isa => HashRef, |
234
|
|
|
|
|
|
|
init_arg => undef, |
235
|
|
|
|
|
|
|
default => sub { { |
236
|
|
|
|
|
|
|
'gregorian' => { |
237
|
|
|
|
|
|
|
}, |
238
|
|
|
|
|
|
|
} }, |
239
|
|
|
|
|
|
|
); |
240
|
|
|
|
|
|
|
|
241
|
|
|
|
|
|
|
has 'datetime_formats_available_formats' => ( |
242
|
|
|
|
|
|
|
is => 'ro', |
243
|
|
|
|
|
|
|
isa => HashRef, |
244
|
|
|
|
|
|
|
init_arg => undef, |
245
|
|
|
|
|
|
|
default => sub { { |
246
|
|
|
|
|
|
|
} }, |
247
|
|
|
|
|
|
|
); |
248
|
|
|
|
|
|
|
|
249
|
|
|
|
|
|
|
has 'datetime_formats_append_item' => ( |
250
|
|
|
|
|
|
|
is => 'ro', |
251
|
|
|
|
|
|
|
isa => HashRef, |
252
|
|
|
|
|
|
|
init_arg => undef, |
253
|
|
|
|
|
|
|
default => sub { { |
254
|
|
|
|
|
|
|
} }, |
255
|
|
|
|
|
|
|
); |
256
|
|
|
|
|
|
|
|
257
|
|
|
|
|
|
|
has 'datetime_formats_interval' => ( |
258
|
|
|
|
|
|
|
is => 'ro', |
259
|
|
|
|
|
|
|
isa => HashRef, |
260
|
|
|
|
|
|
|
init_arg => undef, |
261
|
|
|
|
|
|
|
default => sub { { |
262
|
|
|
|
|
|
|
} }, |
263
|
|
|
|
|
|
|
); |
264
|
|
|
|
|
|
|
|
265
|
|
|
|
|
|
|
no Moo; |
266
|
1
|
|
|
1
|
|
1080
|
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
4
|
|
267
|
|
|
|
|
|
|
1; |
268
|
|
|
|
|
|
|
|
269
|
|
|
|
|
|
|
# vim: tabstop=4 |