File Coverage

blib/lib/Locale/CLDR/Locales/Ro/Any/Md.pm
Criterion Covered Total %
statement 23 23 100.0
branch n/a
condition n/a
subroutine 8 8 100.0
pod n/a
total 31 31 100.0


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