NAME
Locale::TextDomain::OO::Extract::Process::Plugin::PO - MO file plugin
$Id: PO.pm 683 2017-08-22 18:41:42Z steffenw $
$HeadURL: svn+ssh://steffenw@svn.code.sf.net/p/perl-gettext-oo/code/extract/trunk/lib/Locale/TextDomain/OO/Extract/Process/Plugin/PO.pm $
VERSION
2.007
SYNOPSIS
see Locale::TextDomain::OO::Extract::Process
DESCRIPTION
PO file plugin
SUBROUTINES/METHODS
method new
rw attribute category, domain, language
The type is Str, defaults to q{} but language to 'i-default'.
rw attribute project
The type is Undef or Str.
method lexicon_ref
The type is HashRef, defaults to {}.
method slurp
Read PO file into lexicon_ref.
$self->slurp($filename);
method default_header
Unless no header is set method spew calls method default_header to have that important thing.
The language in header is set correctly, the charset is UTF-8, Plural-Forms are English for example, all other settings are example defaults.
$self->default_header;
method spew
Write PO file from lexicon_ref.
$self->spew($filename);
method clear
Back to defaults to run the next file.
$self->clear;
EXAMPLE
Inside of this distribution is a directory named example. Run the *.pl files.
DIAGNOSTICS
none
CONFIGURATION AND ENVIRONMENT
none
DEPENDENCIES
Locale::TextDomain::OO::Util::ExtractHeader
Locale::TextDomain::OO::Util::JoinSplitLexiconKeys
INCOMPATIBILITIES
not known
BUGS AND LIMITATIONS
not known
SEE ALSO
Locale::TextDomain::OO::Extract::Process
AUTHOR
Steffen Winkler
LICENSE AND COPYRIGHT
Copyright (c) 2014 - 2017, Steffen Winkler <steffenw at cpan.org>
. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.