Progress
Internationalization Guide


Compiling Translated Applications

If you use the Progress Translation Manager System to translate your application, you must connect to the appropriate translation databases in addition to any application databases. You can compile all the language editions into a single r-code file by using the LANGUAGES option of the COMPILE statement. This code example specifies the languages to be read from the appropriate translation database or databases. The translated character strings are stored in segments within the r-code:

COMPILE myfile.p LANGUAGES(Dutch,English,American:English,French,German). 

All of the languages in the example list above can use the same code page, ISO8859–1. If the list included Russian, you would have to run this statement again in a separate session with -cpinternal set to a code page that supports Russian so that the r-code would have a valid code page.

If you compile r-code with -cpinternal set to one code page and you run the r-code in a session with -cpinternal set to another code page, the two code pages must be compatible. Progress must be able to convert one code page to the other. There are RCODE–INFO handle attributes that allow you to read information about your r-code and about a session to determine if your code pages are compatible. Table 4–2 lists the RCODE–INFO handle attributes that apply to international or localized applications. See the COMPILE statement and RCODE–INFO handle entries in the Progress Language Reference for more information.

Table 4–2: RCODE–INFO Handle Attributes
Attribute
Description
CODEPAGE
Indicates the code page of text strings stored in the text segment of the r-code.
LANGUAGES
Holds a comma-delimited list of the languages supported by the r-code.

Because r-code compiles with the code page set by -cpinternal, you must set the R-code Out Code Page (-cprcodeout) startup parameter to compile code with another code page. For more information on the -cprcodeout startup parameter, see the Progress Startup Command and Parameter Reference .


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095