Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Translate cal's weekdays into other languages' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Translate cal's weekdays into other languages
Authored by: Greedo on Jun 17, '03 03:43:32PM

The "proper" way to do this would be to use the LANG environment variable to define what language to show text in. However, it doesn't appear that OS X has proper locale support, or cal wasn't built with it.

On most *nixes, you could do:

export LANG=fr_FR
cal

Oh well ... I bet the fink version of cal supports this.



[ Reply to This | # ]
locale
Authored by: hayne on Jun 17, '03 05:52:46PM
While OS X does support locale, programs need to be explicitly written to use the locale facility in order for it to have any effect. The 'cal' program does not make any effort to use other languages. The source code shows the following:
char *month_names[12] = {
        "January", "February", "March", "April", "May", "June",
        "July", "August", "September", "October", "November", "December",
};
char *day_headings = " S  M Tu  W Th  F  S";
And which "fink version of cal" were you referring to? I don't see any version of 'cal' available from fink.

[ Reply to This | # ]
locale
Authored by: Greedo on Jun 17, '03 07:55:18PM

I spoke too soon about fink. You are right: there is no cal package in fink. I just assumed there was. Oops!



[ Reply to This | # ]