tests/modbus/beremiz.xml
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Wed, 29 Aug 2018 18:53:02 +0300
changeset 2301 5b8a7dd43f9f
parent 2252 de3f7c183e62
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.
2252
de3f7c183e62 Add Modbus example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents:
diff changeset
     1
<?xml version='1.0' encoding='utf-8'?>
de3f7c183e62 Add Modbus example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents:
diff changeset
     2
<BeremizRoot xmlns:xsd="http://www.w3.org/2001/XMLSchema" URI_location="LOCAL://">
de3f7c183e62 Add Modbus example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents:
diff changeset
     3
  <TargetType>
de3f7c183e62 Add Modbus example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents:
diff changeset
     4
    <Linux/>
de3f7c183e62 Add Modbus example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents:
diff changeset
     5
  </TargetType>
de3f7c183e62 Add Modbus example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents:
diff changeset
     6
</BeremizRoot>