Saving editor options is broken
Original Reporter info from Mantis: Vladimir
-
Reporter name: Vladimir Zhirov
Original Reporter info from Mantis: Vladimir
- Reporter name: Vladimir Zhirov
Description:
Saving color options creates strange element names ("<___>like this&LtPos;/___>") in editoroptions.xml if TSrcIDEHighlighter attributes are translated. The example configuration file is attached.
The problem revealed itself after point 3 of #13572 (closed) was fixed and TSrcIDEHighlighter attributes were translated. It seems translated attributes are not properly saved/loaded to/from xml configuration file.
Steps to reproduce:
- Switch to English (Environment - Options - Desktop - Language).
- Set e.g. "Code folding tree" foreground and background colors to something different from default settings (Environment - Options - Editor - Color).
- Switch to Russian (or any other language that has TSrcIDEHighlighter attributes translated in the appropriate .po file)
- "Code folding tree" color settings were reset to defaults though they were not expected to.
- Set e.g. "Дерево сворачивания кода" (Code folding tree) foreground and background colors to something different from default settings (Окружение - Параметры - Редактор - Цвет).
- You now have strange element names in your editoroptions.xml
Additional information:
Tested against r20994
Mantis conversion info:
- Mantis ID: 14231
- Version: 0.9.27 (SVN)
- Fixed in version: 0.9.28
- Fixed in revision: 21032 (#fb4778a1)
- Target version: 0.9.28