Yancy/I18N.pm

filter: Statementstmt 100% 8 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 10 / 10 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Yancy/Backend/Sqlite.pm ↑ Summary Yancy/I18N/en.pm »
1 package Yancy::I18N;
2 2 our $VERSION = '1.078';
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<Locale::Maketext> to do
15 #pod the real work.
16 #pod
17 #pod B<NOTE:> 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<English (US)|Yancy::I18N::en>
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<Mojolicious::Plugin::I18N>, L<Locale::Maketext>
47 #pod
48 #pod =cut
49  
50 2 ▶use Mojo::Base '-strict';
Subroutine BEGIN: called CC=1 SCAR=0.0
51 2 ▶use base 'Locale::Maketext';
Subroutine BEGIN: called CC=1 SCAR=0.0
52  
53 2 1;
54  
55 __END__
« Yancy/Backend/Sqlite.pm ↑ Summary Yancy/I18N/en.pm »