$Id: ExtractHeader.pm 600 2015-07-01 04:58:40Z steffenw $
3.005
This module is extracting charset and plural date from gettext header.
use Locale::TextDomain::OO::Util::ExtractHeader;
my $extractor = Locale::TextDomain::OO::Util::ExtractHeader ->instance ->patch_safe_module; # or my $extractor = Locale::TextDomain::OO::Util::ExtractHeader->instance;
see SYNOPSIS
... until your used version of module Safe is monkey patched.
Reason:
Safe will insert nameless variables in the main namespace, and Package::Stash croaks. See: https://rt.cpan.org/Ticket/Display.html?id=99563
$hash_ref = $extractor->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,
Inside of this distribution is a directory named example. Run this *.pl files.
confess
none
Locale::TextDomain::OO::Util::Constants
not known
none
Steffen Winkler
Copyright (c) 2014 - 2015,
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.