Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Locale::Maketext::Extract 0.91

    Download button

    No screenshots available
    Downloads: 334  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Audrey Tang | More programs
    MIT/X Consortium Lic... / FREE
    January 17th, 2012, 08:54 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    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('[_1]')
    $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 files
    Valid localization function names are: translate, maketext, gettext, loc, x, _ and __.

    HTML::Mason
    Strings inside ... and ... are extracted.

    Template Toolkit
    Strings inside [%|l%]...[%END%] or [%|loc%]...[%END%] are extracted.

    Text::Template
    Sentences between STARTxxx and ENDxxx are extracted individually.

    Generic Template
    Strings inside {{...}} are extracted.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    extract translatable strings | extract source strings | Perl module | module | extract | translatable

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM