Consultor Eletrônico



Kbase P52926: Dynamics: How to translate browser's popup menu items labels
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   21/05/2004
Status: Unverified

GOAL:

Dynamics: How to translate browser's popup menu items labels

GOAL:

How and where to make translations for the browser's popup menu items

FACT(s) (Environment):

Dynamics 2.0A

FACT(s) (Environment):

Dynamics 2.1A

FIX:

In order to translate browser's popup menu items, create an override of
the procedure 'createPopupItem' located in the adm2/browser.p super procedure
and use the Localization Manager API to translate these items as Text.
The required steps are:
1. In the Dynamics Administration window choose menu 'Application' and
menu item 'Translation Control' to launch the 'Translation Control' tool
2. In the adm2/browser.p locate internal procedure 'CreatePopupMenu'
3. Locate all required text for the menu item labels such as '&Move Columns',
'&Sort Columns', etc.
4. Use these labels in the 'Translation Control' tool to create translations
5. Create an override of the procedure 'createPopupItem' (also located in the
adm2/browser.p)
6a. In the override procedure 'createPopupItem', right after the parameter
definitions, call the Localization Manager API function 'translatePhrase'
passing the text obtained in the 'pcLabel' input parameter and using the
current user language obj.
6b. Set the 'pcLabel' to the value as returned by the 'translatePhrase' API call
which will cause that translated values appear in the browse popup menu items.