Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Fereous

macrumors newbie
Original poster
Aug 12, 2012
7
0
A funny thing happened since I switched from High Sierra. In Terminal commands like date +%A and date +%B give output in Swedish (”Måndag” and ”Mars”, respectively), but Geektool outputs ”Monday” and ”March” in English. Same thing happens to ncal. The calendar just below (25 mars 2019) runs through icalBuddy and shows Swedish dates.

Geektool 3.3.1 with ”Set locale environment” checked. The date and time control panel is set to Swedish, and the system’s locale is LANG="sv_SE.UTF-8".

Skärmavbild 2019-03-25 kl. 15.01.01.png
 
Last edited:

Kornelis

macrumors member
Dec 4, 2010
79
19
Amsterdam, NL
You could try the following shell command in Geektool:
export LC_TIME=sv_SE.UTF-8 && date +%A

I needed this export command in a geeklet to get the date in Dutch instead of English.
 
  • Like
Reactions: Fereous

Fereous

macrumors newbie
Original poster
Aug 12, 2012
7
0
Thank you! Worked like a charm. Now only the ncal issue is left, but I suppose I could live with that.

Skärmavbild 2019-03-25 kl. 21.50.53.png
 

Fereous

macrumors newbie
Original poster
Aug 12, 2012
7
0
Sorry to say, I’m stumped on this. It ought to work, but doesn’t.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.