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.
In reply to Re: Translate the names of the dates using perl
by GotToBTru
in thread Translate the names of the dates using perl
by corfuitl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |