Kbase 15944: Using TranMan 2.0 to translate character mode applications
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  4/14/2000 |
|
Using TranMan 2.0 to translate character mode applications
The following are the steps required to use Translation Manager 2
to translate character mode applications, on another platform.
1.) On any platform where the source code exists compile the source
with the STRING-XREF option.
2.) Move the xref output file to the Windows system where the
Translation Manager 2 resides.
3.) Run Translation Manager and go through the steps to create a
project EXCEPT you skip the Extract step on the Data tab.
During the Load step, use the .xrf file that was created
on the other platform.
4.) Translate strings into other language(s).
Assuming you have a file w/ the following code:
/* d:/8/ade/trans/initial.p */
DEFINE VARIABLE l-capital AS CHARACTER INITIAL "D.C." NO-UNDO.
DEFINE VARIABLE l-country AS CHARACTER INITIAL "U.S." NO-UNDO.
MESSAGE l-capital l-country VIEW-AS ALERT-BOX.
where TranMan is started from dir d:/8/ade/
project name is p-initial
languages of "English" and "Spanish" are defined
and the strings are translated to "D.F." and "Mexico" when translating
from English to Spanish.
The user should verify that the initial value are indeed translated by
using menu Build->Compile and Build->Run. Running in both English and
Spanish.
5.) Dump the .df and .d files from the TranMan 2 DB.
For example: p-initial.df
xl_cust.d
xl_glsry.d etc.
6.) Move these files to the target system.
ftp or whatever
7.) Create an empty DB on the target system (make sure that the DB
name is the same as the original TranMan 2 DB) and load the
table definitions and data into this new DB.
prodb empty p-initial
8.) Using the Procedure Editor or Application Compiler on the target
system, connect to both the application DB and the new TranMan
2 DB.
connect to p-initial with logical name of "xlatedb"
make sure that all files are placed in a directory structure identical
to the one in the PC (where TranMan was used)
For instance, if you will be starting the PROGRESS session in the dir
/users/devp/user1
then the initial.p should be placed in
/users/devp/user1/trans
such that the HOME dir for the PROGRESS session will look at
trans/initial.p
THIS IS KEY TO MAKING THIS WORK CORRECTLY.
9.) 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.
10.) 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").
or (at the command line)
pro -p trans/initial.p -lng "Spanish"
NOTE: Steps 5 - 7 are only necessary when compiling translated code
on a non DOS or Windows system.
Progress Software Technical Support Note # 15944