• No results found

Working with multi-language projects

Editing projects 5

5.15 Working with multi-language projects

5.15.1 Project text basics

Texts in different languages in the project

Texts that are output on display devices during processing are typically entered in the language in which the automation solution is programmed. Comments and the names of objects are also entered in this language.

If operators do not understand this language, they require a translation of all operator-relevant texts into a language they understand. You can therefore translate all the texts into any language. In this way, you can ensure that anyone who is subsequently confronted with the texts sees the texts in his/her language of choice.

Editing language and project languages

Every project has an editing language. When you enter texts, these are always created in the editing language.

5.15 Working with multi-language projects 5.15.1 Project text basics

5.15 Working with multi-language projects

Project languages are all languages in which a project will later be used. Based on the editing language, all the texts can be translated to the various project languages.

Text types that can be managed in more than one language

You can, for example, manage the following types of text in more than one language:

Titles and comments

Block titles and block comments

Network titles and network comments

Statement comments from STL programs

Comments in tables

There are two ways of translating texts.

Translating texts directly

You can enter the translations for the individual project languages directly in the "Project texts" table.

Translating texts using reference texts

For smaller amounts of text, you can change the editor language. All the text cells are filled again with the default values and can be filled in the current language.

Note

Using Asian project languages

A language is only available as a runtime language if it has been installed in the operating system. If you want to create a project with Asian fonts, you need to enable the support for the respective language in the operating system. See the documentation for the operating system for details about the procedure.

See also

Text lists (Page 167)

Select project languages (Page 172) Translating texts directly (Page 173) Selecting the language (Page 129) Setting the editing language (Page 172)

Translating texts using reference texts (Page 173)

5.15 Working with multi-language projects

5.15.2 Select project languages

Select project languages

All the texts can be displayed in the same language that you selected for your software user interface. This means that all texts must exist in the corresponding language. You can select the available languages yourself.

Requirement

You are in the project view

A project is open

Procedure

To select the project languages, follow these steps:

1. Click on the arrow to the left of "Languages & resources" in the project tree.

The elements below this are displayed.

2. Double-click on "Project languages".

In the work area, you will see a list of languages that you can select.

3. Select the required languages.

All texts can be displayed in the enabled languages.

5.15.3 Setting the editing language

Setting the editing language

All the texts in the project are created in the editing language. If you change the editing language, all future text input will be stored in the new editing language.

Requirement

You are in the project view

A project is open

Procedure

To change the editing language, follow these steps:

1. Click on the arrow to the left of "Languages & resources" in the project tree.

The low-level elements are displayed.

2. Double-click on "Project languages".

The possible settings for the project languages are displayed in the work area.

3. Select the editing language in "General > Editing language".

5.15.2 Select project languages 5.15.3 Setting the editing language

5.15 Working with multi-language projects

5.15.4 Translating texts directly

Translating texts

If you use more than one language in your project, you can enter translations of individual texts directly in the selected project languages. As soon as you change the language of the software user interface, the translated texts are available in the selected language.

Requirement

You are in the project view

A project is open

You have selected at least one further project language.

Procedure

To translate individual texts, follow these steps:

1. Click on the arrow to the left of "Languages & resources" in the project tree.

The elements below this are displayed.

2. Double-click on "Project texts".

A list with the texts in the project is displayed in the work area. There is a separate column for each project language.

To group identical texts and to translate them all at once, click the "Switch on/off grouping" button in the toolbar.

To hide texts that do not have a translation, click the "Filter for empty texts on/off" button in the toolbar.

3. Enter the translation in the relevant column.

Note

If there is no translation for a text in a particular language, the English text is displayed.

5.15.5 Translating texts using reference texts

Introduction

After changing the editing language, all texts are shown in input boxes in the new editing language. If there is not yet a translation available for this language, the input boxes are empty or filled with default values.

If you enter text again in an input field, this is saved in the current editing language. Following this, the texts exist in two project languages for this input field, in the previous editing language and in the current editing language. This makes it possible to create texts in several project languages.

5.15.4 Translating texts directly 5.15.5 Translating texts using reference texts

5.15 Working with multi-language projects

You can display existing translations for an input box in other project languages. These serve as a comparison for text input in the current editing language and they are known as the reference language.

Note

The "Show reference texts" function depends on the installed products and the open editor.

Requirement

There is at least one translation into a different project language for an input field.

Procedure

To display the translation of an input cell in a reference language, follow these steps:

1. In the "Tasks" task card, select the "Languages & resources" pane.

2. Select a reference language from the "Reference language" drop-down list.

Result

The reference language is preset. If you click in a text block, translations that already exist in other project languages are shown in the "Tasks > Reference text" task card.