Consultor Eletrônico



Kbase P60762: TranMan: How to recompile one program in a kit
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   12/08/2004
Status: Unverified

GOAL:

How do I recompile one program in a kit?

GOAL:

How to successfully compile translated application in the Procedure Editor.

FACT(s) (Environment):

Translation Manager 2.0

FIX:

While using TranMan, changes may be made to one program in a kit.
Often, to do the necessary compile to integrate these changes takes
far too long and seems inefficient since only one of the programs has
changes in it, while the others have remained the same. With this in
mind, the question often arises: Is there a way to recompile just the
program in a kit that has had changes made to it?

Assuming that procedure was already translated and consolidated, the
answer is Yes. The solution is as follows.

Step by step details:
---------------------
Use the COMPILE statement with the LANGUAGE option.
This would be done while connected to the application database (if
applicable) and the TranMan database.

For instance, if you have a new.p which references the SPORTS
database, you should:

-start a progress session
-connect to the sports database
-connect to the TranMan project database in the procedure editor
-COMPILE VALUE("trans
ew.p") LANGUAGES ("English,Spanish") SAVE.
***(assuming that there is an English and a Spanish translation)***

Again, you have to make sure that the procedure name is relative.

For instance, if you start TranMan in the d:/9/ade and load
procedures from d:/9/ade/trans
ew.p, the procedures in TranMan are
stored as "trans
ew.p". Since this is the case, the COMPILE
statement must be in the form:

COMPILE VALUE("trans
ew.p") LANGUAGES ("English,Spanish") SAVE.

and NOT:

COMPILE VALUE("d:/9/ade/trans
ew.p") LANGUAGES ("English,Spanish")
SAVE.
or:
COMPILE VALUE("new.p") LANGUAGES ("English,Spanish") SAVE.

Compile the source code with the languages option. Multiple
languages can be specified at this time (only languages in the
TranMan 2 DB should be specified).

COMPILE VALUE("trans/initial.p") LANGUAGES("English,Spanish") SAVE.

Run the compiled code with the languages startup parameter.
Only one language may be chosen at this time.

For example, -lng "french"

You can test by either:

(in procedure editor)

CURRENT-LANGUAGE = "Spanish".
RUN VALUE("trans/initial.p").

(at the command line)

pro -p trans/initial.p -lng "Spanish"