tests/wxHMI/beremiz.xml
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Wed, 29 Aug 2018 18:53:02 +0300
changeset 2301 5b8a7dd43f9f
parent 2231 7d87a0f98345
permissions -rw-r--r--
Avoid usage of localized strings before initialization during import in many modules

This happens if import is done before i18n setup
(InstallLocalRessources()).
This affects PLCOpenEditor mostly. Beremiz IDE is free from this issue, but moving
initialization from import should make modules more robust.
Otherwise execution result depends on where and when import was done
and this is not a good thing.

Some modules (ConfigTreeNode, features, CodeFileEditor related
classes) still have this, but they are used only in Beremiz.
Most problems result in non-working internatialization.
In some cases (VariablePanel) there is backtrace, because localized
key is not found in non-localized dictionary.
2231
7d87a0f98345 Explicitly enable required libraries in test projects
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1465
diff changeset
     1
<?xml version='1.0' encoding='utf-8'?>
7d87a0f98345 Explicitly enable required libraries in test projects
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1465
diff changeset
     2
<BeremizRoot URI_location="LOCAL://">
7d87a0f98345 Explicitly enable required libraries in test projects
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1465
diff changeset
     3
  <TargetType/>
7d87a0f98345 Explicitly enable required libraries in test projects
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1465
diff changeset
     4
  <Libraries Enable_Python_Library="true"/>
7d87a0f98345 Explicitly enable required libraries in test projects
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1465
diff changeset
     5
</BeremizRoot>