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 NAME
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 Fri 13 Oct 9:42:14 am GMT
12              
13 1     1   1134 use strict;
  1         3  
  1         29  
14 1     1   4 use warnings;
  1         27  
  1         33  
15 1     1   6 use version;
  1         2  
  1         6  
16              
17             our $VERSION = version->declare('v0.34.2');
18              
19 1     1   95 use v5.10.1;
  1         3  
20 1     1   5 use mro 'c3';
  1         1  
  1         7  
21 1     1   21 use utf8;
  1         11  
  1         7  
22 1     1   93 use if $^V ge v5.12.0, feature => 'unicode_strings';
  1         2  
  1         13  
23 1     1   103 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         2  
  1         6  
24 1     1   953 use Moo;
  1         2  
  1         5  
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 'midnight' if $time == 0;
196             return 'noon' if $time == 1200;
197             return 'afternoon1' if $time >= 1200
198             && $time < 1800;
199             return 'evening1' if $time >= 1800
200             && $time < 2100;
201             return 'morning1' if $time >= 600
202             && $time < 1200;
203             return 'night1' if $time >= 2100;
204             return 'night1' if $time < 600;
205             }
206             if($day_period_type eq 'selection') {
207             return 'afternoon1' if $time >= 1200
208             && $time < 1800;
209             return 'evening1' if $time >= 1800
210             && $time < 2100;
211             return 'morning1' if $time >= 600
212             && $time < 1200;
213             return 'night1' if $time >= 2100;
214             return 'night1' if $time < 600;
215             }
216             last SWITCH;
217             }
218             if ($_ eq 'gregorian') {
219             if($day_period_type eq 'default') {
220             return 'midnight' if $time == 0;
221             return 'noon' if $time == 1200;
222             return 'afternoon1' if $time >= 1200
223             && $time < 1800;
224             return 'evening1' if $time >= 1800
225             && $time < 2100;
226             return 'morning1' if $time >= 600
227             && $time < 1200;
228             return 'night1' if $time >= 2100;
229             return 'night1' if $time < 600;
230             }
231             if($day_period_type eq 'selection') {
232             return 'afternoon1' if $time >= 1200
233             && $time < 1800;
234             return 'evening1' if $time >= 1800
235             && $time < 2100;
236             return 'morning1' if $time >= 600
237             && $time < 1200;
238             return 'night1' if $time >= 2100;
239             return 'night1' if $time < 600;
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             'afternoon1' => q{po pod.},
261             'am' => q{prije podne},
262             'evening1' => q{veče},
263             'midnight' => q{ponoć},
264             'morning1' => q{jutro},
265             'night1' => q{noću},
266             'noon' => q{podne},
267             'pm' => q{po podne},
268             },
269             'narrow' => {
270             'afternoon1' => q{po pod.},
271             'evening1' => q{veče},
272             'midnight' => q{ponoć},
273             'morning1' => q{jutro},
274             'night1' => q{noć},
275             'noon' => q{podne},
276             },
277             'wide' => {
278             'am' => q{prije podne},
279             'pm' => q{po podne},
280             },
281             },
282             'stand-alone' => {
283             'abbreviated' => {
284             'am' => q{prije podne},
285             'pm' => q{po podne},
286             },
287             'narrow' => {
288             'am' => q{a},
289             'pm' => q{p},
290             },
291             'wide' => {
292             'am' => q{prije podne},
293             'pm' => q{po 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   1435 no Moo;
  1         3  
  1         11  
386              
387             1;
388              
389             # vim: tabstop=4