File Coverage

blib/lib/Locale/CLDR/Locales/Zh/Hans/Mo.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::Zh::Hans::Mo - Package for language Chinese
6              
7             =cut
8              
9             package Locale::CLDR::Locales::Zh::Hans::Mo;
10             # This file auto generated from Data\common\main\zh_Hans_MO.xml
11             # on Fri 17 Jan 12:03:31 pm GMT
12              
13 1     1   2141 use strict;
  1         3  
  1         51  
14 1     1   6 use warnings;
  1         3  
  1         75  
15 1     1   7 use version;
  1         2  
  1         9  
16              
17             our $VERSION = version->declare('v0.46.0');
18              
19 1     1   217 use v5.12.0;
  1         5  
20 1     1   7 use mro 'c3';
  1         4  
  1         9  
21 1     1   56 use utf8;
  1         3  
  1         8  
22 1     1   40 use feature 'unicode_strings';
  1         2  
  1         309  
23 1     1   8 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         3  
  1         13  
24 1     1   3261 use Moo;
  1         3  
  1         8  
25              
26             extends('Locale::CLDR::Locales::Zh::Hans');
27             has 'units' => (
28             is => 'ro',
29             isa => HashRef[HashRef[HashRef[Str]]],
30             init_arg => undef,
31             default => sub { {
32             'long' => {
33             # Long Unit Identifier
34             'concentr-karat' => {
35             'name' => q(开),
36             'other' => q({0}开),
37             },
38             # Core Unit Identifier
39             'karat' => {
40             'name' => q(开),
41             'other' => q({0}开),
42             },
43             # Long Unit Identifier
44             'duration-second' => {
45             'other' => q({0}秒),
46             },
47             # Core Unit Identifier
48             'second' => {
49             'other' => q({0}秒),
50             },
51             # Long Unit Identifier
52             'per' => {
53             '1' => q({0}/{1}),
54             },
55             # Core Unit Identifier
56             'per' => {
57             '1' => q({0}/{1}),
58             },
59             # Long Unit Identifier
60             'temperature-kelvin' => {
61             'name' => q(开氏度),
62             'other' => q({0}开氏度),
63             },
64             # Core Unit Identifier
65             'kelvin' => {
66             'name' => q(开氏度),
67             'other' => q({0}开氏度),
68             },
69             },
70             'narrow' => {
71             # Long Unit Identifier
72             'concentr-karat' => {
73             'other' => q({0}开),
74             },
75             # Core Unit Identifier
76             'karat' => {
77             'other' => q({0}开),
78             },
79             # Long Unit Identifier
80             'length-foot' => {
81             'other' => q({0}英尺),
82             },
83             # Core Unit Identifier
84             'foot' => {
85             'other' => q({0}英尺),
86             },
87             # Long Unit Identifier
88             'length-inch' => {
89             'other' => q({0}英寸),
90             },
91             # Core Unit Identifier
92             'inch' => {
93             'other' => q({0}英寸),
94             },
95             # Long Unit Identifier
96             'length-light-year' => {
97             'other' => q({0}光年),
98             },
99             # Core Unit Identifier
100             'light-year' => {
101             'other' => q({0}光年),
102             },
103             # Long Unit Identifier
104             'length-mile' => {
105             'other' => q({0}英里),
106             },
107             # Core Unit Identifier
108             'mile' => {
109             'other' => q({0}英里),
110             },
111             # Long Unit Identifier
112             'length-picometer' => {
113             'other' => q({0}皮米),
114             },
115             # Core Unit Identifier
116             'picometer' => {
117             'other' => q({0}皮米),
118             },
119             # Long Unit Identifier
120             'length-yard' => {
121             'other' => q({0}码),
122             },
123             # Core Unit Identifier
124             'yard' => {
125             'other' => q({0}码),
126             },
127             },
128             'short' => {
129             # Long Unit Identifier
130             'acceleration-g-force' => {
131             'other' => q({0}G力),
132             },
133             # Core Unit Identifier
134             'g-force' => {
135             'other' => q({0}G力),
136             },
137             # Long Unit Identifier
138             'concentr-karat' => {
139             'name' => q(开),
140             'other' => q({0}开),
141             },
142             # Core Unit Identifier
143             'karat' => {
144             'name' => q(开),
145             'other' => q({0}开),
146             },
147             # Long Unit Identifier
148             'temperature-kelvin' => {
149             'name' => q(开氏度),
150             'other' => q({0}°K),
151             },
152             # Core Unit Identifier
153             'kelvin' => {
154             'name' => q(开氏度),
155             'other' => q({0}°K),
156             },
157             },
158             } }
159             );
160              
161             has 'currencies' => (
162             is => 'ro',
163             isa => HashRef,
164             init_arg => undef,
165             default => sub { {
166             'ANG' => {
167             display_name => {
168             'other' => q(荷兰安的列斯盾),
169             },
170             },
171             'CNY' => {
172             symbol => 'CN¥',
173             },
174             'MOP' => {
175             symbol => 'MOP$',
176             },
177             'NIO' => {
178             display_name => {
179             'other' => q(尼加拉瓜科多巴),
180             },
181             },
182             'XAG' => {
183             display_name => {
184             'currency' => q(白银),
185             'other' => q(白银),
186             },
187             },
188             } },
189             );
190              
191              
192             has 'day_period_data' => (
193             is => 'ro',
194             isa => CodeRef,
195             init_arg => undef,
196             default => sub { sub {
197             # Time in hhmm format
198             my ($self, $type, $time, $day_period_type) = @_;
199             $day_period_type //= 'default';
200             SWITCH:
201             for ($type) {
202             if ($_ eq 'buddhist') {
203             if($day_period_type eq 'default') {
204             return 'midnight' if $time == 0;
205             return 'afternoon1' if $time >= 1200
206             && $time < 1300;
207             return 'afternoon2' if $time >= 1300
208             && $time < 1900;
209             return 'evening1' if $time >= 1900
210             && $time < 2400;
211             return 'morning1' if $time >= 500
212             && $time < 800;
213             return 'morning2' if $time >= 800
214             && $time < 1200;
215             return 'night1' if $time >= 0
216             && $time < 500;
217             }
218             if($day_period_type eq 'selection') {
219             return 'afternoon1' if $time >= 1200
220             && $time < 1300;
221             return 'afternoon2' if $time >= 1300
222             && $time < 1900;
223             return 'evening1' if $time >= 1900
224             && $time < 2400;
225             return 'morning1' if $time >= 500
226             && $time < 800;
227             return 'morning2' if $time >= 800
228             && $time < 1200;
229             return 'night1' if $time >= 0
230             && $time < 500;
231             }
232             last SWITCH;
233             }
234             if ($_ eq 'chinese') {
235             if($day_period_type eq 'default') {
236             return 'midnight' if $time == 0;
237             return 'afternoon1' if $time >= 1200
238             && $time < 1300;
239             return 'afternoon2' if $time >= 1300
240             && $time < 1900;
241             return 'evening1' if $time >= 1900
242             && $time < 2400;
243             return 'morning1' if $time >= 500
244             && $time < 800;
245             return 'morning2' if $time >= 800
246             && $time < 1200;
247             return 'night1' if $time >= 0
248             && $time < 500;
249             }
250             if($day_period_type eq 'selection') {
251             return 'afternoon1' if $time >= 1200
252             && $time < 1300;
253             return 'afternoon2' if $time >= 1300
254             && $time < 1900;
255             return 'evening1' if $time >= 1900
256             && $time < 2400;
257             return 'morning1' if $time >= 500
258             && $time < 800;
259             return 'morning2' if $time >= 800
260             && $time < 1200;
261             return 'night1' if $time >= 0
262             && $time < 500;
263             }
264             last SWITCH;
265             }
266             if ($_ eq 'generic') {
267             if($day_period_type eq 'default') {
268             return 'midnight' if $time == 0;
269             return 'afternoon1' if $time >= 1200
270             && $time < 1300;
271             return 'afternoon2' if $time >= 1300
272             && $time < 1900;
273             return 'evening1' if $time >= 1900
274             && $time < 2400;
275             return 'morning1' if $time >= 500
276             && $time < 800;
277             return 'morning2' if $time >= 800
278             && $time < 1200;
279             return 'night1' if $time >= 0
280             && $time < 500;
281             }
282             if($day_period_type eq 'selection') {
283             return 'afternoon1' if $time >= 1200
284             && $time < 1300;
285             return 'afternoon2' if $time >= 1300
286             && $time < 1900;
287             return 'evening1' if $time >= 1900
288             && $time < 2400;
289             return 'morning1' if $time >= 500
290             && $time < 800;
291             return 'morning2' if $time >= 800
292             && $time < 1200;
293             return 'night1' if $time >= 0
294             && $time < 500;
295             }
296             last SWITCH;
297             }
298             if ($_ eq 'gregorian') {
299             if($day_period_type eq 'default') {
300             return 'midnight' if $time == 0;
301             return 'afternoon1' if $time >= 1200
302             && $time < 1300;
303             return 'afternoon2' if $time >= 1300
304             && $time < 1900;
305             return 'evening1' if $time >= 1900
306             && $time < 2400;
307             return 'morning1' if $time >= 500
308             && $time < 800;
309             return 'morning2' if $time >= 800
310             && $time < 1200;
311             return 'night1' if $time >= 0
312             && $time < 500;
313             }
314             if($day_period_type eq 'selection') {
315             return 'afternoon1' if $time >= 1200
316             && $time < 1300;
317             return 'afternoon2' if $time >= 1300
318             && $time < 1900;
319             return 'evening1' if $time >= 1900
320             && $time < 2400;
321             return 'morning1' if $time >= 500
322             && $time < 800;
323             return 'morning2' if $time >= 800
324             && $time < 1200;
325             return 'night1' if $time >= 0
326             && $time < 500;
327             }
328             last SWITCH;
329             }
330             if ($_ eq 'islamic') {
331             if($day_period_type eq 'default') {
332             return 'midnight' if $time == 0;
333             return 'afternoon1' if $time >= 1200
334             && $time < 1300;
335             return 'afternoon2' if $time >= 1300
336             && $time < 1900;
337             return 'evening1' if $time >= 1900
338             && $time < 2400;
339             return 'morning1' if $time >= 500
340             && $time < 800;
341             return 'morning2' if $time >= 800
342             && $time < 1200;
343             return 'night1' if $time >= 0
344             && $time < 500;
345             }
346             if($day_period_type eq 'selection') {
347             return 'afternoon1' if $time >= 1200
348             && $time < 1300;
349             return 'afternoon2' if $time >= 1300
350             && $time < 1900;
351             return 'evening1' if $time >= 1900
352             && $time < 2400;
353             return 'morning1' if $time >= 500
354             && $time < 800;
355             return 'morning2' if $time >= 800
356             && $time < 1200;
357             return 'night1' if $time >= 0
358             && $time < 500;
359             }
360             last SWITCH;
361             }
362             if ($_ eq 'roc') {
363             if($day_period_type eq 'default') {
364             return 'midnight' if $time == 0;
365             return 'afternoon1' if $time >= 1200
366             && $time < 1300;
367             return 'afternoon2' if $time >= 1300
368             && $time < 1900;
369             return 'evening1' if $time >= 1900
370             && $time < 2400;
371             return 'morning1' if $time >= 500
372             && $time < 800;
373             return 'morning2' if $time >= 800
374             && $time < 1200;
375             return 'night1' if $time >= 0
376             && $time < 500;
377             }
378             if($day_period_type eq 'selection') {
379             return 'afternoon1' if $time >= 1200
380             && $time < 1300;
381             return 'afternoon2' if $time >= 1300
382             && $time < 1900;
383             return 'evening1' if $time >= 1900
384             && $time < 2400;
385             return 'morning1' if $time >= 500
386             && $time < 800;
387             return 'morning2' if $time >= 800
388             && $time < 1200;
389             return 'night1' if $time >= 0
390             && $time < 500;
391             }
392             last SWITCH;
393             }
394             }
395             } },
396             );
397              
398             around day_period_data => sub {
399             my ($orig, $self) = @_;
400             return $self->$orig;
401             };
402              
403             has 'eras' => (
404             is => 'ro',
405             isa => HashRef,
406             init_arg => undef,
407             default => sub { {
408             'buddhist' => {
409             },
410             'chinese' => {
411             },
412             'generic' => {
413             },
414             'gregorian' => {
415             },
416             'islamic' => {
417             },
418             'roc' => {
419             },
420             } },
421             );
422              
423             has 'date_formats' => (
424             is => 'ro',
425             isa => HashRef,
426             init_arg => undef,
427             default => sub { {
428             'buddhist' => {
429             },
430             'chinese' => {
431             'full' => q{U年MMMd日EEEE},
432             'long' => q{U年MMMd日},
433             'medium' => q{U年MMMd日},
434             },
435             'generic' => {
436             'short' => q{d/M/yyGGGGG},
437             },
438             'gregorian' => {
439             'short' => q{d/M/yy},
440             },
441             'islamic' => {
442             'short' => q{Gd/M/yy},
443             },
444             'roc' => {
445             'short' => q{Gd/M/yy},
446             },
447             } },
448             );
449              
450             has 'time_formats' => (
451             is => 'ro',
452             isa => HashRef,
453             init_arg => undef,
454             default => sub { {
455             'buddhist' => {
456             },
457             'chinese' => {
458             },
459             'generic' => {
460             },
461             'gregorian' => {
462             'full' => q{zzzz ah:mm:ss},
463             'long' => q{z ah:mm:ss},
464             'medium' => q{ah:mm:ss},
465             'short' => q{ah:mm},
466             },
467             'islamic' => {
468             },
469             'roc' => {
470             },
471             } },
472             );
473              
474             has 'datetime_formats' => (
475             is => 'ro',
476             isa => HashRef,
477             init_arg => undef,
478             default => sub { {
479             'buddhist' => {
480             },
481             'chinese' => {
482             },
483             'generic' => {
484             },
485             'gregorian' => {
486             },
487             'islamic' => {
488             },
489             'roc' => {
490             },
491             } },
492             );
493              
494             has 'datetime_formats_available_formats' => (
495             is => 'ro',
496             isa => HashRef,
497             init_arg => undef,
498             default => sub { {
499             'generic' => {
500             MEd => q{M-dE},
501             MMMMdd => q{M月d日},
502             MMdd => q{MM-dd},
503             Md => q{M-d},
504             yyyyMEd => q{Gy年M月d日,E},
505             yyyyMd => q{Gy年M月d日},
506             },
507             'gregorian' => {
508             MEd => q{E, d/M},
509             MMMMdd => q{M月d日},
510             MMdd => q{dd/MM},
511             Md => q{d/M},
512             yMEd => q{y年M月d日,E},
513             yMd => q{y年M月d日},
514             },
515             'roc' => {
516             MMM => q{M月},
517             },
518             } },
519             );
520              
521             has 'datetime_formats_append_item' => (
522             is => 'ro',
523             isa => HashRef,
524             init_arg => undef,
525             default => sub { {
526             } },
527             );
528              
529             has 'datetime_formats_interval' => (
530             is => 'ro',
531             isa => HashRef,
532             init_arg => undef,
533             default => sub { {
534             'buddhist' => {
535             Hv => {
536             H => q{vHH–HH},
537             },
538             fallback => '{0}–{1}',
539             },
540             'generic' => {
541             Hmv => {
542             H => q{vHH:mm–HH:mm},
543             m => q{vHH:mm–HH:mm},
544             },
545             Hv => {
546             H => q{vHH–HH},
547             },
548             MEd => {
549             M => q{M-dE至M-dE},
550             d => q{M-dE至M-dE},
551             },
552             MMMEd => {
553             d => q{M月d日E至M月d日E},
554             },
555             Md => {
556             M => q{M-d至M-d},
557             d => q{M-d至M-d},
558             },
559             fallback => '{0}–{1}',
560             yM => {
561             M => q{y年M月至y年M月},
562             },
563             yMEd => {
564             M => q{d/M/yE至d/M/yE},
565             d => q{d/M/yE至d/M/yE},
566             y => q{d/M/yE至d/M/yE},
567             },
568             yMMMEd => {
569             d => q{y年M月d日E至M月d日E},
570             },
571             yMd => {
572             M => q{d/M/y至d/M/y},
573             d => q{d/M/y至d/M/y},
574             y => q{d/M/y至d/M/y},
575             },
576             },
577             'gregorian' => {
578             Hmv => {
579             H => q{vHH:mm–HH:mm},
580             m => q{vHH:mm–HH:mm},
581             },
582             Hv => {
583             H => q{vHH–HH},
584             },
585             MEd => {
586             M => q{M-dE至M-dE},
587             d => q{M-dE至M-dE},
588             },
589             MMMEd => {
590             d => q{M月d日E至M月d日E},
591             },
592             Md => {
593             M => q{M-d至M-d},
594             d => q{M-d至M-d},
595             },
596             d => {
597             d => q{d日至d日},
598             },
599             fallback => '{0}–{1}',
600             yM => {
601             M => q{y年M月至y年M月},
602             },
603             yMEd => {
604             M => q{d/M/yE至d/M/yE},
605             d => q{d/M/yE至d/M/yE},
606             y => q{d/M/yE至d/M/yE},
607             },
608             yMMMEd => {
609             d => q{y年M月d日E至M月d日E},
610             },
611             yMd => {
612             M => q{d/M/y至d/M/y},
613             d => q{d/M/y至d/M/y},
614             y => q{d/M/y至d/M/y},
615             },
616             },
617             } },
618             );
619              
620 1     1   3901 no Moo;
  1         4  
  1         7  
621              
622             1;
623              
624             # vim: tabstop=4