setlocale

Use the setlocale command to change the locale setting for the system. It also changes command output to the chosen language.

Syntax

setlocale -localelocale_id

Parameters

-localelocale_id
(Required) Specifies the locale ID. The value must be a numeric value depending on the wanted language. The list in the command description shows the possible values.

Description

This command changes the language in which error messages are displayed as output from the command-line interface. Then, all error messages from the command-line tools are generated in the chosen language. This command is run when you request a change of language (locale).

Specify the setlocale command to change the locale setting for the system; all interface output is changed to the chosen language. For example, to change the language to Japanese, type the following on the command line:

setlocale -locale 3

Where 3 is the value for Japanese. The following values are supported:
  • 0 US English (default)
  • 1 Simplified Chinese
  • 2 Traditional Chinese
  • 3 Japanese
  • 4 French
  • 5 German
  • 6 Italian
  • 7 Spanish
  • 8 Korean
  • 9 Portuguese (Brazilian)
  • 10 Russian

An invocation example (where 3 is Japanese)

setlocale -locale 3

The resulting output:

No feedback

An invocation example (where 8 is Korean)

setlocale -locale 8

The resulting output:

No feedback