Locale::Framework::GettextXML, a GettextXML backend for Locale::Framework
use Locale::Framework; use Locale::Framework::GettextXML; my $wxloc=new Locale::Framework::GettextXML('locale', 'myprog'); Locale::Framework::language("en"); print _T("This is a test"); Locale::Framework::language("nl"); print _T("This is a test");
This module provides a GettextXML backend for the Locale::Framework internationalization module.
new(locale_prefix, catalog[, debug])
Instantiates a new backend object. Optionally can "mark" untranslated strings and print debugging text.
translate(language,text)
This function looks up a translation for the tuple (language, text) via GettextXML.
set_translation(language,text,translation)
This function returns false for this backend, because GettextXML does not support dynamic updating yet.
clear_cache()
This function is a noop for this backend.
Locale::Framework
Jeff Buchbinder <freemed@gmail.com>
This library is free software; you can redistribute it and/or modify it under LGPL terms.
To install Locale::Framework::GettextXML, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Locale::Framework::GettextXML
CPAN shell
perl -MCPAN -e shell install Locale::Framework::GettextXML
For more information on module installation, please visit the detailed CPAN module installation guide.