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

Im just starting to make a program in Perl, once done i will post it online and i thought adding multiple-language support would be a good idea.

How should i go about this ?
The language text will be for the menus, labels, buttons and other Tk objects.

Note: i would like for this to be dynamic, so i can release the program in the English language and then have "other" downloads containing different language packs which the end user could download and then "import" them to the program.

In PHP i would use a database or text files, but in Perl i do not know the best way to go about this.

Any suggestions would be great, thanks.

_

Replies are listed 'Best First'.
Re: Multiple-language support
by Corion (Patriarch) on May 23, 2010 at 22:12 UTC

    In Perl, maybe unsurprisingly, often databases or text files are used for the same task. Also look at what PO and/or MakeText/GetText or i18n return.

Re: Multiple-language support
by biohisham (Priest) on May 24, 2010 at 04:37 UTC
    Though, it seems that Tk can have multiple language support for left-to-right languages it is still doubtful that it can have support for languages that are written right-to-left, however, a recent post by Swalif suggests that this might be possible.


    Excellence is an Endeavor of Persistence. Chance Favors a Prepared Mind.