The IlvMessageDatabase Class
Views provides a simple mechanism to help you manipulate multilingual applications. This mechanism is called the messages mechanism and is based on the
It uses a database that stores different translations of the same message. Depending on the current language, the appropriate message is accessed. Each instance of the
Each string that you plan to show in different languages can be stored in the database with its different possible translations; that is, you associate a message identifier with different message strings, depending on the language you target. The language is specified in a symbol object (
IlvMessageDatabase database;
IlSymbol* en_US = IlGetSymbol("en_US);
IlSymbol* fr_FR = IlGetSymbol("fr_FR");
database.putMessage("&cancel", en_US, "Cancel");
database.putMessage("&cancel", fr_FR, "Annuler");
The Views environment variable
Although Views does not support multilingual applications, you can use multiple languages in the same application if they use compatible encodings.