Consultor Eletrônico



Kbase P142013: How to compile applications with multiple languages using the Application Compiler.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   2/26/2009
Status: Unverified

GOAL:

How to compile applications with multiple languages using the Application Compiler.

GOAL:

How to compile code translated with TranMan with the AppBuilder Application Compiler.

FACT(s) (Environment):

Windows
Translation Manager 2.0
Progress 9.x
OpenEdge 10.x

FIX:

When a Translation Manager project database is created in Translation Manager you are asked to specify a source code directory. When source code procedures are added to compile in Translation Manager the references to these procedures are stored in the XL_Instance.proc_name field as a relative path reference to the procedure, from the source code directory. So for example in this case the configuration is as follows:
OpenEdge Working directory - E:\Progress\101C
Application code directory to translate - E:\Progress\101C\Tranman\progs (e.g. E:\Progress\101C\Tranman\progs\example.w)
If the Translation Manager project database has the source code directory 'E:\Progress\101C\Tranman\progs', then the value of the XL_instance.proc_name field will be 'example.w'.
If the Translation Manager project database has the source code directory 'E:\Progress\101C\Tranman', then the value of the XL_instance.proc_name field will be 'progs\example.w'.

When the Application Compiler is used to compile the code with the LANGUAGES option this must be started in a working directory that is the same as the Translation Manager source code directory, and the application source procedures to compile must be specified as they are referenced in the XL_Instance.proc_name field. So if the TranMan source code directory is
'E:\Progress\101C\Tranman\progs', then the compiler session working directory is also this directory and you specify 'example.w' in the application compiler. If the TranMan source code directory is 'E:\Progress\101C\Tranman', then the compiler session working directory is also this directory and you specify 'progs\example.w' in the application compiler.

With the application and translation databases connected, these setting should compile the translations into the resulting r-code file.