Concatenation of localized texts

Hello.

When adding a label in mappView, it’s possible to use a localized text, for example:

<Widget xsi:type="widgets.brease.Label" id="Label" top="10" left="10" width="220" height="60" zIndex="0" text="$IAT/EXAMPLE" />

However, I would like to display text that combines multiple localization IDs. Something like this is not accepted by mappView:

text="$IAT/EXAMPLE $IAT/ANOTHER"

Currently, as a workaround, I’m defining all required combinations in a separate .tmx file. While functional, this approach is quite cumbersome and difficult to maintain.

Is there a better way to dynamically concatenate multiple localized strings in mappView?

Thanks in advance for any suggestions!

1 Like

Hi @Carl_Pracht

In label and textoutput it’s not possible, I know that in MappAlarmList you can display concatened localized text but because it’s defined in the config, I’m not sure that mappView do it.

I can take a look for MappView 6.X to have a recursive check for localized text in a custom label.

Regards,
Florent.

Thanks for the quick response.

Hi @Carl_Pracht
There is a way to do this using snippet and text output.

You can define snippet and bind it to TextOutput like this.
image

image
Output:
image

Best regards
Michal

3 Likes

This looks interesting. Thanks for sharing!