File Coverage

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