International Messages

The standard set of messages for built-in Mathematica functions are written in American English. In some versions of Mathematica, messages are also available in other languages. In addition, if you set up messages yourself, you can give ones in other languages.

Languages in Mathematica are conventionally specified by strings. The languages are given in English, in order to avoid the possibility of needing special characters. Thus, for example, the French language is specified in Mathematica as .

$Language="lang"set the language to use
$Language={"lang1","lang2",...} set a sequence of languages to try

Setting the language to use for messages.

This tells Mathematica to use French-language versions of messages.
In[1]:=
Click for copyable input
Out[1]=
If your version of Mathematica has French-language messages, the message generated here will be in French.
In[2]:=
Click for copyable input
Out[2]=
symbol::tagthe default form of a message
symbol::tag::Languagea message in a particular language

Messages in different languages.

When built-in Mathematica functions generate messages, they look first for messages of the form , in the language specified by $Language. If they fail to find any such messages, then they use instead the form without an explicit language specification.

The procedure used by built-in functions will also be followed by functions you define if you call Message with message names of the form . If you give explicit languages in message names, however, only those languages will be used.

New to Mathematica? Find your learning path »
Have a question? Ask support »