NAME

Locale::TextDomain::OO::Lexicon::Role::ExtractHeader - Gettext header extractor

$Id: ExtractHeader.pm 439 2013-12-19 20:42:34Z steffenw $

$HeadURL: svn+ssh://steffenw@svn.code.sf.net/p/perl-gettext-oo/code/module/trunk/lib/Locale/TextDomain/OO/Lexicon/Role/ExtractHeader.pm $

VERSION

1.000

DESCRIPTION

This module is extracting charset and plural date from gettext header.

SYNOPSIS

with qw(
    Locale::TextDomain::OO::Lexicon::Role::ExtractHeader
);

SUBROUTINES/METHODS

method extract_header_msgstr

$hash_ref = $self->extract_header_msgstr($header_msgstr);

That hash_ref contains:

nplurals    => $count_of_plural_forms,
plural      => $the_original_formula,
plural_code => $code_ref_to_select_the_right_plural_form,
charset     => $charset,

method message_array_to_hash

Transformation the array of messages to a faster accessable hash

$message_ref = $self->message_array_to_hash($messages_ref);

EXAMPLE

Inside of this distribution is a directory named example. Run this *.pl files.

DIAGNOSTICS

confess

CONFIGURATION AND ENVIRONMENT

none

DEPENDENCIES

Carp

English

Moo::Role

Safe

namespace::autoclean

Locale::TextDomain::OO::Lexicon::Role::Constants

INCOMPATIBILITIES

not known

BUGS AND LIMITATIONS

none

SEE ALSO

Locale::TextDoamin::OO

AUTHOR

Steffen Winkler

LICENSE AND COPYRIGHT

Copyright (c) 2013, 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.