File Coverage

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