Locale::Framework

Locale::Framework is a Perl module for internationalization.
Download

Locale::Framework Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Hans Oesterholt-Dijkema
  • Publisher web site:
  • http://search.cpan.org/~oesterhol/Wx-Polygon-0.06/Polygon.pm

Locale::Framework Tags


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", )); 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");ABSTRACTThis 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. Requirements: · Perl


Locale::Framework Related Software