Show TOC

Translating Language-Specific Attributes in BPMLocate this document in the navigation structure

Prerequisites

  • You have created a Process Composer project and elements containing language-specific attributes.

  • You have opened the Process Development perspective in the Developer Studio and have expanded your project in the Project Explorer view.

Context

When you model a process, language-specific content is automatically stored in a resource file. For different types of elements containing text, a corresponding resource file is created. These files are of S2X format and use the XLF file extension. To edit XLF files, you use the S2X editor in the SAP NetWeaver Developer Studio.

In SAP NetWeaver Business Process Management (BPM) translation is supported for the following elements:

Element

XLF File

Located in Node

Process

<process name>.bpmn.xlf

bpmn

Task

<task name>.task.xlf

tasks

Function

<function name>.function.xlf

functions

Ruleset/Flow Ruleset

<ruleset/flow ruleset name>.function.xlf

functions

Event Trigger

<event trigger name>.eventdef.xlf

triggers

Reporting Data Source

<reporting data source name>.eventdef.xlf

reporting

You have to translate only attributes that are flagged with yes in the Translate column of the S2X editor.

The XLF files contain the texts in the language that you determined when you created the Process Composer project. For every language version other than this original language, you create a copy of the XLF file and enter the language-specific translations. Languages other than the original language are referred to as source languages.

Translated texts are included in the build when you build your project and are displayed at runtime after you deploy the project to the application server. For example, you can see translated task attributes when you log into the Universal Worklist (UWL) to execute a task. Displaying the translated text depends on the language defined for the user with which you log into the UWL.

If no translation is available, the task is displayed in the original language.

Procedure

  1. Expand the src node and then expand the corresponding node containing the XLF file you want to translate.
  2. Copy the XLF file within its node.

    Number of copies depends on the number of languages you want to translate to.

  3. Add an underscore (_) and the corresponding two-character language code according to ISO standard to the name of a copied XLF file before the XLF extension.
    Example

    The name of the original process attributes XLF file is MyProcess.bpmn.xlf and you want to translate the attributes to German. You add an underscore (_) and de , which is the language code for German. The result is a file named MyProcess.bpmn_de.xlf .

  4. In the context menu of the language-specific file, choose Start of the navigation path Open With Next navigation step S2X Document Editor End of the navigation path.
  5. On the Header tab page, select a source language from the Source Language dropdown list.
  6. On the Resource Text tab page, select an entry relevant for translation and choose the Edit pushbutton.
  7. Enter the required translation and choose the OK pushbutton.
  8. Save, build, and deploy your project.