NAME
Locale::TextDomain::OO::Extract::Process::Plugin::MO - MO file plugin
$Id: MO.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/MO.pm $
VERSION
2.007
SYNOPSIS
see Locale::TextDomain::OO::Extract::Process
DESCRIPTION
MO 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 MO file into lexicon_ref.
$self->slurp($filename);
method spew
Write MO file from lexicon_ref.
Unless no header is set method spew throws an exception.
$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.