Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 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

    CGI::Application::Plugin::I18N 0.03

    Download button

    No screenshots available
    Downloads: 297  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

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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