Defining the interface language

 

Imagenation is available in several languages. In the Imagenation user interface, you can change the interface and online help language from a drop-down list. (For a list of possible languages, see Languages.) Similarly, the Imagenation API has features for defining the interface language.

To find out what user interface languages are available:

· Use the IN_GetAvailableLanguages function.

The names of all languages are listed in English.

To find out which language is currently being used:

· Use the IN_GetLanguage function.

This function returns both the local and English names of the language.

To select another language:

· Use the IN_SetLanguage function. In this function you specify the English name.

When a user changes the language, Imagenation sends a NotifyLanguageChanged notification, if this notification is registered.

The Imagenation user interface is translated with an application called Lingo. The interface files that are produced are called language tables. You can register a language table for use in the API by calling the IN_RegisterLanguageTable function.

An include file that contains strings with identifiers is also produced by Lingo. After a language table is registered, you can request specific strings in it by using the IN_GetLanguageString function.

To unregister a language table, use the IN_UnregisterLanguageTable function.

See also

Controlling notifications and queries