File Coverage

blib/lib/Time/Duration/Concise/Locale/pt.pm
Criterion Covered Total %
statement 13 13 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 1 1 100.0
total 19 19 100.0


line stmt bran cond sub pod time code
1             package Time::Duration::Concise::Locale::pt;
2              
3 2     2   1174 use 5.006;
  2         5  
4 2     2   6 use strict;
  2         2  
  2         33  
5 2     2   6 use warnings FATAL => 'all';
  2         2  
  2         42  
6 2     2   7 use utf8;
  2         1  
  2         7  
7              
8             our $VERSION = '0.1';
9              
10             =head1 NAME
11              
12             Time::Duration::Concise::Locale::pt - Portuguese locale translation.
13              
14             =head1 DESCRIPTION
15              
16             Time::Duration::Concise uses Time::Duration::Concise::Locale::pt to localize concise time duration string representation.
17              
18             =head1 VERSION
19              
20             Version 0.1
21              
22             =head1 METHODS
23              
24             =head2 translation
25              
26             Localized translation hash
27              
28             =cut
29              
30             sub translation {
31 2     2 1 4 my ($self) = @_;
32             return {
33 2         10 'second' => 'segundo',
34             'seconds' => 'segundos',
35             'minute' => 'minuto',
36             'minutes' => 'minutos',
37             'hour' => 'hora',
38             'hours' => 'horas',
39             'day' => 'dia',
40             'days' => 'dias',
41             'month' => 'mês',
42             'months' => 'meses',
43             'year' => 'ano',
44             };
45             }
46              
47             =head1 AUTHOR
48              
49             Binary.com, C<< >>
50              
51             =cut
52              
53             1; # End of Time::Duration::Concise::Locale::pt