std-msg


Synopsis

(std-msg <msg>)

Description

STD-MSG translates the original english message to the current locale language.

If no translation was provided for the string the orginal string is returned.

The current locale language is computed by (std-%local-language) which caches the current language in the global variable *LOCAL-LANGAUGE*. It calls (std-sys-locale).

Translated strings are provided by the global *STD:LOCALIZED-MESSAGES* table from STDLOCAL or by seperate language tables from files named LOCALMSG.<lang>, where <lang> denotes the ISO 639 two character language abbrevation. Eg. DE for Deutsch, EN for English, FR for Francais, JA for Japanese, ES for Espagnol, ....

See the file language.dat for the ISO 639 codes of language abbrevations.

Note

There's no library function yet to initialize the localized message table, namely to search and load any LOCALMSG.<lang> file. The default is to use the library provided message table from STDLOCAL

Arguments

msg: A string or a list of strings in the original english language.

Return Value

The translated string or the original string.

Side Effects

None.

Module

(std-require 'STDINIT)

Defined in STDINIT, but translation ocurs only of STDLOCAL is loaded