TcOpenGroup/tcopen-app-templates

Lanaguage selector not changing the language of mts-s template app [BUG]

KrisztianOlah opened this issue · 2 comments

Describe the bug
Language selector is not working.

To Reproduce
Steps to reproduce the behavior:

  1. Ensure that tarnslations are available for the target languages.
  2. Click on language selector.
  3. Select any language that differs from the default.
  4. Application restarts with the default language.

Expected behavior
Application sets new language and then restarts using said language strings.

Screenshots
image

The above code has no logic for setting any other language than the default.

Bug can be solved by setting Setting.Settings to public in xTemplatexHmi.WPF, removing Setting.Settings from xTemplatexOP and prepending Settings with xTemplatexHmi.WPF.Properties or adding a matching using statement in App.xaml.cs (xTemplatexOP).

closes #99