Kbase 18477: TranMan : How do I recompile one program in a kit?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  14/04/2000 |
|
TranMan : How do I recompile one program in a kit?
Title: TranMan : How do I recompile one program in a kit?
KnowledgeBase number: 18477
Creation Date: 12/31/98
Modified Date:
This document applies to: Translation Manager 2
Version and Release Number:
Summary:
--------
While using TranMan, changes may be made to one program in a kit.
Often, to do the neccessary 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.
(see details in Kbase 16462)
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"
References To Written Documentation
-----------------------------------
Kbase 15944 - Using TranMan 2.0 to translate character mode applications.
Kbase 16462 - Using TranMan II to translate a character mode application.
( FSI - SK )