File Coverage

blib/lib/Locale/CLDR/Locales/Es/Any/Pa.pm
Criterion Covered Total %
statement 23 23 100.0
branch n/a
condition n/a
subroutine 8 8 100.0
pod n/a
total 31 31 100.0


line stmt bran cond sub pod time code
1             =head1
2              
3             Locale::CLDR::Locales::Es::Any::Pa - Package for language Spanish
4              
5             =cut
6              
7             package Locale::CLDR::Locales::Es::Any::Pa;
8             # This file auto generated from Data\common\main\es_PA.xml
9             # on Sun 24 Apr 8:25:46 am GMT
10              
11 1     1   1590 use version;
  1         3  
  1         10  
12              
13             our $VERSION = version->declare('v0.29.0');
14              
15 1     1   132 use v5.10.1;
  1         4  
16 1     1   7 use mro 'c3';
  1         3  
  1         10  
17 1     1   62 use utf8;
  1         7  
  1         10  
18 1     1   47 use if $^V ge v5.12.0, feature => 'unicode_strings';
  1         2  
  1         17  
19              
20 1     1   146 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         6  
  1         13  
21 1     1   1402 use Moo;
  1         2  
  1         9  
22              
23             extends('Locale::CLDR::Locales::Es::Any::419');
24             has 'currencies' => (
25             is => 'ro',
26             isa => HashRef,
27             init_arg => undef,
28             default => sub { {
29             'PAB' => {
30             symbol => 'B/.',
31             },
32             } },
33             );
34              
35              
36             has 'calendar_months' => (
37             is => 'ro',
38             isa => HashRef,
39             init_arg => undef,
40             default => sub { {
41             'gregorian' => {
42             'format' => {
43             narrow => {
44             nonleap => [
45             'E',
46             'F',
47             'M',
48             'A',
49             'M',
50             'J',
51             'J',
52             'A',
53             'S',
54             'O',
55             'N',
56             'D'
57             ],
58             leap => [
59            
60             ],
61             },
62             },
63             'stand-alone' => {
64             narrow => {
65             nonleap => [
66             'E',
67             'F',
68             'M',
69             'A',
70             'M',
71             'J',
72             'J',
73             'A',
74             'S',
75             'O',
76             'N',
77             'D'
78             ],
79             leap => [
80            
81             ],
82             },
83             },
84             },
85             } },
86             );
87              
88             has 'calendar_quarters' => (
89             is => 'ro',
90             isa => HashRef,
91             init_arg => undef,
92             default => sub { {
93             'gregorian' => {
94             'format' => {
95             wide => {0 => '1er. trimestre',
96             1 => '2do. trimestre',
97             2 => '3er. trimestre',
98             3 => '4.º trimestre'
99             },
100             },
101             'stand-alone' => {
102             wide => {0 => '1er. trimestre',
103             1 => '2do. trimestre',
104             2 => '3er. trimestre',
105             3 => '4.º trimestre'
106             },
107             },
108             },
109             } },
110             );
111              
112             has 'day_period_data' => (
113             is => 'ro',
114             isa => CodeRef,
115             init_arg => undef,
116             default => sub { sub {
117             # Time in hhmm format
118             my ($self, $type, $time, $day_period_type) = @_;
119             $day_period_type //= 'default';
120             SWITCH:
121             for ($type) {
122             if ($_ eq 'gregorian') {
123             if($day_period_type eq 'default') {
124             return 'noon' if $time == 1200;
125             return 'evening1' if $time >= 1200
126             && $time < 2000;
127             return 'night1' if $time >= 2000
128             && $time < 2400;
129             return 'morning2' if $time >= 600
130             && $time < 1200;
131             return 'morning1' if $time >= 0
132             && $time < 600;
133             }
134             if($day_period_type eq 'selection') {
135             return 'night1' if $time >= 2000
136             && $time < 2400;
137             return 'morning2' if $time >= 600
138             && $time < 1200;
139             return 'morning1' if $time >= 0
140             && $time < 600;
141             return 'evening1' if $time >= 1200
142             && $time < 2000;
143             }
144             last SWITCH;
145             }
146             if ($_ eq 'generic') {
147             if($day_period_type eq 'default') {
148             return 'noon' if $time == 1200;
149             return 'evening1' if $time >= 1200
150             && $time < 2000;
151             return 'night1' if $time >= 2000
152             && $time < 2400;
153             return 'morning2' if $time >= 600
154             && $time < 1200;
155             return 'morning1' if $time >= 0
156             && $time < 600;
157             }
158             if($day_period_type eq 'selection') {
159             return 'night1' if $time >= 2000
160             && $time < 2400;
161             return 'morning2' if $time >= 600
162             && $time < 1200;
163             return 'morning1' if $time >= 0
164             && $time < 600;
165             return 'evening1' if $time >= 1200
166             && $time < 2000;
167             }
168             last SWITCH;
169             }
170             }
171             } },
172             );
173              
174             around day_period_data => sub {
175             my ($orig, $self) = @_;
176             return $self->$orig;
177             };
178              
179             has 'day_periods' => (
180             is => 'ro',
181             isa => HashRef,
182             init_arg => undef,
183             default => sub { {
184             'gregorian' => {
185             'format' => {
186             'abbreviated' => {
187             'night1' => q{de la noche},
188             'morning2' => q{de la mañana},
189             'morning1' => q{de la madrugada},
190             'noon' => q{mediodía},
191             'evening1' => q{de la tarde},
192             },
193             'wide' => {
194             'noon' => q{mediodía},
195             'evening1' => q{de la tarde},
196             'morning1' => q{de la madrugada},
197             'morning2' => q{de la mañana},
198             'night1' => q{de la noche},
199             },
200             },
201             },
202             } },
203             );
204              
205             has 'eras' => (
206             is => 'ro',
207             isa => HashRef,
208             init_arg => undef,
209             default => sub { {
210             'generic' => {
211             },
212             'gregorian' => {
213             },
214             } },
215             );
216              
217             has 'date_formats' => (
218             is => 'ro',
219             isa => HashRef,
220             init_arg => undef,
221             default => sub { {
222             'generic' => {
223             'medium' => q{MM/dd/y G},
224             'short' => q{MM/dd/yy GGGGG},
225             },
226             'gregorian' => {
227             'medium' => q{MM/dd/y},
228             'short' => q{MM/dd/yy},
229             },
230             } },
231             );
232              
233             has 'time_formats' => (
234             is => 'ro',
235             isa => HashRef,
236             init_arg => undef,
237             default => sub { {
238             'generic' => {
239             },
240             'gregorian' => {
241             'full' => q{h:mm:ss a zzzz},
242             'long' => q{h:mm:ss a z},
243             'medium' => q{h:mm:ss a},
244             'short' => q{h:mm a},
245             },
246             } },
247             );
248              
249             has 'datetime_formats' => (
250             is => 'ro',
251             isa => HashRef,
252             init_arg => undef,
253             default => sub { {
254             'generic' => {
255             },
256             'gregorian' => {
257             },
258             } },
259             );
260              
261             has 'datetime_formats_available_formats' => (
262             is => 'ro',
263             isa => HashRef,
264             init_arg => undef,
265             default => sub { {
266             'generic' => {
267             MEd => q{E, MM/dd},
268             Md => q{MM/dd},
269             yM => q{MM/y},
270             yMEd => q{E MM/dd/y},
271             yMd => q{MM/dd/y},
272             },
273             'gregorian' => {
274             MEd => q{E, MM/dd},
275             Md => q{MM/dd},
276             yM => q{MM/y},
277             yMEd => q{E MM/dd/y},
278             yMMM => q{MMM y},
279             yMMMd => q{d MMM y},
280             yMd => q{MM/dd/y},
281             },
282             } },
283             );
284              
285             has 'datetime_formats_append_item' => (
286             is => 'ro',
287             isa => HashRef,
288             init_arg => undef,
289             default => sub { {
290             } },
291             );
292              
293             has 'datetime_formats_interval' => (
294             is => 'ro',
295             isa => HashRef,
296             init_arg => undef,
297             default => sub { {
298             'generic' => {
299             Hm => {
300             H => q{HH:mm–HH:mm},
301             m => q{HH:mm–HH:mm},
302             },
303             Hmv => {
304             H => q{HH:mm–HH:mm v},
305             m => q{HH:mm–HH:mm v},
306             },
307             MMMEd => {
308             M => q{E d 'de' MMM 'al' E d 'de' MMM},
309             d => q{E d 'al' E d 'de' MMM},
310             },
311             MMMd => {
312             M => q{d 'de' MMM 'al' d 'de' MMM},
313             },
314             fallback => '{0} a el {1}',
315             hm => {
316             h => q{h:mm–h:mm a},
317             m => q{h:mm–h:mm a},
318             },
319             hmv => {
320             h => q{h:mm–h:mm a v},
321             m => q{h:mm–h:mm a v},
322             },
323             y => {
324             y => q{y–y},
325             },
326             yMMM => {
327             M => q{MMM–MMM 'de' y},
328             y => q{MMM 'de' y 'a' MMM 'de' y},
329             },
330             yMMMEd => {
331             M => q{E d 'de' MMM 'al' E d 'de' MMM 'de' y},
332             d => q{E d 'al' E d 'de' MMM 'de' y},
333             y => q{E d 'de' MMM 'de' y 'al' E d 'de' MMM 'de' y},
334             },
335             yMMMd => {
336             M => q{d 'de' MMM 'al' d 'de' MMM 'de' y},
337             d => q{d–d 'de' MMM 'de' y},
338             y => q{d 'de' MMM 'de' y 'al' d 'de' MMM 'de' y},
339             },
340             },
341             'gregorian' => {
342             MMMEd => {
343             M => q{E d 'de' MMM 'al' E d 'de' MMM},
344             d => q{E d 'al' E d 'de' MMM},
345             },
346             MMMd => {
347             M => q{d 'de' MMM 'al' d 'de' MMM},
348             },
349             yM => {
350             M => q{MM/y – MM/y},
351             y => q{MM/y – MM/y},
352             },
353             yMMM => {
354             y => q{MMM 'de' y 'a' MMM 'de' y},
355             },
356             yMMMEd => {
357             M => q{E d 'de' MMM 'al' E d 'de' MMM 'de' y},
358             d => q{E d 'al' E d 'de' MMM 'de' y},
359             y => q{E d 'de' MMM 'de' y 'al' E d 'de' MMM 'de' y},
360             },
361             yMMMd => {
362             M => q{d 'de' MMM 'al' d 'de' MMM 'de' y},
363             y => q{d 'de' MMM 'de' y 'al' d 'de' MMM 'de' y},
364             },
365             },
366             } },
367             );
368              
369 1     1   4650 no Moo;
  1         3  
  1         8  
370              
371             1;
372              
373             # vim: tabstop=4