Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Writing multilingual perl applications?

by crouchingpenguin (Priest)
on Mar 20, 2003 at 14:44 UTC ( [id://244600]=note: print w/replies, xml ) Need Help??


in reply to Writing multilingual perl applications?

Maybe not the best solution, but you can create a language HoH that contains the translations for different languages. For example:

my $languages = { english => { not_found => 'File not found', }, german => { not_found => 'File nichte founden', }, }

Then in your application you can set the default language like so:

my $language = $languages->{german}; print $language->{not_found};

cp
----
"Never be afraid to try something new. Remember, amateurs built the ark. Professionals built the Titanic."

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://244600]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (8)
As of 2024-04-25 11:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found