-
-
26 Oct 2018 12:02:22 UTC
- Distribution: Catmandu-I18N
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues
- Testers (553 / 3 / 15)
- Kwalitee
Bus factor: 1- 95.21% Coverage
- License: perl_5
- Perl: v5.10.1
- Activity
24 month- Tools
- Download (13.11KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors-
Nicolas Franck
NAME
Catmandu::Fix::i18n - lookup value in I18N
SYNOPSIS
use Catmandu::Sane; use Catmandu; #In your catmandu config Catmandu->config->{i18n} = { en => [ "Gettext", "/path/to/en.po" ], nl => [ "Gettext", "/path/to/nl.po" ] }; #In your fix #simple lookup i18n( "title", config => "i18n", lang => "en" ) #lookup with arguments add_field("args.$append","Nicolas") i18n( "greeting", config => "i18n", lang => "en", args => "args" )
CONSTRUCTOR ARGUMENTS
- path
-
* path to i18n key
* specified as fix argument
* required
- config
-
* path to i18n configuration in the Catmandu config
* specified as fix option
* required
- lang
-
* language to use
* specified as fix option
* required
- args
-
* path in current record where arguments are stored. Must be an array.
* specified as fix option
* optional
AUTHORS
Nicolas Franck
<nicolas.franck at ugent.be>
SEE ALSO
Catmandu::I18N, Catmandu, Locale::Maketext
LICENSE AND COPYRIGHT
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
Module Install Instructions
To install Catmandu::I18N, copy and paste the appropriate command in to your terminal.
cpanm Catmandu::I18N
perl -MCPAN -e shell install Catmandu::I18N
For more information on module installation, please visit the detailed CPAN module installation guide.