Setup > Languages > Prepare a Project for Multi-language Support > Mark Alarm Text for Translation at Runtime | Setup

Mark Alarm Text for Translation

During project development, you need to mark any alarm text you want change to another language at runtime with a language change indicator.

As of 2018 partial translation of alarm related strings such as "ABC@(DEF)” or “@(ABC)DEF” and multiple markers per sentence such as “@(ABC)DEF@(IJK)” is no longer supported. During compilation, the @ at the beginning of the sentence is accepted and the brackets removed so that the whole sentence will be translated. Any “@(“ encountered in the middle or end of the sentence (anywhere not at the beginning) will trigger a compiler alert message and will be removed.

Note: For alarm related strings the Escape character ^ is removed during compilation. When used immediately preceding a valid translation marker such as ^@(text), it will skip translation and will be removed.

The following table outlines translation marker scenarios and what will happen if:

Scenario

Translated

Display as

Language

Compiler Error message

@(Text)

Yes

Text

In selected language

None

@(Text) some text

No

Text some text

In default language e.g. English

Unsupported syntax for marking translation text, it will not be translated.

Some text @(at the end)

No

Some text at the end

In default language e.g. English

Unsupported syntax for marking translation text, it will not be translated.

         

Some text @(in the middle) and more

No

Some text in the middle and more

In default language e.g. English

Unsupported syntax for marking translation text, it will not be translated.

@(Text) and @(more text)

No

Text and more text

In default language e.g. English

Unsupported syntax for marking translation text, it will not be translated.

@@(Text)

No

Text

In default language e.g. English

Unsupported syntax for marking translation text, it will not be translated.

@(Text @ Text)

Yes

Text @ Text

In selected language

None

Note: @ by itself is regarded as a normal character, translation marker requires @ to be immediately followed by ( and a ) to follow later. The string will appear in the local language DBFs as “Text @Text”. Double layers of translation markers are invalid.

See Also

Published June 2018