in reply to Writing multilingual perl applications?

I once had a similar problem which I solved with the following structure:
%words = ( 'file_not_found' => { 'de' => "File nichte founden", 'dk' => "Fil ikke fundet", 'uk' => "File not found", } ); print $words{'file_not_found'}->{$lang}."\n";
It makes it easy both add new languages and all you have to add is a 'translate' function which can look up words in the word list, based on phrases and a language indicator. I have the original code if you want to check it out.

Replies are listed 'Best First'.
Re: Writing multilingual perl applications?
by skx (Parson) on Apr 02, 2003 at 16:32 UTC

     I don't see how this deals with the positional problem I referred to in my original post.

     but if you do have code to share perhaps posting it in the snippets section would be useful to others too?

    Steve
    ---
    steve.org.uk