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)
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/nl_NL/LC_MESSAGES/$catalog
$catalogdir_prefix may be empty, in which case the catalog is searched at the default catalog locations.
$catalogdir_prefix
translate(language,text)
This function looks up a translation for the tuple (language, text) via Locale::gettext.
set_translation(language,text,translation)
This function returns false for this backend.
clear_cache()
This 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.
To install Locale::Framework::gettext, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Locale::Framework::gettext
CPAN shell
perl -MCPAN -e shell install Locale::Framework::gettext
For more information on module installation, please visit the detailed CPAN module installation guide.