File Coverage

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