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 17 Jan 12:03:31 pm GMT
12              
13 1     1   1784 use strict;
  1         3  
  1         46  
14 1     1   5 use warnings;
  1         3  
  1         64  
15 1     1   6 use version;
  1         4  
  1         9  
16              
17             our $VERSION = version->declare('v0.46.0');
18              
19 1     1   137 use v5.12.0;
  1         4  
20 1     1   5 use mro 'c3';
  1         3  
  1         23  
21 1     1   130 use utf8;
  1         2  
  1         10  
22 1     1   48 use feature 'unicode_strings';
  1         17  
  1         180  
23 1     1   9 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         1  
  1         13  
24 1     1   3061 use Moo;
  1         3  
  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             'xh' => 'isikosa',
45             'zgh' => 'standardni marokanski tamašek',
46             'zu' => 'isizulu',
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             'BY' => 'Bjelorusija',
64             'CG' => 'Kongo',
65             'CZ' => 'Češka Republika',
66             'DE' => 'Njemačka',
67             'KN' => 'Sveti Kits i Nevis',
68             'PM' => 'Sveti Pjer i Mikelon',
69             'RE' => 'Reunion',
70             'UM' => 'Manja udaljena ostrva SAD',
71             'VC' => 'Sveti Vinsent i Grenadini',
72             'VG' => 'Britanska Djevičanska Ostrva',
73             'VI' => 'Američka Djevičanska Ostrva',
74              
75             }
76             },
77             );
78              
79             has 'calendar_months' => (
80             is => 'ro',
81             isa => HashRef,
82             init_arg => undef,
83             default => sub { {
84             'gregorian' => {
85             'format' => {
86             abbreviated => {
87             nonleap => [
88             'jan',
89             'feb',
90             'mart',
91             'apr',
92             'maj',
93             'jun',
94             'jul',
95             'avg',
96             'sept',
97             'okt',
98             'nov',
99             'dec'
100             ],
101             leap => [
102            
103             ],
104             },
105             },
106             },
107             } },
108             );
109              
110             has 'calendar_days' => (
111             is => 'ro',
112             isa => HashRef,
113             init_arg => undef,
114             default => sub { {
115             'gregorian' => {
116             'format' => {
117             wide => {
118             mon => 'ponedeljak',
119             tue => 'utorak',
120             wed => 'srijeda',
121             thu => 'četvrtak',
122             fri => 'petak',
123             sat => 'subota',
124             sun => 'nedjelja'
125             },
126             },
127             },
128             } },
129             );
130              
131             has 'day_period_data' => (
132             is => 'ro',
133             isa => CodeRef,
134             init_arg => undef,
135             default => sub { sub {
136             # Time in hhmm format
137             my ($self, $type, $time, $day_period_type) = @_;
138             $day_period_type //= 'default';
139             SWITCH:
140             for ($type) {
141             if ($_ eq 'generic') {
142             if($day_period_type eq 'default') {
143             return 'midnight' if $time == 0;
144             return 'noon' if $time == 1200;
145             return 'afternoon1' if $time >= 1200
146             && $time < 1800;
147             return 'evening1' if $time >= 1800
148             && $time < 2100;
149             return 'morning1' if $time >= 600
150             && $time < 1200;
151             return 'night1' if $time >= 2100;
152             return 'night1' if $time < 600;
153             }
154             if($day_period_type eq 'selection') {
155             return 'afternoon1' if $time >= 1200
156             && $time < 1800;
157             return 'evening1' if $time >= 1800
158             && $time < 2100;
159             return 'morning1' if $time >= 600
160             && $time < 1200;
161             return 'night1' if $time >= 2100;
162             return 'night1' if $time < 600;
163             }
164             last SWITCH;
165             }
166             if ($_ eq 'gregorian') {
167             if($day_period_type eq 'default') {
168             return 'midnight' if $time == 0;
169             return 'noon' if $time == 1200;
170             return 'afternoon1' if $time >= 1200
171             && $time < 1800;
172             return 'evening1' if $time >= 1800
173             && $time < 2100;
174             return 'morning1' if $time >= 600
175             && $time < 1200;
176             return 'night1' if $time >= 2100;
177             return 'night1' if $time < 600;
178             }
179             if($day_period_type eq 'selection') {
180             return 'afternoon1' if $time >= 1200
181             && $time < 1800;
182             return 'evening1' if $time >= 1800
183             && $time < 2100;
184             return 'morning1' if $time >= 600
185             && $time < 1200;
186             return 'night1' if $time >= 2100;
187             return 'night1' if $time < 600;
188             }
189             last SWITCH;
190             }
191             }
192             } },
193             );
194              
195             around day_period_data => sub {
196             my ($orig, $self) = @_;
197             return $self->$orig;
198             };
199              
200             has 'day_periods' => (
201             is => 'ro',
202             isa => HashRef,
203             init_arg => undef,
204             default => sub { {
205             'gregorian' => {
206             'format' => {
207             'abbreviated' => {
208             'afternoon1' => q{po pod.},
209             'am' => q{prije podne},
210             'evening1' => q{veče},
211             'midnight' => q{ponoć},
212             'morning1' => q{jutro},
213             'night1' => q{noću},
214             'noon' => q{podne},
215             'pm' => q{po podne},
216             },
217             'narrow' => {
218             'afternoon1' => q{po pod.},
219             'evening1' => q{veče},
220             'midnight' => q{ponoć},
221             'morning1' => q{jutro},
222             'night1' => q{noć},
223             'noon' => q{podne},
224             },
225             'wide' => {
226             'am' => q{prije podne},
227             'pm' => q{po podne},
228             },
229             },
230             'stand-alone' => {
231             'narrow' => {
232             'am' => q{a},
233             'pm' => q{p},
234             },
235             'wide' => {
236             'am' => q{prije podne},
237             'pm' => q{po podne},
238             },
239             },
240             },
241             } },
242             );
243              
244             has 'eras' => (
245             is => 'ro',
246             isa => HashRef,
247             init_arg => undef,
248             default => sub { {
249             'generic' => {
250             },
251             'gregorian' => {
252             wide => {
253             '0' => 'prije nove ere'
254             },
255             },
256             } },
257             );
258              
259             has 'date_formats' => (
260             is => 'ro',
261             isa => HashRef,
262             init_arg => undef,
263             default => sub { {
264             'generic' => {
265             },
266             'gregorian' => {
267             },
268             } },
269             );
270              
271             has 'time_formats' => (
272             is => 'ro',
273             isa => HashRef,
274             init_arg => undef,
275             default => sub { {
276             'generic' => {
277             },
278             'gregorian' => {
279             },
280             } },
281             );
282              
283             has 'datetime_formats' => (
284             is => 'ro',
285             isa => HashRef,
286             init_arg => undef,
287             default => sub { {
288             'generic' => {
289             },
290             'gregorian' => {
291             },
292             } },
293             );
294              
295             has 'datetime_formats_available_formats' => (
296             is => 'ro',
297             isa => HashRef,
298             init_arg => undef,
299             default => sub { {
300             'gregorian' => {
301             MMMMW => q{W. 'sjedmica' 'u' MMMM},
302             yw => q{w. 'sjedmica' 'u' Y.},
303             },
304             } },
305             );
306              
307             has 'datetime_formats_append_item' => (
308             is => 'ro',
309             isa => HashRef,
310             init_arg => undef,
311             default => sub { {
312             } },
313             );
314              
315             has 'datetime_formats_interval' => (
316             is => 'ro',
317             isa => HashRef,
318             init_arg => undef,
319             default => sub { {
320             'generic' => {
321             MMMEd => {
322             M => q{E, d. MMM – E, d. MMM},
323             d => q{E, d. MMM – E, d. MMM},
324             },
325             },
326             } },
327             );
328              
329 1     1   3914 no Moo;
  1         3  
  1         6  
330              
331             1;
332              
333             # vim: tabstop=4