File Coverage

blib/lib/Locale/CLDR/Locales/Es/Any/Py.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 NAME
4              
5             Locale::CLDR::Locales::Es::Any::Py - Package for language Spanish
6              
7             =cut
8              
9             package Locale::CLDR::Locales::Es::Any::Py;
10             # This file auto generated from Data\common\main\es_PY.xml
11             # on Fri 13 Oct 9:14:13 am GMT
12              
13 1     1   923 use strict;
  1         2  
  1         26  
14 1     1   4 use warnings;
  1         3  
  1         20  
15 1     1   4 use version;
  1         2  
  1         5  
16              
17             our $VERSION = version->declare('v0.34.2');
18              
19 1     1   86 use v5.10.1;
  1         3  
20 1     1   5 use mro 'c3';
  1         1  
  1         5  
21 1     1   31 use utf8;
  1         2  
  1         6  
22 1     1   41 use if $^V ge v5.12.0, feature => 'unicode_strings';
  1         2  
  1         11  
23 1     1   84 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         2  
  1         5  
24 1     1   878 use Moo;
  1         2  
  1         5  
25              
26             extends('Locale::CLDR::Locales::Es::Any::419');
27             has 'display_name_language' => (
28             is => 'ro',
29             isa => CodeRef,
30             init_arg => undef,
31             default => sub {
32             sub {
33             my %languages = (
34             'ace' => 'acehnés',
35             'arp' => 'arapaho',
36             'bho' => 'bhojpuri',
37             'eu' => 'euskera',
38             'grc' => 'griego antiguo',
39             'lo' => 'lao',
40             'nso' => 'sotho septentrional',
41             'pa' => 'punyabí',
42             'ss' => 'siswati',
43             'sw' => 'suajili',
44             'sw_CD' => 'suajili del Congo',
45             'tn' => 'setswana',
46             'wo' => 'wolof',
47             'zgh' => 'tamazight marroquí estándar',
48              
49             );
50             if (@_) {
51             return $languages{$_[0]};
52             }
53             return \%languages;
54             }
55             },
56             );
57              
58             has 'display_name_region' => (
59             is => 'ro',
60             isa => HashRef[Str],
61             init_arg => undef,
62             default => sub {
63             {
64             'BA' => 'Bosnia y Herzegovina',
65             'GB@alt=short' => 'RU',
66             'TA' => 'Tristán de Acuña',
67             'TL' => 'Timor-Leste',
68             'UM' => 'Islas menores alejadas de EE. UU.',
69              
70             }
71             },
72             );
73              
74             has 'units' => (
75             is => 'ro',
76             isa => HashRef[HashRef[HashRef[Str]]],
77             init_arg => undef,
78             default => sub { {
79             'long' => {
80             'ampere' => {
81             'name' => q(amperios),
82             'one' => q({0} amperio),
83             'other' => q({0} amperios),
84             },
85             'milliampere' => {
86             'name' => q(miliamperios),
87             'one' => q({0} miliamperio),
88             'other' => q({0} miliamperios),
89             },
90             'ohm' => {
91             'one' => q({0} ohmio),
92             'other' => q({0} ohmios),
93             },
94             'volt' => {
95             'one' => q({0} voltio),
96             'other' => q({0} voltios),
97             },
98             'year' => {
99             'per' => q({0}/año),
100             },
101             },
102             'narrow' => {
103             'day' => {
104             'name' => q(día),
105             },
106             'month' => {
107             'name' => q(mes),
108             },
109             'year' => {
110             'name' => q(año),
111             },
112             },
113             'short' => {
114             'day' => {
115             'name' => q(días),
116             'one' => q({0} día),
117             'other' => q({0} días),
118             'per' => q({0}/día),
119             },
120             'month' => {
121             'name' => q(meses),
122             'one' => q({0} mes),
123             'other' => q({0} meses),
124             'per' => q({0}/mes),
125             },
126             'second' => {
127             'name' => q(seg.),
128             'one' => q({0} seg.),
129             'other' => q({0} seg.),
130             'per' => q({0}/seg.),
131             },
132             'volt' => {
133             'name' => q(voltios),
134             },
135             'watt' => {
136             'name' => q(vatios),
137             },
138             'year' => {
139             'name' => q(años),
140             'one' => q({0} año),
141             'other' => q({0} años),
142             'per' => q({0}/año),
143             },
144             },
145             } }
146             );
147              
148             has 'listPatterns' => (
149             is => 'ro',
150             isa => HashRef,
151             init_arg => undef,
152             default => sub { {
153             end => q({0} y {1}),
154             } }
155             );
156              
157             has 'number_symbols' => (
158             is => 'ro',
159             isa => HashRef,
160             init_arg => undef,
161             default => sub { {
162             'latn' => {
163             'decimal' => q(,),
164             'group' => q(.),
165             },
166             } }
167             );
168              
169             has 'number_currency_formats' => (
170             is => 'ro',
171             isa => HashRef,
172             init_arg => undef,
173             default => sub { {
174             'latn' => {
175             'pattern' => {
176             'default' => {
177             'standard' => {
178             'negative' => '¤ -#,##0.00',
179             'positive' => '¤ #,##0.00',
180             },
181             },
182             },
183             },
184             } },
185             );
186              
187             has 'currencies' => (
188             is => 'ro',
189             isa => HashRef,
190             init_arg => undef,
191             default => sub { {
192             'PYG' => {
193             symbol => 'Gs.',
194             },
195             } },
196             );
197              
198              
199             has 'calendar_months' => (
200             is => 'ro',
201             isa => HashRef,
202             init_arg => undef,
203             default => sub { {
204             'gregorian' => {
205             'format' => {
206             abbreviated => {
207             nonleap => [
208             'ene.',
209             'feb.',
210             'mar.',
211             'abr.',
212             'may.',
213             'jun.',
214             'jul.',
215             'ago.',
216             'sept.',
217             'oct.',
218             'nov.',
219             'dic.'
220             ],
221             leap => [
222            
223             ],
224             },
225             },
226             'stand-alone' => {
227             abbreviated => {
228             nonleap => [
229             'ene.',
230             'feb.',
231             'mar.',
232             'abr.',
233             'may.',
234             'jun.',
235             'jul.',
236             'ago.',
237             'sept.',
238             'oct.',
239             'nov.',
240             'dic.'
241             ],
242             leap => [
243            
244             ],
245             },
246             },
247             },
248             } },
249             );
250              
251             has 'calendar_days' => (
252             is => 'ro',
253             isa => HashRef,
254             init_arg => undef,
255             default => sub { {
256             'gregorian' => {
257             'format' => {
258             short => {
259             mon => 'lu',
260             tue => 'ma',
261             wed => 'mi',
262             thu => 'ju',
263             fri => 'vi',
264             sat => 'sa',
265             sun => 'do'
266             },
267             },
268             'stand-alone' => {
269             short => {
270             mon => 'Lu',
271             tue => 'Ma',
272             wed => 'Mi',
273             thu => 'Ju',
274             fri => 'Vi',
275             sat => 'Sa',
276             sun => 'Do'
277             },
278             },
279             },
280             } },
281             );
282              
283             has 'day_period_data' => (
284             is => 'ro',
285             isa => CodeRef,
286             init_arg => undef,
287             default => sub { sub {
288             # Time in hhmm format
289             my ($self, $type, $time, $day_period_type) = @_;
290             $day_period_type //= 'default';
291             SWITCH:
292             for ($type) {
293             if ($_ eq 'gregorian') {
294             if($day_period_type eq 'default') {
295             return 'noon' if $time == 1200;
296             return 'evening1' if $time >= 1200
297             && $time < 2000;
298             return 'morning1' if $time >= 0
299             && $time < 600;
300             return 'morning2' if $time >= 600
301             && $time < 1200;
302             return 'night1' if $time >= 2000
303             && $time < 2400;
304             }
305             if($day_period_type eq 'selection') {
306             return 'evening1' if $time >= 1200
307             && $time < 2000;
308             return 'morning1' if $time >= 0
309             && $time < 600;
310             return 'morning2' if $time >= 600
311             && $time < 1200;
312             return 'night1' if $time >= 2000
313             && $time < 2400;
314             }
315             last SWITCH;
316             }
317             }
318             } },
319             );
320              
321             around day_period_data => sub {
322             my ($orig, $self) = @_;
323             return $self->$orig;
324             };
325              
326             has 'day_periods' => (
327             is => 'ro',
328             isa => HashRef,
329             init_arg => undef,
330             default => sub { {
331             'gregorian' => {
332             'format' => {
333             'abbreviated' => {
334             'am' => q{a. m.},
335             'pm' => q{p. m.},
336             },
337             'wide' => {
338             'am' => q{a. m.},
339             'pm' => q{p. m.},
340             },
341             },
342             'stand-alone' => {
343             'abbreviated' => {
344             'am' => q{a. m.},
345             'pm' => q{p. m.},
346             },
347             'narrow' => {
348             'am' => q{a. m.},
349             'noon' => q{m.},
350             'pm' => q{p. m.},
351             },
352             'wide' => {
353             'am' => q{a. m.},
354             'pm' => q{p. m.},
355             },
356             },
357             },
358             } },
359             );
360              
361             has 'eras' => (
362             is => 'ro',
363             isa => HashRef,
364             init_arg => undef,
365             default => sub { {
366             'gregorian' => {
367             },
368             } },
369             );
370              
371             has 'date_formats' => (
372             is => 'ro',
373             isa => HashRef,
374             init_arg => undef,
375             default => sub { {
376             'gregorian' => {
377             },
378             } },
379             );
380              
381             has 'time_formats' => (
382             is => 'ro',
383             isa => HashRef,
384             init_arg => undef,
385             default => sub { {
386             'gregorian' => {
387             },
388             } },
389             );
390              
391             has 'datetime_formats' => (
392             is => 'ro',
393             isa => HashRef,
394             init_arg => undef,
395             default => sub { {
396             'gregorian' => {
397             },
398             } },
399             );
400              
401             has 'datetime_formats_available_formats' => (
402             is => 'ro',
403             isa => HashRef,
404             init_arg => undef,
405             default => sub { {
406             } },
407             );
408              
409             has 'datetime_formats_append_item' => (
410             is => 'ro',
411             isa => HashRef,
412             init_arg => undef,
413             default => sub { {
414             } },
415             );
416              
417             has 'datetime_formats_interval' => (
418             is => 'ro',
419             isa => HashRef,
420             init_arg => undef,
421             default => sub { {
422             'gregorian' => {
423             Md => {
424             M => q{d/M 'al' d/M},
425             d => q{d/M 'al' d/M},
426             },
427             h => {
428             a => q{h a 'a' h a},
429             h => q{h 'a' h a},
430             },
431             hm => {
432             a => q{h:mm a 'a' h:mm a},
433             h => q{h:mm 'a' h:mm a},
434             m => q{h:mm 'a' h:mm a},
435             },
436             yMMM => {
437             M => q{MMM 'a' MMM y},
438             y => q{MMM 'de' y 'a' MMM 'de' y},
439             },
440             yMMMM => {
441             M => q{MMMM 'a' MMMM 'de' y},
442             y => q{MMMM 'de' y 'a' MMMM 'de' y},
443             },
444             yMMMd => {
445             M => q{d 'de' MMM 'al' d 'de' MMM 'de' y},
446             },
447             yMd => {
448             M => q{d/M/y 'al' d/M/y},
449             d => q{d/M/y 'al' d/M/y},
450             y => q{d/M/y 'al' d/M/y},
451             },
452             },
453             } },
454             );
455              
456 1     1   1518 no Moo;
  1         3  
  1         4  
457              
458             1;
459              
460             # vim: tabstop=4