File::Gettext - Read and write GNU gettext po/mo files
This documents version v0.27.$Rev: 1 $ of File::Gettext
use File::Gettext; my $domain = File::Gettext->new( $attrs )->load( $lang, @names );
Extends File::DataClass::Schema. Provides for the reading and writing of GNU Gettext PO files and the reading of MO files. Used by Class::Usul::L10N to translate application message strings into different languages
Defines the following attributes;
catagory_name
Subdirectory of localdir that contains the mo / po files. Defaults to LC_MESSAGES
localdir
LC_MESSAGES
charset
Default character set used it the mo / po does not specify one. Defaults to iso-8859-1
iso-8859-1
default_po_header
Default header information used to create new po files
header_key_table
Maps attribute header names onto their po file header strings
localedir
Base path to the mo / po files
result_source_attributes
Defines the attributes available in the result object
source_name
Either po or mo. Defaults to po
$gettext->get_path( $lang, $file );
Returns the path to the po/mo file for the specified language
This method modifier adds the pluralisation function to the return data
A method modifier that provides the result source name to the same method in the parent class
$gettext->set_path( $lang, $file );
Sets the path attribute on the parent class from $lang and $file
$lang
$file
None
There are no known incompatibilities in this module
There are no known bugs in this module. Please report problems to the address below. Patches are welcome
Larry Wall - For the Perl programming language
Peter Flanigan, <pjfl@cpan.org>
<pjfl@cpan.org>
Copyright (c) 2014 Peter Flanigan. All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic
This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
To install File::Gettext, copy and paste the appropriate command in to your terminal.
cpanm
cpanm File::Gettext
CPAN shell
perl -MCPAN -e shell install File::Gettext
For more information on module installation, please visit the detailed CPAN module installation guide.