File Coverage

blib/lib/Yancy/I18N.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package Yancy::I18N;
2             our $VERSION = '1.087';
3             # ABSTRACT: Internationalization (i18n) for Yancy
4              
5             #pod =head1 SYNOPSIS
6             #pod
7             #pod # XXX: Show how to set the language of Yancy
8             #pod # XXX: Show how to create a custom lexicon
9             #pod # XXX: Show examples of bracket notation (quant, numf, numerate,
10             #pod # sprintf, and positional parameters)
11             #pod
12             #pod =head1 DESCRIPTION
13             #pod
14             #pod This is the internationalization module for Yancy. It uses L to do
15             #pod the real work.
16             #pod
17             #pod B This is a work-in-progress and not all of Yancy's text has been made available
18             #pod for translation. Patches welcome!
19             #pod
20             #pod =head2 Languages
21             #pod
22             #pod Yancy comes with the following lexicons:
23             #pod
24             #pod =over
25             #pod
26             #pod =item L
27             #pod
28             #pod =back
29             #pod
30             #pod =head2 Custom Lexicons
31             #pod
32             #pod To create your own lexicon, start from an existing Yancy lexicon and add your own
33             #pod entries, like so:
34             #pod
35             #pod package MyApp::I18N;
36             #pod use Mojo::Base 'Yancy::I18N';
37             #pod
38             #pod package MyApp::I18N::en;
39             #pod use Mojo::Base 'Yancy::I18N::en';
40             #pod our %Lexicon = (
41             #pod 'Additional entry' => 'Additional entry',
42             #pod );
43             #pod
44             #pod =head1 SEE ALSO
45             #pod
46             #pod L, L
47             #pod
48             #pod =cut
49              
50 15     15   296056 use Mojo::Base '-strict';
  15         39  
  15         119  
51 15     15   2716 use base 'Locale::Maketext';
  15         35  
  15         9848  
52              
53             1;
54              
55             __END__