Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Translate the names of the dates using perl

by GotToBTru (Prior)
on Feb 17, 2014 at 19:25 UTC ( #1075207=note: print w/replies, xml ) Need Help??


in reply to Translate the names of the dates using perl

It looks like $day contains the name of the day, and nothing else. You need to tell the program to print the "Today is".

print "Today is "; given ($tgt) { when("fr_fr") { print $day" ; } when("it_it") { print $day" ; } default { print $day" ; } }

If you want "Aujourd'hui est lundi" or "Oggi lunedi", you need to substitute those in the line for each language.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2021-04-13 21:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?