Locale::Maketext::ExtractLocale::Maketext::Extract is a Perl module used to extract translatable strings from source. | |
Download |
Locale::Maketext::Extract Ranking & Summary
Advertisement
- License:
- MIT/X Consortium Lic...
- Price:
- FREE
- Publisher Name:
- Audrey Tang
- Publisher web site:
- http://search.cpan.org/~adamk/Module-Install-0.68/lib/Module/Install/PAR.pm
Locale::Maketext::Extract Tags
Locale::Maketext::Extract Description
Locale::Maketext::Extract is a Perl module used to extract translatable strings from source. Locale::Maketext::Extract is a Perl module used to extract translatable strings from source.SYNOPSIS my $Ext = Locale::Maketext::Extract->new; $Ext->read_po('messages.po'); $Ext->extract_file($_) for ; # Set $entries_are_in_gettext_format if the .pl files above use # loc('%1') instead of loc('') $Ext->compile($entries_are_in_gettext_format); $Ext->write_po('messages.po');This module can extract translatable strings from files, and write them back to PO files. It can also parse existing PO files and merge their contents with newly extracted strings.A command-line utility, xgettext.pl, is installed with this module as well.Following formats of input files are supported:Perl source filesValid localization function names are: translate, maketext, gettext, loc, x, _ and __.HTML::MasonStrings inside ... and ... are extracted.Template ToolkitStrings inside ... or ... are extracted.Text::TemplateSentences between STARTxxx and ENDxxx are extracted individually.Generic TemplateStrings inside {{...}} are extracted. Requirements: · Perl
Locale::Maketext::Extract Related Software