++ed by:
AERO

1 PAUSE user

Tobias Oetiker
and 1 contributors

NAME

CallBackery::Translate - gettext po file translation functionality

SYNOPSIS

 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");

DESCRIPTION

Read translations from gettext po files and translate incoming data.

setLocale($locale);

Load the translations strings for $locale. First try the full name and then top-up with only the language part.

tra(str[,arg,arg,...])

Translate string into the curent language.

trm(str[,arg,arg,...])

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

Copyright (c) 2010 by OETIKER+PARTNER AG. All rights reserved.

AUTHOR

Tobias Oetiker <tobi@oetiker.ch>

HISTORY

 2010-12-22 to 1.0 first version