Am I correct in my assumption that shell commands such as cp
, man
, ls
, etc. always print their messages in English regardless of system and user settings, and also standard shell messages like "command not found" are not localizable?
In System Preferences > Language & Text, I tried changing language, region and input source to a different language/locale. I also tried running sudo languagesetup
. Nothing seems to affect the language of shell commands, so I guess it must hard coded to English, but I couldn't find any reference on the internet. If this is not correct, how do you change the shell language in OS X?
Best Answer
If you change
LC_MESSAGES
, it changes the language of error and help messages shown by bash, but only a part of them are translated for many languages:Terminal and iTerm 2 set
LANG
(which changes all actual locale variables likeLC_MESSAGES
) based on the region selected in System Preferences by default.Some GNU/Linux distributions come with man pages in other languages than English, but OS X doesn't. Some Homebrew packages add localized man pages to
/usr/local/share/man/
though:You could for example copy
/usr/share/man/de/
from a Ubuntu VM to OS X, but only a small part of the man pages are translated: