File Coverage

blib/lib/Locale/CLDR/Locales/Pa/Arab.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
4              
5             Locale::CLDR::Locales::Pa::Arab - Package for language Punjabi
6              
7             =cut
8              
9             # This file auto generated from Data/common/main/pa_Arab.xml
10             # on Mon 11 Apr 5:36:11 pm GMT
11              
12             use strict;
13 1     1   753 use warnings;
  1         1  
  1         22  
14 1     1   4 use version;
  1         1  
  1         17  
15 1     1   3  
  1         2  
  1         3  
16             our $VERSION = version->declare('v0.34.1');
17              
18             use v5.10.1;
19 1     1   72 use mro 'c3';
  1         4  
20 1     1   3 use utf8;
  1         2  
  1         4  
21 1     1   31 use if $^V ge v5.12.0, feature => 'unicode_strings';
  1         2  
  1         3  
22 1     1   34 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         2  
  1         9  
23 1     1   81 use Moo;
  1         1  
  1         12  
24 1     1   824  
  1         2  
  1         3  
25             extends('Locale::CLDR::Locales::Pa');
26             has 'display_name_language' => (
27             is => 'ro',
28             isa => CodeRef,
29             init_arg => undef,
30             default => sub {
31             sub {
32             my %languages = (
33             'pa' => 'پنجابی',
34              
35             );
36             if (@_) {
37             return $languages{$_[0]};
38             }
39             return \%languages;
40             }
41             },
42             );
43              
44             has 'display_name_script' => (
45             is => 'ro',
46             isa => CodeRef,
47             init_arg => undef,
48             default => sub {
49             sub {
50             my %scripts = (
51             'Arab' => 'عربی',
52             'Guru' => 'گُرمُکھی',
53              
54             );
55             if ( @_ ) {
56             return $scripts{$_[0]};
57             }
58             return \%scripts;
59             }
60             }
61             );
62              
63             has 'display_name_region' => (
64             is => 'ro',
65             isa => HashRef[Str],
66             init_arg => undef,
67             default => sub {
68             {
69             'PK' => 'پاکستان',
70              
71             }
72             },
73             );
74              
75             has 'text_orientation' => (
76             is => 'ro',
77             isa => HashRef[Str],
78             init_arg => undef,
79             default => sub { return {
80             lines => '',
81             characters => 'right-to-left',
82             }}
83             );
84              
85             has 'characters' => (
86             is => 'ro',
87             isa => HashRef,
88             init_arg => undef,
89             default => $^V ge v5.18.0
90             ? eval <<'EOT'
91             sub {
92             no warnings 'experimental::regex_sets';
93             return {
94             auxiliary => qr{[‎‏ أ ٻ ة ٺ ټ ٽ]},
95             index => ['ء', 'آ', 'ؤ', 'ئ', 'ا', 'ب', 'پ', 'ت', 'ث', 'ٹ', 'ج', 'چ', 'ح', 'خ', 'د', 'ذ', 'ڈ', 'ر', 'ز', 'ڑ', 'ژ', 'س', 'ش', 'ص', 'ض', 'ط', 'ظ', 'ع', 'غ', 'ف', 'ق', 'ک', 'گ', 'ل', 'م', 'ن', 'ں', 'ه', 'ھ', 'ہ', 'و', 'ی', 'ے'],
96             main => qr{[ُ ء آ ؤ ئ ا ب پ ت ث ٹ ج چ ح خ د ذ ڈ ر ز ڑ ژ س ش ص ض ط ظ ع غ ف ق ک گ ل م ن ں ه ھ ہ و ی ے]},
97             numbers => qr{[‎ \- , . % ‰ + 0 1 2 3 4 5 6 7 8 9]},
98             };
99             },
100             EOT
101             : sub {
102             return { index => ['ء', 'آ', 'ؤ', 'ئ', 'ا', 'ب', 'پ', 'ت', 'ث', 'ٹ', 'ج', 'چ', 'ح', 'خ', 'د', 'ذ', 'ڈ', 'ر', 'ز', 'ڑ', 'ژ', 'س', 'ش', 'ص', 'ض', 'ط', 'ظ', 'ع', 'غ', 'ف', 'ق', 'ک', 'گ', 'ل', 'م', 'ن', 'ں', 'ه', 'ھ', 'ہ', 'و', 'ی', 'ے'], };
103             },
104             );
105 1     1   90  
  1         2  
  1         151  
106              
107             has 'yesstr' => (
108             is => 'ro',
109             isa => RegexpRef,
110             init_arg => undef,
111             default => sub { qr'^(?i:ہاں|yes|y)$' }
112             );
113              
114             has 'nostr' => (
115             is => 'ro',
116             isa => RegexpRef,
117             init_arg => undef,
118             default => sub { qr'^(?i:نہيں|no|n)$' }
119             );
120              
121             has 'default_numbering_system' => (
122             is => 'ro',
123             isa => Str,
124             init_arg => undef,
125             default => 'arabext',
126             );
127              
128             has native_numbering_system => (
129             is => 'ro',
130             isa => Str,
131             init_arg => undef,
132             default => 'arabext',
133             );
134              
135             has 'number_symbols' => (
136             is => 'ro',
137             isa => HashRef,
138             init_arg => undef,
139             default => sub { {
140             'latn' => {
141             'minusSign' => q(‎-),
142             'plusSign' => q(‎+),
143             },
144             } }
145             );
146              
147             has 'currencies' => (
148             is => 'ro',
149             isa => HashRef,
150             init_arg => undef,
151             default => sub { {
152             'EUR' => {
153             display_name => {
154             'currency' => q(يورو),
155             },
156             },
157             'INR' => {
158             display_name => {
159             'currency' => q(روپئیہ [INR]),
160             },
161             },
162             'PKR' => {
163             symbol => 'ر',
164             display_name => {
165             'currency' => q(روپئیہ),
166             },
167             },
168             } },
169             );
170              
171              
172             has 'calendar_months' => (
173             is => 'ro',
174             isa => HashRef,
175             init_arg => undef,
176             default => sub { {
177             'gregorian' => {
178             'format' => {
179             wide => {
180             nonleap => [
181             'جنوری',
182             'فروری',
183             'مارچ',
184             'اپریل',
185             'مئ',
186             'جون',
187             'جولائی',
188             'اگست',
189             'ستمبر',
190             'اکتوبر',
191             'نومبر',
192             'دسمبر'
193             ],
194             leap => [
195            
196             ],
197             },
198             },
199             },
200             } },
201             );
202              
203             has 'calendar_days' => (
204             is => 'ro',
205             isa => HashRef,
206             init_arg => undef,
207             default => sub { {
208             'gregorian' => {
209             'format' => {
210             wide => {
211             mon => 'پیر',
212             tue => 'منگل',
213             wed => 'بُدھ',
214             thu => 'جمعرات',
215             fri => 'جمعہ',
216             sat => 'ہفتہ',
217             sun => 'اتوار'
218             },
219             },
220             },
221             } },
222             );
223              
224             has 'calendar_quarters' => (
225             is => 'ro',
226             isa => HashRef,
227             init_arg => undef,
228             default => sub { {
229             'gregorian' => {
230             'format' => {
231             wide => {0 => 'چوتھاي پہلاں',
232             1 => 'چوتھاي دوجا',
233             2 => 'چوتھاي تيجا',
234             3 => 'چوتھاي چوتھا'
235             },
236             },
237             },
238             } },
239             );
240              
241             has 'day_period_data' => (
242             is => 'ro',
243             isa => CodeRef,
244             init_arg => undef,
245             default => sub { sub {
246             # Time in hhmm format
247             my ($self, $type, $time, $day_period_type) = @_;
248             $day_period_type //= 'default';
249             SWITCH:
250             for ($type) {
251             if ($_ eq 'generic') {
252             if($day_period_type eq 'default') {
253             return 'midnight' if $time == 0;
254             return 'afternoon1' if $time >= 1200
255             && $time < 1600;
256             return 'evening1' if $time >= 1600
257             && $time < 2100;
258             return 'morning1' if $time >= 400
259             && $time < 1200;
260             return 'night1' if $time >= 2100;
261             return 'night1' if $time < 400;
262             }
263             if($day_period_type eq 'selection') {
264             return 'afternoon1' if $time >= 1200
265             && $time < 1600;
266             return 'evening1' if $time >= 1600
267             && $time < 2100;
268             return 'morning1' if $time >= 400
269             && $time < 1200;
270             return 'night1' if $time >= 2100;
271             return 'night1' if $time < 400;
272             }
273             last SWITCH;
274             }
275             if ($_ eq 'gregorian') {
276             if($day_period_type eq 'default') {
277             return 'midnight' if $time == 0;
278             return 'afternoon1' if $time >= 1200
279             && $time < 1600;
280             return 'evening1' if $time >= 1600
281             && $time < 2100;
282             return 'morning1' if $time >= 400
283             && $time < 1200;
284             return 'night1' if $time >= 2100;
285             return 'night1' if $time < 400;
286             }
287             if($day_period_type eq 'selection') {
288             return 'afternoon1' if $time >= 1200
289             && $time < 1600;
290             return 'evening1' if $time >= 1600
291             && $time < 2100;
292             return 'morning1' if $time >= 400
293             && $time < 1200;
294             return 'night1' if $time >= 2100;
295             return 'night1' if $time < 400;
296             }
297             last SWITCH;
298             }
299             }
300             } },
301             );
302              
303             around day_period_data => sub {
304             my ($orig, $self) = @_;
305             return $self->$orig;
306             };
307              
308             has 'eras' => (
309             is => 'ro',
310             isa => HashRef,
311             init_arg => undef,
312             default => sub { {
313             'generic' => {
314             },
315             'gregorian' => {
316             abbreviated => {
317             '0' => 'ايساپورو',
318             '1' => 'سں'
319             },
320             wide => {
321             '0' => 'ايساپورو',
322             '1' => 'سں'
323             },
324             },
325             } },
326             );
327              
328             has 'date_formats' => (
329             is => 'ro',
330             isa => HashRef,
331             init_arg => undef,
332             default => sub { {
333             'generic' => {
334             'full' => q{EEEE, dd MMMM y G},
335             'long' => q{d MMMM y G},
336             'medium' => q{d MMM y G},
337             'short' => q{dd/MM/y GGGGG},
338             },
339             'gregorian' => {
340             'full' => q{EEEE, dd MMMM y},
341             'long' => q{d MMMM y},
342             'medium' => q{d MMM y},
343             'short' => q{dd/MM/y},
344             },
345             } },
346             );
347              
348             has 'time_formats' => (
349             is => 'ro',
350             isa => HashRef,
351             init_arg => undef,
352             default => sub { {
353             'generic' => {
354             },
355             'gregorian' => {
356             'full' => q{h:mm:ss a zzzz},
357             'long' => q{h:mm:ss a z},
358             'medium' => q{h:mm:ss a},
359             'short' => q{h:mm a},
360             },
361             } },
362             );
363              
364             has 'datetime_formats' => (
365             is => 'ro',
366             isa => HashRef,
367             init_arg => undef,
368             default => sub { {
369             'generic' => {
370             },
371             'gregorian' => {
372             },
373             } },
374             );
375              
376             has 'datetime_formats_available_formats' => (
377             is => 'ro',
378             isa => HashRef,
379             init_arg => undef,
380             default => sub { {
381             'generic' => {
382             HHmmss => q{HH:mm:ss},
383             Md => q{d/M},
384             ms => q{mm:ss},
385             yMMM => q{MMM y},
386             yQQQ => q{QQQ y},
387             },
388             'gregorian' => {
389             HHmmss => q{HH:mm:ss},
390             Md => q{d/M},
391             mmss => q{mm:ss},
392             yMMM => q{MMM y},
393             yQQQ => q{QQQ y},
394             },
395             } },
396             );
397              
398             has 'datetime_formats_append_item' => (
399             is => 'ro',
400             isa => HashRef,
401             init_arg => undef,
402             default => sub { {
403             } },
404             );
405              
406             has 'datetime_formats_interval' => (
407             is => 'ro',
408             isa => HashRef,
409             init_arg => undef,
410             default => sub { {
411             } },
412             );
413              
414             no Moo;
415 1     1   1514  
  1         2  
  1         3  
416             1;
417              
418             # vim: tabstop=4