Show TOC

Translating Language Dependent AttributesLocate this document in the navigation structure

Use

When you develop your composite application, you can set business object attributes of the type STRING to be language dependent. This way you can translate business data using an automated procedure. Translation process can be performed on different systems for translation and then the translated content is imported back into CAF backend.

Prerequisites
  • You have developed a composite application and set the translatable business object node attribute property Language to true on the Structure tab page.

    More information: Modeling Business Object Attributes

  • You have generated, built and deployed your application on the server.
Procedure
  1. Export the database content of the business object nodes you have set to be translation relevant. Note that that at least one instance of the BO should be created and then it should be transported.

    More information: Transporting CAF Content Between Different Composites

  2. Create or reuse a Dictionary development component.

    More information: Creating Dictionary Development Components

  3. Choose File  → Import  →   Translation → DB Content.
  4. Select the XML files with database content you want to import. You have exported the XML files in the previous steps.
  5. From the Type dropdown box, select the type of application you want to translate. In this case it is a CAF application.
  6. Select a target language from the Available Languages dropdown box and choose Next. The available languages in the XML file are listed.
  7. Select the application that is relevant for translation.
  8. Choose Finish.

    An XLF file is imported in your application with the target language you chose in the previous step. Rename the file as follows: <name of the old file>_<target language>.xlf.

    Tip

    If you re-import a file you have already translated, a dialog pops up asking if you want to overwrite the file. To update the information in the file, choose OK. Then the existing and the newly imported files will be merged. If you change the file name a new file will be created with none of the old information.

  9. To translate the language dependent attributes, edit the imported XLF file with an appropriate editor.
  10. Save, build and deploy your application on the server.

    More information: Deploying Dictionary Development Components

Result

The newly translated content is imported into the database after you deploy the application on the server. The application can be used in the translated language.