Messages and Message Translations

Before we go further, letís take a closer look at how messages and message translations are handled in a VPME Multilingual application.

Messages

An applicationís messages are stored in the Messages table, SVPMMessages.dbf.

Message Translations

When you add messages to an applicationís Messages table, you must also add translations of your messages to the Message Translations table, SVPMMessageTranslations.dbf, for the languages in the application. You use the Message Translations form reached from your applicationís Admin menu to create message translations.

Starter Message Translations

VPME creates an applicationís starter Message Translations table from SVPMMessageTranslations.dbf, the New Project Message Translations Template table in VPMEís \NEW PROJECT directory. Message translations from the New Project Message Translations Template table are included for each language you select that has translations in that template table.

Message Translations Records

When you use the Message Manager to create a message, VPME automatically creates Message Translations records when you save the message. You can also create Message Translations records manually using the Message Translations form by clicking the New toolbar button.

Displaying Message Translations

When an application needs to display a translation of a message in the Message table, it finds the translation in the Message Translations table:

∑       Using the Message ID to link from the message record to its translation records, and

∑       Using the Language ID to link to the translation record for the language needed.

Tip: If a matching Message Translations record cannot be found when a message needs to be translated, the message is displayed untranslated.

Now, letís look at the details of how to create message translations.

More:

Creating Missing Message Translations Records