
Locale::Framework::gettext, a Locale::gettext backend for Locale::Framework.

This module provides a Locale::gettext backend for the Locale::Framework internationalization module.
.

use Locale::Framework;
use Locale::Framework::gettext;
my $wxloc=new Locale::Framework::gettext("./locale","mytest");
Locale::Framework::language("en");
print _T("This is a test");
Locale::Framework::language("nl_NL");
print _T("This is a test");

new(catalogdir_prefix,catalog) --> Locale::Framework::gettextInstantiates a new backend object. You need to specify a catalogdir_prefix to the place where your catalog can be found. For locale/language 'nl_NL' the catalog will be fetched from $catalogdir_prefix/nl_NL/LC_MESSAGES/$catalog.
$catalogdir_prefix may be empty, in which case the catalog is searched at the default catalog locations.
translate(language,text) --> stringThis function looks up a translation for the tuple (language, text) via Locale::gettext.
set_translation(language,text,translation) --> booleanThis function returns false for this backend.
clear_cache() --> voidThis function is a noop for this backend.

Locale::Framework, Locale::gettext

Hans Oesterholt-Dijkema <oesterhol@cpan.org>

This library is free software; you can redistribute it and/or modify it under LGPL terms.