File Coverage

blib/lib/Locale/CLDR/Locales/En/Any/Gb.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::En::Any::Gb - Package for language English
4              
5             =cut
6              
7             package Locale::CLDR::Locales::En::Any::Gb;
8             # This file auto generated from Data\common\main\en_GB.xml
9             # on Sun 24 Apr 8:24:39 am GMT
10              
11 17     17   350767 use version;
  17         29  
  17         122  
12              
13             our $VERSION = version->declare('v0.29.0');
14              
15 17     17   1673 use v5.10.1;
  17         50  
16 17     17   67 use mro 'c3';
  17         21  
  17         120  
17 17     17   511 use utf8;
  17         23  
  17         116  
18 17     17   490 use if $^V ge v5.12.0, feature => 'unicode_strings';
  17         22  
  17         208  
19              
20 17     17   9930 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  17         736384  
  17         174  
21 17     17   22728 use Moo;
  17         141439  
  17         66  
22              
23             extends('Locale::CLDR::Locales::En::Any::001');
24             has 'display_name_language' => (
25             is => 'ro',
26             isa => CodeRef,
27             init_arg => undef,
28             default => sub {
29             sub {
30             my %languages = (
31             'nds_NL' => 'West Low German',
32              
33             );
34             if (@_) {
35             return $languages{$_[0]};
36             }
37             return \%languages;
38             }
39             },
40             );
41              
42             has 'display_name_key' => (
43             is => 'ro',
44             isa => HashRef[Str],
45             init_arg => undef,
46             default => sub {
47             {
48             'colnormalization' => 'Normalised Sorting',
49              
50             }
51             },
52             );
53              
54             has 'display_name_type' => (
55             is => 'ro',
56             isa => HashRef[HashRef[Str]],
57             init_arg => undef,
58             default => sub {
59             {
60             'colnormalization' => {
61             'no' => q{Sort Without Normalisation},
62             'yes' => q{Sort Unicode Normalised},
63             },
64              
65             }
66             },
67             );
68              
69             has 'units' => (
70             is => 'ro',
71             isa => HashRef[HashRef[HashRef[Str]]],
72             init_arg => undef,
73             default => sub { {
74             'long' => {
75             'kelvin' => {
76             'name' => q(kelvin),
77             'one' => q({0} kelvin),
78             'other' => q({0} kelvin),
79             },
80             'stone' => {
81             'name' => q(stone),
82             'one' => q({0} stone),
83             'other' => q({0} stone),
84             },
85             },
86             'short' => {
87             'hour' => {
88             'per' => q({0}ph),
89             },
90             'second' => {
91             'per' => q({0}ps),
92             },
93             'stone' => {
94             'name' => q(stone),
95             },
96             },
97             } }
98             );
99              
100             has 'listPatterns' => (
101             is => 'ro',
102             isa => HashRef,
103             init_arg => undef,
104             default => sub { {
105             end => q({0} and {1}),
106             } }
107             );
108              
109             has 'currencies' => (
110             is => 'ro',
111             isa => HashRef,
112             init_arg => undef,
113             default => sub { {
114             'ILR' => {
115             display_name => {
116             'currency' => q(Israeli Shekel \(1980–1985\)),
117             'one' => q(Israeli shekel \(1980–1985\)),
118             'other' => q(Israeli shekels \(1980–1985\)),
119             },
120             },
121             'ILS' => {
122             display_name => {
123             'currency' => q(Israeli New Shekel),
124             'one' => q(Israeli new shekel),
125             'other' => q(Israeli new shekels),
126             },
127             },
128             } },
129             );
130              
131              
132             has 'day_period_data' => (
133             is => 'ro',
134             isa => CodeRef,
135             init_arg => undef,
136             default => sub { sub {
137             # Time in hhmm format
138             my ($self, $type, $time, $day_period_type) = @_;
139             $day_period_type //= 'default';
140             SWITCH:
141             for ($type) {
142             if ($_ eq 'gregorian') {
143             if($day_period_type eq 'default') {
144             return 'noon' if $time == 1200;
145             return 'midnight' if $time == 0;
146             return 'evening1' if $time >= 1800
147             && $time < 2100;
148             return 'night1' if $time >= 2100;
149             return 'night1' if $time < 600;
150             return 'afternoon1' if $time >= 1200
151             && $time < 1800;
152             return 'morning1' if $time >= 600
153             && $time < 1200;
154             }
155             if($day_period_type eq 'selection') {
156             return 'afternoon1' if $time >= 1200
157             && $time < 1800;
158             return 'morning1' if $time >= 600
159             && $time < 1200;
160             return 'night1' if $time >= 2100;
161             return 'night1' if $time < 600;
162             return 'evening1' if $time >= 1800
163             && $time < 2100;
164             }
165             last SWITCH;
166             }
167             }
168             } },
169             );
170              
171             around day_period_data => sub {
172             my ($orig, $self) = @_;
173             return $self->$orig;
174             };
175              
176             has 'day_periods' => (
177             is => 'ro',
178             isa => HashRef,
179             init_arg => undef,
180             default => sub { {
181             'gregorian' => {
182             'format' => {
183             'wide' => {
184             'am' => q{am},
185             'pm' => q{pm},
186             },
187             'abbreviated' => {
188             'pm' => q{pm},
189             'am' => q{am},
190             },
191             },
192             'stand-alone' => {
193             'wide' => {
194             'pm' => q{pm},
195             'am' => q{am},
196             },
197             'narrow' => {
198             'pm' => q{p},
199             'am' => q{a},
200             },
201             },
202             },
203             } },
204             );
205              
206             has 'eras' => (
207             is => 'ro',
208             isa => HashRef,
209             init_arg => undef,
210             default => sub { {
211             'gregorian' => {
212             },
213             } },
214             );
215              
216             has 'date_formats' => (
217             is => 'ro',
218             isa => HashRef,
219             init_arg => undef,
220             default => sub { {
221             'gregorian' => {
222             },
223             } },
224             );
225              
226             has 'time_formats' => (
227             is => 'ro',
228             isa => HashRef,
229             init_arg => undef,
230             default => sub { {
231             'gregorian' => {
232             'full' => q{HH:mm:ss zzzz},
233             'long' => q{HH:mm:ss z},
234             'medium' => q{HH:mm:ss},
235             'short' => q{HH:mm},
236             },
237             } },
238             );
239              
240             has 'datetime_formats' => (
241             is => 'ro',
242             isa => HashRef,
243             init_arg => undef,
244             default => sub { {
245             'gregorian' => {
246             },
247             } },
248             );
249              
250             has 'datetime_formats_available_formats' => (
251             is => 'ro',
252             isa => HashRef,
253             init_arg => undef,
254             default => sub { {
255             } },
256             );
257              
258             has 'datetime_formats_append_item' => (
259             is => 'ro',
260             isa => HashRef,
261             init_arg => undef,
262             default => sub { {
263             } },
264             );
265              
266             has 'datetime_formats_interval' => (
267             is => 'ro',
268             isa => HashRef,
269             init_arg => undef,
270             default => sub { {
271             } },
272             );
273              
274             has 'time_zone_names' => (
275             is => 'ro',
276             isa => HashRef,
277             init_arg => undef,
278             default => sub { {
279             'Europe/London' => {
280             short => {
281             'daylight' => q(BST),
282             },
283             },
284             'Europe_Central' => {
285             short => {
286             'daylight' => q(CEST),
287             'generic' => q(CET),
288             'standard' => q(CET),
289             },
290             },
291             'Europe_Eastern' => {
292             short => {
293             'daylight' => q(EEST),
294             'generic' => q(EET),
295             'standard' => q(EET),
296             },
297             },
298             'Europe_Western' => {
299             short => {
300             'daylight' => q(WEST),
301             'generic' => q(WET),
302             'standard' => q(WET),
303             },
304             },
305             } }
306             );
307 17     17   67874 no Moo;
  17         32  
  17         96  
308              
309             1;
310              
311             # vim: tabstop=4