Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Writing localized Perl apps

by allolex (Curate)
on Apr 30, 2004 at 22:26 UTC ( #349539=note: print w/ replies, xml ) Need Help??


in reply to Writing localized Perl apps

I use POSIX locales with HTML::Template or SSI for internationalization. It works pretty well. I'm sure any decent templating system would do (Template Toolkit, anyone?).

use locale; use POSIX 'locale_h'; my $loc = "de_DE.utf-8"; setlocale(LC_CTYPE, $loc) or die "Invalid locale $loc";

This code is probably from perllocale, which is another great source for this sort of thing.

BTW AM/PM is AFAIK strictly an Anglophone thing. No other language uses it. But the one that really gets you is the decimal/comma inversion on the European continent: 3,14 vs 300.000.000 EUR or 300 000 000 EUR. =)

--
Damon Allen Davison
http://www.allolex.net


Comment on Re: Writing localized Perl apps
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2015-07-02 05:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (29 votes), past polls