Mango::I18N - Message localization support for Mango
use Mango::I18N qw/translate/; warn translate('This is my message');
Mango::I18N is the module responsible for message localization support in Mango. It is a subclass of Locale::Maketext. By default it doesn't export anything. You can either use it directly:
Locale::Maketext
use Mango::I18N; warn Mango::I18N::translate('My message');
or export "translate" into the callers namespace:
use Mango::I18N qw/translate/; warn translate('My message');
If you have the time and can do a language, the help would be much appreciated. If you're going to email a translation module, please Gzip it first. It's not uncommon for an email server or client along the way to trash UTF-8 characters in the .pm attachment text.
Translates the supplied text into the appropriate language if available. If no match is available, the original text is returned.
print translate('foo was here');
Locale::Maketext, Mango::I18N::en
Christopher H. Laco CPAN ID: CLACO claco@chrislaco.com http://today.icantfocus.com/blog/
To install Mango, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mango
CPAN shell
perl -MCPAN -e shell install Mango
For more information on module installation, please visit the detailed CPAN module installation guide.