File Coverage

blib/lib/Locale/CLDR/Locales/Sr/Latn/Me.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::Sr::Latn::Me - Package for language Serbian
6              
7             =cut
8              
9             package Locale::CLDR::Locales::Sr::Latn::Me;
10             # This file auto generated from Data\common\main\sr_Latn_ME.xml
11             # on Sun 16 Dec 4:38:19 pm GMT
12              
13 1     1   1391 use strict;
  1         11  
  1         29  
14 1     1   4 use warnings;
  1         3  
  1         30  
15 1     1   5 use version;
  1         2  
  1         9  
16              
17             our $VERSION = version->declare('v0.34.0');
18              
19 1     1   97 use v5.10.1;
  1         3  
20 1     1   6 use mro 'c3';
  1         2  
  1         8  
21 1     1   60 use utf8;
  1         2  
  1         8  
22 1     1   32 use if $^V ge v5.12.0, feature => 'unicode_strings';
  1         2  
  1         15  
23 1     1   122 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         2  
  1         11  
24 1     1   1076 use Moo;
  1         60  
  1         8  
25              
26             extends('Locale::CLDR::Locales::Sr::Latn');
27             has 'display_name_language' => (
28             is => 'ro',
29             isa => CodeRef,
30             init_arg => undef,
31             default => sub {
32             sub {
33             my %languages = (
34             'arn' => 'mapudungun',
35             'be' => 'bjeloruski',
36             'bm' => 'bamanankan',
37             'bn' => 'bangla',
38             'ff' => 'fulah',
39             'ht' => 'haićanski kreolski',
40             'lo' => 'laoÅ¡ki',
41             'moh' => 'mohok',
42             'nqo' => 'n’ko',
43             'shi' => 'južni Å¡ilha',
44             'tzm' => 'centralnoatlaski tamaÅ¡ek',
45             'xh' => 'isikosa',
46             'zgh' => 'standardni marokanski tamaÅ¡ek',
47             'zu' => 'isizulu',
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             'BY' => 'Bjelorusija',
65             'CG' => 'Kongo',
66             'CZ' => 'ÄŒeÅ¡ka Republika',
67             'DE' => 'Njemačka',
68             'KN' => 'Sveti Kits i Nevis',
69             'MK@alt=variant' => 'BJR Makedonija',
70             'PM' => 'Sveti Pjer i Mikelon',
71             'RE' => 'Reunion',
72             'UM' => 'Manja udaljena ostrva SAD',
73             'VC' => 'Sveti Vinsent i Grenadini',
74             'VG' => 'Britanska Djevičanska Ostrva',
75             'VI' => 'Američka Djevičanska Ostrva',
76              
77             }
78             },
79             );
80              
81             has 'calendar_months' => (
82             is => 'ro',
83             isa => HashRef,
84             init_arg => undef,
85             default => sub { {
86             'gregorian' => {
87             'format' => {
88             abbreviated => {
89             nonleap => [
90             'jan.',
91             'feb.',
92             'mart',
93             'apr.',
94             'maj',
95             'jun',
96             'jul',
97             'avg.',
98             'sept.',
99             'okt.',
100             'nov.',
101             'dec.'
102             ],
103             leap => [
104            
105             ],
106             },
107             },
108             'stand-alone' => {
109             abbreviated => {
110             nonleap => [
111             'jan.',
112             'feb.',
113             'mart',
114             'apr.',
115             'maj',
116             'jun',
117             'jul',
118             'avg.',
119             'sept.',
120             'okt.',
121             'nov.',
122             'dec.'
123             ],
124             leap => [
125            
126             ],
127             },
128             },
129             },
130             } },
131             );
132              
133             has 'calendar_days' => (
134             is => 'ro',
135             isa => HashRef,
136             init_arg => undef,
137             default => sub { {
138             'gregorian' => {
139             'format' => {
140             abbreviated => {
141             mon => 'pon.',
142             tue => 'ut.',
143             wed => 'sr.',
144             thu => 'čet.',
145             fri => 'pet.',
146             sat => 'sub.',
147             sun => 'ned.'
148             },
149             wide => {
150             mon => 'ponedeljak',
151             tue => 'utorak',
152             wed => 'srijeda',
153             thu => 'četvrtak',
154             fri => 'petak',
155             sat => 'subota',
156             sun => 'nedjelja'
157             },
158             },
159             'stand-alone' => {
160             abbreviated => {
161             mon => 'pon.',
162             tue => 'ut.',
163             wed => 'sr.',
164             thu => 'čet.',
165             fri => 'pet.',
166             sat => 'sub.',
167             sun => 'ned.'
168             },
169             wide => {
170             mon => 'ponedeljak',
171             tue => 'utorak',
172             wed => 'srijeda',
173             thu => 'četvrtak',
174             fri => 'petak',
175             sat => 'subota',
176             sun => 'nedjelja'
177             },
178             },
179             },
180             } },
181             );
182              
183             has 'day_period_data' => (
184             is => 'ro',
185             isa => CodeRef,
186             init_arg => undef,
187             default => sub { sub {
188             # Time in hhmm format
189             my ($self, $type, $time, $day_period_type) = @_;
190             $day_period_type //= 'default';
191             SWITCH:
192             for ($type) {
193             if ($_ eq 'generic') {
194             if($day_period_type eq 'default') {
195             return 'noon' if $time == 1200;
196             return 'midnight' if $time == 0;
197             return 'morning1' if $time >= 600
198             && $time < 1200;
199             return 'afternoon1' if $time >= 1200
200             && $time < 1800;
201             return 'night1' if $time >= 2100;
202             return 'night1' if $time < 600;
203             return 'evening1' if $time >= 1800
204             && $time < 2100;
205             }
206             if($day_period_type eq 'selection') {
207             return 'evening1' if $time >= 1800
208             && $time < 2100;
209             return 'night1' if $time >= 2100;
210             return 'night1' if $time < 600;
211             return 'morning1' if $time >= 600
212             && $time < 1200;
213             return 'afternoon1' if $time >= 1200
214             && $time < 1800;
215             }
216             last SWITCH;
217             }
218             if ($_ eq 'gregorian') {
219             if($day_period_type eq 'default') {
220             return 'noon' if $time == 1200;
221             return 'midnight' if $time == 0;
222             return 'morning1' if $time >= 600
223             && $time < 1200;
224             return 'afternoon1' if $time >= 1200
225             && $time < 1800;
226             return 'night1' if $time >= 2100;
227             return 'night1' if $time < 600;
228             return 'evening1' if $time >= 1800
229             && $time < 2100;
230             }
231             if($day_period_type eq 'selection') {
232             return 'evening1' if $time >= 1800
233             && $time < 2100;
234             return 'night1' if $time >= 2100;
235             return 'night1' if $time < 600;
236             return 'morning1' if $time >= 600
237             && $time < 1200;
238             return 'afternoon1' if $time >= 1200
239             && $time < 1800;
240             }
241             last SWITCH;
242             }
243             }
244             } },
245             );
246              
247             around day_period_data => sub {
248             my ($orig, $self) = @_;
249             return $self->$orig;
250             };
251              
252             has 'day_periods' => (
253             is => 'ro',
254             isa => HashRef,
255             init_arg => undef,
256             default => sub { {
257             'gregorian' => {
258             'format' => {
259             'abbreviated' => {
260             'am' => q{prije podne},
261             'noon' => q{podne},
262             'pm' => q{po podne},
263             'afternoon1' => q{po pod.},
264             'morning1' => q{jutro},
265             'night1' => q{noću},
266             'evening1' => q{veče},
267             'midnight' => q{ponoć},
268             },
269             'wide' => {
270             'pm' => q{po podne},
271             'am' => q{prije podne},
272             },
273             'narrow' => {
274             'night1' => q{noć},
275             'evening1' => q{veče},
276             'noon' => q{podne},
277             'midnight' => q{ponoć},
278             'morning1' => q{jutro},
279             'afternoon1' => q{po pod.},
280             },
281             },
282             'stand-alone' => {
283             'wide' => {
284             'pm' => q{po podne},
285             'am' => q{prije podne},
286             },
287             'narrow' => {
288             'am' => q{a},
289             'pm' => q{p},
290             },
291             'abbreviated' => {
292             'pm' => q{po podne},
293             'am' => q{prije podne},
294             },
295             },
296             },
297             } },
298             );
299              
300             has 'eras' => (
301             is => 'ro',
302             isa => HashRef,
303             init_arg => undef,
304             default => sub { {
305             'generic' => {
306             },
307             'gregorian' => {
308             wide => {
309             '0' => 'prije nove ere'
310             },
311             },
312             } },
313             );
314              
315             has 'date_formats' => (
316             is => 'ro',
317             isa => HashRef,
318             init_arg => undef,
319             default => sub { {
320             'generic' => {
321             },
322             'gregorian' => {
323             },
324             } },
325             );
326              
327             has 'time_formats' => (
328             is => 'ro',
329             isa => HashRef,
330             init_arg => undef,
331             default => sub { {
332             'generic' => {
333             },
334             'gregorian' => {
335             },
336             } },
337             );
338              
339             has 'datetime_formats' => (
340             is => 'ro',
341             isa => HashRef,
342             init_arg => undef,
343             default => sub { {
344             'generic' => {
345             },
346             'gregorian' => {
347             },
348             } },
349             );
350              
351             has 'datetime_formats_available_formats' => (
352             is => 'ro',
353             isa => HashRef,
354             init_arg => undef,
355             default => sub { {
356             'gregorian' => {
357             MMMMW => q{W. 'sjedmica' 'u' MMM},
358             yw => q{w. 'sjedmica' 'u' Y.},
359             },
360             } },
361             );
362              
363             has 'datetime_formats_append_item' => (
364             is => 'ro',
365             isa => HashRef,
366             init_arg => undef,
367             default => sub { {
368             } },
369             );
370              
371             has 'datetime_formats_interval' => (
372             is => 'ro',
373             isa => HashRef,
374             init_arg => undef,
375             default => sub { {
376             'generic' => {
377             MMMEd => {
378             M => q{E, d. MMM – E, d. MMM},
379             d => q{E, d. MMM – E, d. MMM},
380             },
381             },
382             } },
383             );
384              
385 1     1   1482 no Moo;
  1         2  
  1         5  
386              
387             1;
388              
389             # vim: tabstop=4