-
-
16 Jul 2017 09:24:26 UTC
- Distribution: Locale-TextDomain-OO-Util
- Module version: 3.006
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (0)
- Testers (94 / 0 / 0)
- Kwalitee
Bus factor: 1- 87.68% Coverage
- License: unknown
- Activity
24 month- Tools
- Download (11.22KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Carp
- Cwd
- English
- Safe
- Test::Differences
- Test::Exception
- Test::More
- Test::NoWarnings
- charnames
- namespace::autoclean
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- NAME Locale::TextDomain::OO::Util::ExtractHeader - Gettext header extractor
- VERSION
- DESCRIPTION
- SYNOPSIS
- SUBROUTINES/METHODS
- EXAMPLE
- DIAGNOSTICS
- CONFIGURATION AND ENVIRONMENT
- DEPENDENCIES
- INCOMPATIBILITIES
- BUGS AND LIMITATIONS
- SEE ALSO
- AUTHOR
- LICENSE AND COPYRIGHT
NAME Locale::TextDomain::OO::Util::ExtractHeader - Gettext header extractor
$Id: ExtractHeader.pm 635 2017-02-23 06:54:16Z steffenw $
$HeadURL: svn+ssh://steffenw@svn.code.sf.net/p/perl-gettext-oo/code/Locale-TextDomain-OO-Util/trunk/lib/Locale/TextDomain/OO/Util/ExtractHeader.pm $
VERSION
3.006
DESCRIPTION
This module is extracting charset and plural date from gettext header.
SYNOPSIS
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;
SUBROUTINES/METHODS
method instance
see SYNOPSIS
method patch_safe_module
... 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
method extract_header_msgstr
$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, lexicon_class => 'from X-Lexicon-Class',
EXAMPLE
Inside of this distribution is a directory named example. Run this *.pl files.
DIAGNOSTICS
confess
CONFIGURATION AND ENVIRONMENT
none
DEPENDENCIES
Locale::TextDomain::OO::Util::Constants
INCOMPATIBILITIES
not known
BUGS AND LIMITATIONS
none
SEE ALSO
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.
Module Install Instructions
To install Locale::TextDomain::OO::Util, copy and paste the appropriate command in to your terminal.
cpanm Locale::TextDomain::OO::Util
perl -MCPAN -e shell install Locale::TextDomain::OO::Util
For more information on module installation, please visit the detailed CPAN module installation guide.