Consultor Eletrônico



Kbase P54666: Is it possible to deploy TranMan to compile on the fly a translation?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   6/11/2009
Status: Unverified

GOAL:

Is it possible to deploy TranMan to compile on the fly a translation?

GOAL:

Is there a way to compile a translation using TranMan at run time ?

FACT(s) (Environment):

All Supported Operating Systems
Progress 8.x
Progress 9.x
OpenEdge 10.x
OpenEdge Category: I18N

FIX:

The answer is no
The reason is that to be able to use translation from TranMan you need the Following:
1. A Project Database for the translation.
2. A List of Procedures that belong to the application you want to translate in the Translation Project.
3. A list of Text strings that belongs to the Listed Procedures of the Translation Project.
4. A list of Equivalence of the target languages you need to have translated to the target language.

Once you have performed those steps you will compile the procedures defining a target language and then the translations strings will be added to the R-Code in the text segment of the R-Code.

Once you have performed all the above then you will need to start a session by specifying the -lng (Language) Startup parameter, that will tells the R-Code which text segment to take.

If there is need to compile on the fly or to work with different languages, without using TranMan, it is possible to assign different labels for the fields by using 4GL and check the current languagelike this:

For example:


DEFINE HLABEL AS HANDLE.
IF CURRENT-LANGUAGE = "FRENCH" THEN DO:
HLABEL = ITEM.ITEMNUM:SIDE-LABEL-HANDLE.
HLABEL:SCREEN-VALUE IN FRAME {&FRAME-NAME} = "Numero d'article".
END.
IF CURRENT-LANGUAGE = "SPANISH" THEN DO:
HLABEL = ITEM.ITEMNUM:SIDE-LABEL-HANDLE.
HLABEL:SCREEN-VALUE IN FRAME {&FRAME-NAME} = "Numero de articulo".
END.
IF CURRENT-LANGUAGE = "GERMAN" THEN DO:
HLABEL = ITEM.ITEMNUM:SIDE-LABEL-HANDLE.
HLABEL:SCREEN-VALUE IN FRAME {&FRAME-NAME} = "Artikel Nummer".
END.