NAME

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

ABSTRACT

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

.

SYNOPSIS

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");

DESCRIPTION

new(catalogdir_prefix,catalog) --> Locale::Framework::gettext

Instantiates 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) --> string

This function looks up a translation for the tuple (language, text) via Locale::gettext.

set_translation(language,text,translation) --> boolean

This function returns false for this backend.

clear_cache() --> void

This function is a noop for this backend.

SEE ALSO

Locale::Framework, Locale::gettext

AUTHOR

Hans Oesterholt-Dijkema <oesterhol@cpan.org>

COPYRIGHT AND LICENSE

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