Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Perl Modules

    CGI::Application::Plugin::I18N 0.03

    Download button

    No screenshots available
    Downloads: 251  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Lyle Hopkins | More programs
    Perl Artistic License / FREE
    January 11th, 2011, 14:26 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    CGI::Application::Plugin::I18N description

    I18N and L10N methods for CGI::App

    CGI::Application::Plugin::I18N is a Perl module that acts as a wrapper around Locale::Maketext::Simple by Audrey Tang. It extends the CGI::Application object with variour methods to control the localization of text. A "FAQ" is provided with the aim to fill in the gaps.

    SYNOPSIS

    Nothing is exported by default. You can specify a list of individual methods or use one of the groups :std, :max or :min.

     use CGI::Application::Plugin::I18N qw( :std );

    Within your setup, cgiapp_init, cgiapp_prerun or specific runmode routine add the line

     $self->i18n_config();

    Or

     $self->i18n_config( %options );

    %options are the same as for Locale::Maketext::Simple. If none are passed the following default are used:-

     ÞFAULT_OPTIONS = (
     Path => "$RealBin/I18N",
     Style => 'gettext',
     Export => '_maketext',
     Decode => 1,
     Encoding => '',
     );


    $RealBin being the folder from which the executed cgi script is running. Note that Export must remain as _maketext for this module to function properly!

    For instance if you wanted to use maketext style markup in your lexicons you would use the line:-

     $self->i18n_config( Style => 'maketext' );

    Then use the localtext method to localize text:-

     print $self->localtext( 'Hello World!' );


    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Locale::Maketext::Simple wrapper | L10N methods | Perl module | Locale::Maketext::Simple | Perl | wrapper



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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