File Coverage

blib/lib/Locale/CLDR/Locales/En/Any/Gb.pm
Criterion Covered Total %
statement 21 21 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod n/a
total 28 28 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 Fri 10 Jul 3:17:28 pm GMT
10             # XML file generated 2015-01-30 13:45:39 -0600 (Fri, 30 Jan 2015)
11              
12 10     10   272146 use version;
  10         19  
  10         77  
13              
14             our $VERSION = version->declare('v0.27.2');
15              
16 10     10   1137 use v5.10;
  10         31  
  10         391  
17 10     10   49 use mro 'c3';
  10         12  
  10         136  
18 10     10   384 use utf8;
  10         20  
  10         79  
19 10     10   403 use if $^V ge v5.12.0, feature => 'unicode_strings';
  10         13  
  10         155  
20              
21 10     10   1244 use Moose;
  10         19  
  10         79  
22              
23             extends('Locale::CLDR::Locales::En::Any::001');
24             has 'display_name_key' => (
25             is => 'ro',
26             isa => 'HashRef[Str]',
27             init_arg => undef,
28             default => sub {
29             {
30             'colnormalization' => 'Normalised Sorting',
31              
32             }
33             },
34             );
35              
36             has 'display_name_type' => (
37             is => 'ro',
38             isa => 'HashRef[HashRef[Str]]',
39             init_arg => undef,
40             default => sub {
41             {
42             'colnormalization' => {
43             'no' => q{Sort Without Normalisation},
44             'yes' => q{Sort Unicode Normalised},
45             },
46              
47             }
48             },
49             );
50              
51             has 'units' => (
52             is => 'ro',
53             isa => 'HashRef[HashRef[HashRef[Str]]]',
54             init_arg => undef,
55             default => sub { {
56             'short' => {
57             'liter' => {
58             'one' => q({0} l),
59             'other' => q({0} l),
60             },
61             },
62             } }
63             );
64              
65             has 'curriencies' => (
66             is => 'ro',
67             isa => 'HashRef',
68             init_arg => undef,
69             default => sub { {
70             'ILR' => {
71             display_name => {
72             'currency' => q(Israeli Shekel \(1980–1985\)),
73             'one' => q(Israeli shekel \(1980–1985\)),
74             'other' => q(Israeli shekels \(1980–1985\)),
75             },
76             },
77             'ILS' => {
78             display_name => {
79             'currency' => q(Israeli New Shekel),
80             'one' => q(Israeli new shekel),
81             'other' => q(Israeli new shekels),
82             },
83             },
84             } },
85             );
86              
87              
88             has 'day_period_data' => (
89             traits => ['Code'],
90             is => 'ro',
91             isa => 'CodeRef',
92             init_arg => undef,
93             handles => { call => 'execute_method' },
94             default => sub { sub {
95             # Time in hhmm format
96             my ($self, $type, $time, $day_period_type) = @_;
97             $day_period_type //= 'default';
98             SWITCH:
99             for ($type) {
100             if ($_ eq 'gregorian') {
101             if($day_period_type eq 'default') {
102             return 'afternoon1' if $time > 1200
103             && $time < 2400;
104             return 'morning1' if $time >= 0
105             && $time < 1200;
106             return 'noon' if $time == 1200;
107             }
108             if($day_period_type eq 'selection') {
109             return 'evening1' if $time >= 1800
110             && $time < 2100;
111             return 'afternoon1' if $time >= 1200
112             && $time < 1800;
113             return 'morning1' if $time >= 600
114             && $time < 1200;
115             return 'night1' if $time >= 2100
116             && $time < 2400;
117             }
118             last SWITCH;
119             }
120             }
121             } },
122             );
123              
124             has 'day_periods' => (
125             is => 'ro',
126             isa => 'HashRef',
127             init_arg => undef,
128             default => sub { {
129             'gregorian' => {
130             'format' => {
131             'wide' => {
132             'am' => q{a.m.},
133             'pm' => q{p.m.},
134             },
135             },
136             },
137             } },
138             );
139              
140             has 'eras' => (
141             is => 'ro',
142             isa => 'HashRef',
143             init_arg => undef,
144             default => sub { {
145             'gregorian' => {
146             },
147             } },
148             );
149              
150             has 'date_formats' => (
151             is => 'ro',
152             isa => 'HashRef',
153             init_arg => undef,
154             default => sub { {
155             'gregorian' => {
156             },
157             } },
158             );
159              
160             has 'time_formats' => (
161             is => 'ro',
162             isa => 'HashRef',
163             init_arg => undef,
164             default => sub { {
165             'gregorian' => {
166             'full' => q{HH:mm:ss zzzz},
167             'long' => q{HH:mm:ss z},
168             'medium' => q{HH:mm:ss},
169             'short' => q{HH:mm},
170             },
171             } },
172             );
173              
174             has 'datetime_formats' => (
175             is => 'ro',
176             isa => 'HashRef',
177             init_arg => undef,
178             default => sub { {
179             'gregorian' => {
180             },
181             } },
182             );
183              
184             has 'datetime_formats_available_formats' => (
185             is => 'ro',
186             isa => 'HashRef',
187             init_arg => undef,
188             default => sub { {
189             } },
190             );
191              
192             has 'datetime_formats_append_item' => (
193             is => 'ro',
194             isa => 'HashRef',
195             init_arg => undef,
196             default => sub { {
197             } },
198             );
199              
200             has 'datetime_formats_interval' => (
201             is => 'ro',
202             isa => 'HashRef',
203             init_arg => undef,
204             default => sub { {
205             } },
206             );
207              
208             has 'time_zone_names' => (
209             is => 'ro',
210             isa => 'HashRef',
211             init_arg => undef,
212             default => sub { {
213             'Europe/London' => {
214             short => {
215             'daylight' => q(BST),
216             },
217             },
218             'Europe_Central' => {
219             short => {
220             'daylight' => q(CEST),
221             'generic' => q(CET),
222             'standard' => q(CET),
223             },
224             },
225             'Europe_Eastern' => {
226             short => {
227             'daylight' => q(EEST),
228             'generic' => q(EET),
229             'standard' => q(EET),
230             },
231             },
232             'Europe_Western' => {
233             short => {
234             'daylight' => q(WEST),
235             'generic' => q(WET),
236             'standard' => q(WET),
237             },
238             },
239             } }
240             );
241 10     10   72139 no Moose;
  10         21  
  10         54  
242             __PACKAGE__->meta->make_immutable;
243              
244             1;
245              
246             # vim: tabstop=4