Day of the week or Month in a foreign language

Hey guys, i'm a very new shell script user.

I've been looking everywhere for a proper script to display the day of the week or the month, accurately, in a foreign language of my choosing.

Something where i can just type in the appropriate word in a foreign language in the script and get the same result as the day of the week.

Thanks for any advice/help!!!

much appreciated.

  1. What OS do you use?
  2. Try something like:
LANG=bg_BG date

You may learn appropriate value for LANG with

locale -a

I use mac osx

In particular I'd like to use this shell script for a program like geektools.

I've seen some scripts thrown around that say things like:

if [ $i = "days," ]
then p=$c" d�as"

maybe something like this? The script would convert a display of Monday to Lundi...
(in french)

thanks for the reply!