logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Locale::Maketext::Extract::Plugin::Perl - Perl format parser

Authors

       •   Clinton Gormley <drtech@cpan.org>

       •   Audrey Tang <cpan@audreyt.org>

Description

       Extracts strings to localise (including HEREDOCS and concatenated strings) from Perl code.

       This Perl parser is very fast and very good, but not perfect - it does make mistakes. The PPI parser
       (Locale::Maketext::Extract::Plugin::PPI) is more accurate, but a lot slower, and so is not enabled by
       default.

Known File Types

       .pm
       .pl
       .cgi

Name

       Locale::Maketext::Extract::Plugin::Perl - Perl format parser

See Also

       xgettext.pl
           for extracting translatable strings from common template systems and perl source files.

       Locale::Maketext::Lexicon
       Locale::Maketext::Extract::Plugin::Base
       Locale::Maketext::Extract::Plugin::PPI
       Locale::Maketext::Extract::Plugin::FormFu
       Locale::Maketext::Extract::Plugin::TT2
       Locale::Maketext::Extract::Plugin::YAML
       Locale::Maketext::Extract::Plugin::Mason
       Locale::Maketext::Extract::Plugin::TextTemplate
       Locale::Maketext::Extract::Plugin::Generic

Short Plugin Name

           perl

Synopsis

           $plugin = Locale::Maketext::Extract::Plugin::Perl->new(
               $lexicon            # A Locale::Maketext::Extract object
               @file_types         # Optionally specify a list of recognised file types
           )

           $plugin->extract($filename,$filecontents);

Valid Formats

       Valid localization function names are:

       translate
       maketext
       gettext
       l
       loc
       x
       _
       __

Version

       version 1.00

See Also