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.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Locale::Framework 0.06

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Hans Oesterholt-Dijkema | More programs
    Perl Artistic License / FREE
    December 5th, 2006, 06:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Locale::Framework description

    Locale::Framework is a Perl module for internationalization.

    Locale::Framework is a Perl module for internationalization.

    SYNOPSIS

    use Locale::Framework;
    use Locale::Framework::SQL;

    Locale::Framework::init(new Locale::Framework::SQL(
    DSN => "dbi:Pg:dbname=zclass;host=localhost",
    DBUSER => "test",
    DBPASS => "testpass",
    [TABLE => "testtrans"]));

    print _T("This is a test");

    Locale::Framework::language("nl_NL");

    print _T("This is a test");
    Alternative interface (using wxLocale backend as an example), which does exactly the same. There is no local object scope, there's only a global class (or program that is) scope. OO interface is only for conveniance.
    use Locale::Framework;
    use Locale::Framework::wxLocale;

    my $LOC=new Locale::Framework;

    $LOC->init(new Locale::Framework::wxLocale("./locale","test"));

    print _T("This is a test");
    $LOC->language("nl_NL");
    print _T("This is a test");

    ABSTRACT

    This module provides simple string based internationalization support. It exports a '_T' function that can be used for all text that need displayed. It can work with different backends, e.g. SQL or file based backends. The backend defaults to Locale::Framework::Dumb, which doesn't translate at all.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    locale framework | internationalization framework | Perl module | Locale::Framework | locale | internationalization

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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