scmason has asked for the wisdom of the Perl Monks concerning the following question:

Greetings, I have recently had requests for translations of an open source project I wrote and maintain. I have found MANY options for perl internationalization.

http://www.i18ngurus.com/docs/984813293.html

Does anyone have experience using any of these modules? How anout Perl's builtin localization? What I am looking for is something as simple as QT's tr() function. The idea here is that you have a translation table and if you said something like

widget.setText( tr("Hello World") );

Then a lookup and replacement is automtically performed by tr().

Any thoughts?

"Never take yourself too seriously, because everyone knows that fat birds dont fly" -FLC

Replies are listed 'Best First'.
Re: Perl Internationalization
by derby (Abbot) on Jun 29, 2006 at 17:18 UTC

    I think gettext will do what you want.

    -derby
Re: Perl Internationalization
by iguanodon (Priest) on Jun 29, 2006 at 17:13 UTC
    There is no perl builtin equivalent to QT's tr(). I'm not aware of any existing CPAN modules to handle this, some other Monks may be. At a previous job we rolled our own solution, see Re: Writing multilingual perl applications?.