You have to change LANG
and LANGUAGE
variable in current shell.
Put
export LANG=en_US.UTF-8
export LANGUAGE=en
in your shell rc file ( for bash it is ~/.bashrc
) and restart the terminal session ( or just source the rc file one more time with source ~/.bashrc
or even just restart bash with exec bash
)
Note, that you have to generate this locale before.
Also you can use export LANG=C
.
Also there are other LANG
variables (from man bash
):
LANG Used to determine the locale category for any category not
specifically selected with a variable starting with LC_.
LANGUAGE
Used to set messages languages (as LC_MESSAGES) to a
multi-valued value, e.g., setting it to fr:de:en will use French
messages where they exist; if not, it will use German messages,
and will fall back to English if neither German nor French
messages are available.
LC_ALL This variable overrides the value of LANG and any other LC_
variable specifying a locale category.
LC_COLLATE
This variable determines the collation order used when sorting
the results of pathname expansion, and determines the behavior
of range expressions, equivalence classes, and collating
sequences within pathname expansion and pattern matching.
LC_CTYPE
This variable determines the interpretation of characters and
the behavior of character classes within pathname expansion and
pattern matching.
LC_MESSAGES
This variable determines the locale used to translate double-
quoted strings preceded by a $.
LC_NUMERIC
This variable determines the locale category used for number
formatting.
export LANGUAGE=English
– Stéphane Chazelas Dec 17 '13 at 17:23