Kbase P28104: how to change the session -lng current language
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  6/27/2003 |
|
Status: Unverified
GOAL:
how to change the session -lng current language
GOAL:
How to use different text language segments within a single session.
FIX:
Use the CURRENT-LANGUAGE Function to change the session language. But in order for this work the application must be structured so that it uses CURRENT-LANGUAGE as described in the help text for the function, i.e.
The behavior of CURRENT-LANGUAGE when one procedure calls another is as follows:
- If a procedure changes the value of CURRENT-LANGUAGE, calls from the procedure to the CURRENT-LANGUAGE function return the name of the new language, but the procedure continues to use the character strings of the original language.
- If the procedure then runs another procedure, when the called procedure gets control, calls from the called procedure to the CURRENT-LANGUAGE function return the name of the new language, and the called procedure uses the character strings of the new language.
- When the called procedure finishes and control returns to the original procedure, calls from the original procedure to the CURRENT-LANGUAGE function return the name of the new language, but the original procedure continues to use the character strings of the original language.