Handel::L10N - Localization module for Handel
use Handel::L10N qw(translate); warn translate('This is my message');
This module is simply a subclass of Locale::Maketext. By default it doesn't export anything. You can either use it directly:
Locale::Maketext
use Handel::L10N; warn Handel::L10N::translate('My message');
You can also export translate into the callers namespace:
translate
use Handel::L10N 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 along the way to trash UTF-8 characters in the .pm attachment text.
There is also a t/l10n_lexicon_synced.t test that ensures that each lexicon has the same number of keys as the English version. Please make sure to run/update that test before submitting your lexicon.
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, Handel::L10N::us_en, Handel::L10N::fr, Handel::L10N::zh_tw
Christopher H. Laco CPAN ID: CLACO claco@chrislaco.com http://today.icantfocus.com/blog/
To install Handel, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Handel
CPAN shell
perl -MCPAN -e shell install Handel
For more information on module installation, please visit the detailed CPAN module installation guide.