Kbase 16409: How to successfuly compile translated application in Editor
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/05/1998 |
|
How to successfuly compile translated application in Editor
DRAFT COPY - Currently under review and edit.
INTRODUCTION:
=============
This Knowledgebase entry describes some hints and tips on how to
successfuly compile and run application translated in Translation
manager from within Procedure Editor.
WHY YOU NEED TO KNOW THIS:
===========================
Since many customers have already asked this question and the answer
is nothing difficult it might be of some use. Most of the customers
say that they translated an application and when compiled and ran
under Translation Manager it works just great but fails when compiled
and run from within rocedure editor.
PROCEDURAL APPROACH:
====================
This entry applies to both versions of Translation Manager (V1 and V2)
There may be three possible cause of the problem that the procedures
are actualy compiled but the translations are not there when run.
1. Project database is not connected when compiling
- Progress does not complain about it but no translation is done.
- To solve this just connect the project database and recompile.
2. CURRENT-LANGUAGE variable is not set before runnign the appliaction
- To solve this set the variable to the language you want to use
e.g. CURRENT-VALUE = "czech".
3. Absolute path specified when compiling
- Progress Compiler (COMPILE statement) is sensitive to path
specified when compiling with LANGUAGES option.
- To avoid that no translation will be done you need to specify the
same path as Translation Manager is using. This path is relative
path to the project "root" directory.
- When an absolute path to a source file is specified compiler does
not complain about it and r-code is generated but no translation
appears when run.
ONLINE PROCEDURES OR UTILITIES:
===============================
The best is to use the facility within Translation Manager itself
because it is aware of it and takes care about specifying proper path.
Progress Application Compiler can also be used but needs to have
specified proper (it means relative) path as used in Translation
Manager.
REFERENCES TO WRITTEN DOCUMENTATION:
====================================
PROGRESS Language Reference - COMPILE statement, CURRENT-LANGUAGE
statement.
Progress Software Technical Support Note # 16409