File Coverage

blib/lib/Locale/CLDR/Locales/Tpi.pm
Criterion Covered Total %
statement 32 32 100.0
branch n/a
condition n/a
subroutine 11 11 100.0
pod n/a
total 43 43 100.0


line stmt bran cond sub pod time code
1             =encoding utf8
2              
3             =head1 NAME
4              
5             Locale::CLDR::Locales::Tpi - Package for language Tok Pisin
6              
7             =cut
8              
9             package Locale::CLDR::Locales::Tpi;
10             # This file auto generated from Data\common\main\tpi.xml
11             # on Fri 17 Jan 12:03:31 pm GMT
12              
13 1     1   1693669 use strict;
  1         1  
  1         34  
14 1     1   4 use warnings;
  1         1  
  1         43  
15 1     1   4 use version;
  1         1  
  1         11  
16              
17             our $VERSION = version->declare('v0.46.0');
18              
19 1     1   114 use v5.12.0;
  1         4  
20 1     1   4 use mro 'c3';
  1         2  
  1         6  
21 1     1   21 use utf8;
  1         1  
  1         7  
22 1     1   40 use feature 'unicode_strings';
  1         2  
  1         134  
23 1     1   8 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         4  
  1         10  
24 1     1   1926 use Moo;
  1         5  
  1         7  
25              
26             extends('Locale::CLDR::Locales::Root');
27             has 'display_name_language' => (
28             is => 'ro',
29             isa => CodeRef,
30             init_arg => undef,
31             default => sub {
32             sub {
33             my %languages = (
34             'de' => 'Jeman',
35             'de_AT' => 'Austria Jeman',
36             'de_CH' => 'Swis Jeman',
37             'en' => 'Inglis',
38             'en_AU' => 'Australian Inglis',
39             'en_CA' => 'Kenedien Inglis',
40             'en_GB' => 'Britis Inglis',
41             'en_US' => 'Amerikan Inglis',
42             'es' => 'Spenis',
43             'es_419' => 'Saut Amerikan Spenis',
44             'es_ES' => 'Spenis (Spein)',
45             'es_MX' => 'Meksikan Spenis',
46             'fr' => 'Frens',
47             'fr_CA' => 'Kenedien Frens',
48             'fr_CH' => 'Swis Frens',
49             'it' => 'Italien',
50             'ja' => 'Japanis',
51             'pt' => 'Potigis',
52             'pt_BR' => 'Brasilien Potigis',
53             'pt_PT' => 'Yurop Potigis',
54             'ru' => 'Rasien',
55             'tpi' => 'Tok Pisin',
56             'und' => 'Tok ples i no stap',
57             'zh' => 'Sainis',
58             'zh_Hans' => 'Isipela Sainis',
59             'zh_Hant' => 'Tredisinol Sainis',
60              
61             );
62             if (@_) {
63             return $languages{$_[0]};
64             }
65             return \%languages;
66             }
67             },
68             );
69              
70             has 'display_name_script' => (
71             is => 'ro',
72             isa => CodeRef,
73             init_arg => undef,
74             default => sub {
75             sub {
76             my %scripts = (
77             'Arab' => 'Arabik',
78             'Cyrl' => 'Syrilik',
79             'Hans' => 'Han (isipela)',
80             'Hant' => 'Han (tredisinol)',
81             'Latn' => 'Latin',
82             'Zxxx' => 'Tok i no raitim yet',
83             'Zzzz' => 'Tok i no gat kod yet',
84              
85             );
86             if ( @_ ) {
87             return $scripts{$_[0]};
88             }
89             return \%scripts;
90             }
91             }
92             );
93              
94             has 'display_name_region' => (
95             is => 'ro',
96             isa => HashRef[Str],
97             init_arg => undef,
98             default => sub {
99             {
100             'BR' => 'Brasil',
101             'CN' => 'Saina',
102             'DE' => 'Jemani',
103             'FR' => 'Frans',
104             'GB' => 'Yunaited Kingdom',
105             'IN' => 'India',
106             'IT' => 'Itali',
107             'PG' => 'Papua Niugini',
108             'ZZ' => 'Rijen i no stap',
109              
110             }
111             },
112             );
113              
114             has 'display_name_type' => (
115             is => 'ro',
116             isa => HashRef[HashRef[Str]],
117             init_arg => undef,
118             default => sub {
119             {
120             'calendar' => {
121             'gregorian' => q{Gregorien kalenda},
122             },
123             'cf' => {
124             'standard' => q{stendet karensi fomet},
125             },
126             'collation' => {
127             'standard' => q{stendet oda bilong skelim},
128             },
129             'numbers' => {
130             'latn' => q{westen namba},
131             },
132              
133             }
134             },
135             );
136              
137             has 'display_name_code_patterns' => (
138             is => 'ro',
139             isa => HashRef[Str],
140             init_arg => undef,
141             default => sub {
142             {
143             'language' => 'tok ples: {0}',
144             'script' => 'skript: {0}',
145             'region' => 'rijen: {0}',
146              
147             }
148             },
149             );
150              
151             has 'characters' => (
152             is => 'ro',
153             isa => HashRef,
154             init_arg => undef,
155             default => $^V ge v5.18.0
156             ? eval <<'EOT'
157             sub {
158             no warnings 'experimental::regex_sets';
159             return {
160             auxiliary => qr{[c q v x z]},
161             index => ['A', 'B', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'R', 'S', 'T', 'U', 'W', 'Y'],
162             main => qr{[a b d e f g h i j k l m n o p r s t u w y]},
163             };
164             },
165             EOT
166             : sub {
167             return { index => ['A', 'B', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'R', 'S', 'T', 'U', 'W', 'Y'], };
168             },
169 1     1   209 );
  1         2  
  1         202  
170              
171              
172             has 'number_currency_formats' => (
173             is => 'ro',
174             isa => HashRef,
175             init_arg => undef,
176             default => sub { {
177             'latn' => {
178             'pattern' => {
179             'default' => {
180             'standard' => {
181             'positive' => '#,##0.00 ¤',
182             },
183             },
184             },
185             },
186             } },
187             );
188              
189             has 'calendar_months' => (
190             is => 'ro',
191             isa => HashRef,
192             init_arg => undef,
193             default => sub { {
194             'gregorian' => {
195             'format' => {
196             abbreviated => {
197             nonleap => [
198             'Jan',
199             'Feb',
200             'Mas',
201             'Epr',
202             'Me',
203             'Jun',
204             'Jul',
205             'Oga',
206             'Sep',
207             'Okt',
208             'Nov',
209             'Des'
210             ],
211             leap => [
212            
213             ],
214             },
215             wide => {
216             nonleap => [
217             'Janueri',
218             'Februeri',
219             'Mas',
220             'Epril',
221             'Me',
222             'Jun',
223             'Julai',
224             'Ogas',
225             'Septemba',
226             'Oktoba',
227             'Novemba',
228             'Desemba'
229             ],
230             leap => [
231            
232             ],
233             },
234             },
235             },
236             } },
237             );
238              
239             has 'calendar_days' => (
240             is => 'ro',
241             isa => HashRef,
242             init_arg => undef,
243             default => sub { {
244             'gregorian' => {
245             'format' => {
246             abbreviated => {
247             mon => 'Man',
248             tue => 'Tun',
249             wed => 'Tri',
250             thu => 'Fon',
251             fri => 'Fra',
252             sat => 'Sar',
253             sun => 'San'
254             },
255             wide => {
256             mon => 'Mande',
257             tue => 'Tunde',
258             wed => 'Trinde',
259             thu => 'Fonde',
260             fri => 'Fraide',
261             sat => 'Sarere',
262             sun => 'Sande'
263             },
264             },
265             },
266             } },
267             );
268              
269             has 'eras' => (
270             is => 'ro',
271             isa => HashRef,
272             init_arg => undef,
273             default => sub { {
274             'gregorian' => {
275             },
276             } },
277             );
278              
279             has 'date_formats' => (
280             is => 'ro',
281             isa => HashRef,
282             init_arg => undef,
283             default => sub { {
284             'gregorian' => {
285             'full' => q{EEE, dd MMMM y},
286             'long' => q{dd MMMM y},
287             'medium' => q{dd MMM y},
288             'short' => q{dd/MM/yy},
289             },
290             } },
291             );
292              
293             has 'time_formats' => (
294             is => 'ro',
295             isa => HashRef,
296             init_arg => undef,
297             default => sub { {
298             'gregorian' => {
299             'full' => q{hh:mm:ss a zzzz},
300             'long' => q{hh:mm:ss a zzz},
301             'medium' => q{hh:mm:ss a},
302             'short' => q{hh:mm a},
303             },
304             } },
305             );
306              
307             has 'datetime_formats' => (
308             is => 'ro',
309             isa => HashRef,
310             init_arg => undef,
311             default => sub { {
312             'gregorian' => {
313             },
314             } },
315             );
316              
317             has 'datetime_formats_available_formats' => (
318             is => 'ro',
319             isa => HashRef,
320             init_arg => undef,
321             default => sub { {
322             'gregorian' => {
323             yMMMd => q{d MMM y},
324             yMd => q{d/M/y},
325             },
326             } },
327             );
328              
329             has 'datetime_formats_append_item' => (
330             is => 'ro',
331             isa => HashRef,
332             init_arg => undef,
333             default => sub { {
334             } },
335             );
336              
337             has 'datetime_formats_interval' => (
338             is => 'ro',
339             isa => HashRef,
340             init_arg => undef,
341             default => sub { {
342             } },
343             );
344              
345 1     1   1541 no Moo;
  1         1  
  1         5  
346              
347             1;
348              
349             # vim: tabstop=4