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