http://qs321.pair.com?node_id=1075207


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.