Consultor Eletrônico



Kbase P1458: How to make Progress display the ADM2 error messages in your local language
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   02/10/2006
Status: Verified

GOAL:

How to make Progress display the ADM2 error messages in your local language

GOAL:

How to translate ADM2 standard messages

GOAL:

How to modify ADM2 message

FIX:

Regular Progress error messages depends on a binary file called PROMSGS.
To support localized languages, Progress supplies several PROMSGS files for the most common languages
This allow customer to choose his local language.

However Progress ADM2 messages are not included in this file.

ADM2 uses admmsgs.i include file that containing ADM2 error messages.
admmsgs.i is located under the %DLC%\src\adm2 directory.
admmsgs.i is an that is referenced in the smart.p.

So, in order to modify ADM2 messages, you must follow the steps:

1) Make a backup of the original file smart.r located %DLC%\gui\adm2 directory into another directory or renaming it. This is an important step because if you hit an issue that is using your 'modified' ADM2 code, you need to ensure that you can reproduce it also with the original unmodified ADM2 files.
2) Edit the %DLC%\src\adm2\admmsgs.i file and modify the messages as desired.
3) Compile smart.p file located in the same directory, to create a new smart.r file containing the modification for admmsgs.i.
4) Move the smart.r to %DLC%\gui\adm2 directory.
5) Restart your Progress session to obtain the recent modification.