File Coverage

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


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