File Coverage

blib/lib/Locale/CLDR/Locales/De/Any/Lu.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
4              
5             Locale::CLDR::Locales::De::Any::Lu - Package for language German
6              
7             =cut
8              
9             # This file auto generated from Data/common/main/de_LU.xml
10             # on Mon 11 Apr 5:26:26 pm GMT
11              
12             use strict;
13 1     1   788 use warnings;
  1         1  
  1         23  
14 1     1   3 use version;
  1         2  
  1         18  
15 1     1   3  
  1         2  
  1         4  
16             our $VERSION = version->declare('v0.34.1');
17              
18             use v5.10.1;
19 1     1   74 use mro 'c3';
  1         2  
20 1     1   4 use utf8;
  1         1  
  1         4  
21 1     1   26 use if $^V ge v5.12.0, feature => 'unicode_strings';
  1         2  
  1         4  
22 1     1   27 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         2  
  1         9  
23 1     1   84 use Moo;
  1         7  
  1         6  
24 1     1   776  
  1         1  
  1         4  
25             extends('Locale::CLDR::Locales::De::Any');
26             has 'display_name_language' => (
27             is => 'ro',
28             isa => CodeRef,
29             init_arg => undef,
30             default => sub {
31             sub {
32             my %languages = (
33             'be' => 'Belarussisch',
34              
35             );
36             if (@_) {
37             return $languages{$_[0]};
38             }
39             return \%languages;
40             }
41             },
42             );
43              
44             has 'currencies' => (
45             is => 'ro',
46             isa => HashRef,
47             init_arg => undef,
48             default => sub { {
49             'LUF' => {
50             symbol => 'F',
51             },
52             } },
53             );
54              
55              
56             has 'day_period_data' => (
57             is => 'ro',
58             isa => CodeRef,
59             init_arg => undef,
60             default => sub { sub {
61             # Time in hhmm format
62             my ($self, $type, $time, $day_period_type) = @_;
63             $day_period_type //= 'default';
64             SWITCH:
65             for ($type) {
66             if ($_ eq 'gregorian') {
67             if($day_period_type eq 'default') {
68             return 'midnight' if $time == 0;
69             return 'afternoon1' if $time >= 1200
70             && $time < 1300;
71             return 'afternoon2' if $time >= 1300
72             && $time < 1800;
73             return 'evening1' if $time >= 1800
74             && $time < 2400;
75             return 'morning1' if $time >= 500
76             && $time < 1000;
77             return 'morning2' if $time >= 1000
78             && $time < 1200;
79             return 'night1' if $time >= 0
80             && $time < 500;
81             }
82             if($day_period_type eq 'selection') {
83             return 'afternoon1' if $time >= 1200
84             && $time < 1300;
85             return 'afternoon2' if $time >= 1300
86             && $time < 1800;
87             return 'evening1' if $time >= 1800
88             && $time < 2400;
89             return 'morning1' if $time >= 500
90             && $time < 1000;
91             return 'morning2' if $time >= 1000
92             && $time < 1200;
93             return 'night1' if $time >= 0
94             && $time < 500;
95             }
96             last SWITCH;
97             }
98             }
99             } },
100             );
101              
102             around day_period_data => sub {
103             my ($orig, $self) = @_;
104             return $self->$orig;
105             };
106              
107             has 'day_periods' => (
108             is => 'ro',
109             isa => HashRef,
110             init_arg => undef,
111             default => sub { {
112             'gregorian' => {
113             'format' => {
114             'narrow' => {
115             'am' => q{vorm.},
116             'pm' => q{nachm.},
117             },
118             },
119             },
120             } },
121             );
122              
123             has 'eras' => (
124             is => 'ro',
125             isa => HashRef,
126             init_arg => undef,
127             default => sub { {
128             'gregorian' => {
129             },
130             } },
131             );
132              
133             has 'date_formats' => (
134             is => 'ro',
135             isa => HashRef,
136             init_arg => undef,
137             default => sub { {
138             'gregorian' => {
139             },
140             } },
141             );
142              
143             has 'time_formats' => (
144             is => 'ro',
145             isa => HashRef,
146             init_arg => undef,
147             default => sub { {
148             'gregorian' => {
149             },
150             } },
151             );
152              
153             has 'datetime_formats' => (
154             is => 'ro',
155             isa => HashRef,
156             init_arg => undef,
157             default => sub { {
158             'gregorian' => {
159             },
160             } },
161             );
162              
163             has 'datetime_formats_available_formats' => (
164             is => 'ro',
165             isa => HashRef,
166             init_arg => undef,
167             default => sub { {
168             'gregorian' => {
169             h => q{h a},
170             },
171             } },
172             );
173              
174             has 'datetime_formats_append_item' => (
175             is => 'ro',
176             isa => HashRef,
177             init_arg => undef,
178             default => sub { {
179             } },
180             );
181              
182             has 'datetime_formats_interval' => (
183             is => 'ro',
184             isa => HashRef,
185             init_arg => undef,
186             default => sub { {
187             } },
188             );
189              
190             no Moo;
191 1     1   939  
  1         2  
  1         3  
192             1;
193              
194             # vim: tabstop=4