File Coverage

blib/lib/Locale/CLDR/Locales/Ro/Any/Md.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::Ro::Any::Md - Package for language Romanian
6              
7             =cut
8              
9             # This file auto generated from Data/common/main/ro_MD.xml
10             # on Mon 11 Apr 5:37:02 pm GMT
11              
12             use strict;
13 1     1   961 use warnings;
  1         2  
  1         23  
14 1     1   4 use version;
  1         1  
  1         22  
15 1     1   3  
  1         2  
  1         11  
16             our $VERSION = version->declare('v0.34.1');
17              
18             use v5.10.1;
19 1     1   93 use mro 'c3';
  1         3  
20 1     1   4 use utf8;
  1         2  
  1         5  
21 1     1   34 use if $^V ge v5.12.0, feature => 'unicode_strings';
  1         2  
  1         6  
22 1     1   36 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         2  
  1         10  
23 1     1   99 use Moo;
  1         1  
  1         7  
24 1     1   897  
  1         2  
  1         5  
25             extends('Locale::CLDR::Locales::Ro::Any');
26             has 'display_name_language' => (
27             is => 'ro',
28             isa => CodeRef,
29             init_arg => undef,
30             default => sub {
31             sub {
32             my %languages = (
33             'sw_CD' => 'swahili (R. D. Congo)',
34             'wal' => 'wolaytta',
35              
36             );
37             if (@_) {
38             return $languages{$_[0]};
39             }
40             return \%languages;
41             }
42             },
43             );
44              
45             has 'display_name_region' => (
46             is => 'ro',
47             isa => HashRef[Str],
48             init_arg => undef,
49             default => sub {
50             {
51             'MM' => 'Myanmar',
52              
53             }
54             },
55             );
56              
57             has 'units' => (
58             is => 'ro',
59             isa => HashRef[HashRef[HashRef[Str]]],
60             init_arg => undef,
61             default => sub { {
62             'narrow' => {
63             'day' => {
64             'few' => q({0}zile),
65             'one' => q({0}zi),
66             'other' => q({0}zile),
67             },
68             'millisecond' => {
69             'few' => q({0}ms),
70             'name' => q(msec),
71             'one' => q({0}ms),
72             'other' => q({0}ms),
73             },
74             'minute' => {
75             'few' => q({0}min.),
76             'name' => q(min),
77             'one' => q({0}min.),
78             'other' => q({0}min.),
79             },
80             'month' => {
81             'few' => q({0}luni),
82             'name' => q(lună),
83             'one' => q({0}lună),
84             'other' => q({0}luni),
85             },
86             'week' => {
87             'few' => q({0}săpt.),
88             'one' => q({0}săpt.),
89             'other' => q({0}săpt.),
90             },
91             'year' => {
92             'few' => q({0}ani),
93             'one' => q({0}an),
94             'other' => q({0}ani),
95             },
96             },
97             'short' => {
98             'millisecond' => {
99             'name' => q(milisec.),
100             },
101             },
102             } }
103             );
104              
105             has 'currencies' => (
106             is => 'ro',
107             isa => HashRef,
108             init_arg => undef,
109             default => sub { {
110             'MDL' => {
111             symbol => 'L',
112             },
113             } },
114             );
115              
116              
117             has 'calendar_days' => (
118             is => 'ro',
119             isa => HashRef,
120             init_arg => undef,
121             default => sub { {
122             'gregorian' => {
123             'format' => {
124             abbreviated => {
125             mon => 'Lun',
126             tue => 'Mar',
127             wed => 'Mie',
128             thu => 'Joi',
129             fri => 'Vin',
130             sat => 'Sâm',
131             sun => 'Dum'
132             },
133             narrow => {
134             mon => 'L',
135             tue => 'Ma',
136             wed => 'Mi',
137             thu => 'J',
138             fri => 'V',
139             sat => 'S',
140             sun => 'D'
141             },
142             short => {
143             mon => 'Lu',
144             tue => 'Ma',
145             wed => 'Mi',
146             thu => 'Jo',
147             fri => 'Vi',
148             sat => 'Sâ',
149             sun => 'Du'
150             },
151             },
152             'stand-alone' => {
153             abbreviated => {
154             mon => 'Lun',
155             tue => 'Mar',
156             wed => 'Mie',
157             thu => 'Joi',
158             fri => 'Vin',
159             sat => 'Sâm',
160             sun => 'Dum'
161             },
162             narrow => {
163             mon => 'L',
164             tue => 'Ma',
165             wed => 'Mi',
166             thu => 'J',
167             fri => 'V',
168             sat => 'S',
169             sun => 'D'
170             },
171             short => {
172             mon => 'Lu',
173             tue => 'Ma',
174             wed => 'Mi',
175             thu => 'Jo',
176             fri => 'Vi',
177             sat => 'Sâ',
178             sun => 'Du'
179             },
180             },
181             },
182             } },
183             );
184              
185             has 'calendar_quarters' => (
186             is => 'ro',
187             isa => HashRef,
188             init_arg => undef,
189             default => sub { {
190             'gregorian' => {
191             'format' => {
192             abbreviated => {0 => 'trim. 1',
193             1 => 'trim. 2',
194             2 => 'trim. 3',
195             3 => 'trim. 4'
196             },
197             wide => {0 => 'trimestrul 1',
198             1 => 'trimestrul 2',
199             2 => 'trimestrul 3',
200             3 => 'trimestrul 4'
201             },
202             },
203             'stand-alone' => {
204             abbreviated => {0 => 'Trim. 1',
205             1 => 'Trim. 2',
206             2 => 'Trim. 3',
207             3 => 'Trim. 4'
208             },
209             wide => {0 => 'Trimestrul 1',
210             1 => 'Trimestrul 2',
211             2 => 'Trimestrul 3',
212             3 => 'Trimestrul 4'
213             },
214             },
215             },
216             } },
217             );
218              
219             has 'day_period_data' => (
220             is => 'ro',
221             isa => CodeRef,
222             init_arg => undef,
223             default => sub { sub {
224             # Time in hhmm format
225             my ($self, $type, $time, $day_period_type) = @_;
226             $day_period_type //= 'default';
227             SWITCH:
228             for ($type) {
229             if ($_ eq 'gregorian') {
230             if($day_period_type eq 'default') {
231             return 'midnight' if $time == 0;
232             return 'noon' if $time == 1200;
233             return 'afternoon1' if $time >= 1200
234             && $time < 1800;
235             return 'evening1' if $time >= 1800
236             && $time < 2200;
237             return 'morning1' if $time >= 500
238             && $time < 1200;
239             return 'night1' if $time >= 2200;
240             return 'night1' if $time < 500;
241             }
242             if($day_period_type eq 'selection') {
243             return 'afternoon1' if $time >= 1200
244             && $time < 1800;
245             return 'evening1' if $time >= 1800
246             && $time < 2200;
247             return 'morning1' if $time >= 500
248             && $time < 1200;
249             return 'night1' if $time >= 2200;
250             return 'night1' if $time < 500;
251             }
252             last SWITCH;
253             }
254             }
255             } },
256             );
257              
258             around day_period_data => sub {
259             my ($orig, $self) = @_;
260             return $self->$orig;
261             };
262              
263             has 'day_periods' => (
264             is => 'ro',
265             isa => HashRef,
266             init_arg => undef,
267             default => sub { {
268             'gregorian' => {
269             'format' => {
270             'narrow' => {
271             'afternoon1' => q{după-amiază},
272             'evening1' => q{seară},
273             'midnight' => q{miezul nopții},
274             'morning1' => q{dimineață},
275             'night1' => q{noapte},
276             'noon' => q{amiază},
277             },
278             'wide' => {
279             'afternoon1' => q{după-amiaza},
280             'evening1' => q{seara},
281             'midnight' => q{miezul nopții},
282             'morning1' => q{dimineața},
283             'night1' => q{noaptea},
284             'noon' => q{amiază},
285             },
286             },
287             'stand-alone' => {
288             'narrow' => {
289             'afternoon1' => q{după-amiază},
290             'evening1' => q{seară},
291             'morning1' => q{dimineață},
292             'night1' => q{noapte},
293             },
294             'wide' => {
295             'midnight' => q{miezul nopții},
296             'noon' => q{amiază},
297             },
298             },
299             },
300             } },
301             );
302              
303             has 'eras' => (
304             is => 'ro',
305             isa => HashRef,
306             init_arg => undef,
307             default => sub { {
308             'gregorian' => {
309             },
310             } },
311             );
312              
313             has 'date_formats' => (
314             is => 'ro',
315             isa => HashRef,
316             init_arg => undef,
317             default => sub { {
318             'gregorian' => {
319             },
320             } },
321             );
322              
323             has 'time_formats' => (
324             is => 'ro',
325             isa => HashRef,
326             init_arg => undef,
327             default => sub { {
328             'gregorian' => {
329             },
330             } },
331             );
332              
333             has 'datetime_formats' => (
334             is => 'ro',
335             isa => HashRef,
336             init_arg => undef,
337             default => sub { {
338             'gregorian' => {
339             },
340             } },
341             );
342              
343             has 'datetime_formats_available_formats' => (
344             is => 'ro',
345             isa => HashRef,
346             init_arg => undef,
347             default => sub { {
348             } },
349             );
350              
351             has 'datetime_formats_append_item' => (
352             is => 'ro',
353             isa => HashRef,
354             init_arg => undef,
355             default => sub { {
356             } },
357             );
358              
359             has 'datetime_formats_interval' => (
360             is => 'ro',
361             isa => HashRef,
362             init_arg => undef,
363             default => sub { {
364             } },
365             );
366              
367             no Moo;
368 1     1   1205  
  1         3  
  1         3  
369             1;
370              
371             # vim: tabstop=4