Change the fallback language in the HMI

In one of my projects, I want to change the fallback language in the HMI so that, after a restart, the language does not switch back to the original one, but to the one I had selected before.

Is there a way to do that?

Hey Martin,

I did it this way:

  1. Define a string variable as retain
  2. Define an event in mappView which watches value change of retain var
  3. SetLanguage with this action:
    <Method xsi:type="clientSystem.Action.SetLanguage" value="=newValue" />
  4. Bind current language (system variable clientInfo.languageId) from mappView to retain var (oneWayToSource) → current language is saved

Note: ensure that option “OPC UA system → Initial ValueChanged events” in mapp View configuration is enabled.

I hope, this helps :slight_smile:

5 Likes