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