CallBackery::Translate - gettext po file translation functionality
use CallBackery::Translate qw(mtr); my $loc = CallBackery::Translate::new(localeRoot=>$dir); $loc->setLocale('de'); $loc->tra("Hello %1","Tobi"); trm("Mark but for translation but return original");
Read translations from gettext po files and translate incoming data.
setLocale
Load the translations strings for $locale. First try the full name and then top-up with only the language part.
tra
Translate string into the curent language.
trm
mark for translation but return an array pointer so that the string can be translated dynamically in the forntend. This functionality is not yet fully implemented.
Copyright (c) 2010 by OETIKER+PARTNER AG. All rights reserved.
Tobias Oetiker <tobi@oetiker.ch>
2010-12-22 to 1.0 first version
To install CallBackery, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CallBackery
CPAN shell
perl -MCPAN -e shell install CallBackery
For more information on module installation, please visit the detailed CPAN module installation guide.