Previous Topic: Placing Language-Specific Objects in LibrariesNext Topic: Translating User-Modified Data


Changing a Model Language

Using the CA 2E command Apply Translation to Model (YAPYTRNMDL), you can convert the default model language-specific objects from one language to another. This includes such objects as confirm prompts, function keys, shipped files, and conditions.

Note: Remember, once you convert a model to another national language using YAPYTRNMDL, the default model language is also changed. All subsequent generation will be in the new language.

YAPYTRNMDL does not convert user-modified data. If you use the same model for more than one language, you will need to maintain a set of the following files for each language:

You can change to another language by following the steps below.

To change the language of your created model:

  1. Restore the language libraries Y1SYVnnn and Y2SYVnnn from the product tape, where nnn is the language-specific code.
  2. If the following libraries exist on your machine, add both language libraries above them on the model job description library list.
  3. Verify that the data area YLNGnnnSYA in library Y2SY exists and contains the name of the national language library Y2SYVnnn. If not, create the data area as follows:

    CRTDUPOBJ FROMLIB(YLNGENGSYA) +
     FROMLIB(Y2SY) OBJTYPE(*DTAARA) +
     TOLIB(*SAME) NEWOBJ(YLNGnnnSYA)

  4. Change the value of the data area YLNGnnnSYA in Y2SY to Y2SYVnnn as follows:

    CHGDTAARA DTAARA(Y2SY/YLNGnnnSYA) +
     VALUE(Y2SYVnnn)

  5. To convert default model language objects, run the YAPYTRNMDL command as follows:

    YAPYTRNMDL MDLLIB(model-library) +
     LNG(*nnn)

  6. Enter the model to verify that the translation was successful.
  7. Execute YCVTCNDVAL.

Note: The YAPYTRNMDL command does not change panel literals defined by Edit Database Relations or Edit Functions such as field names and panel titles. However, you can externalize these to messages for translation.

For more information on the YAPYTRNMDL command, refer to the CA 2E Command Reference Guide.