Page 1 of 1

The problem with working with the partition Collections

Posted: Wed Apr 05, 2017 12:38 pm
by Stalker4
Hi,

TsiLang 7.4.0 (7.5.0) , Delphi 7.1

There is a DBGrid with three columns.
Image

In the "Translation Editor - Collections" columns of the grid are displayed as follows:
Image

In the collection editor for DBGrid I swap columns "Column1 L1" and "Column2 L1".
Image

After that, I reopen "Translation Editor - Collections"
And I see that for the language "Language N1" the values have changed, but for "Language N2" has not changed.
Image

How to fix this problem ?

P.S. And the same problem with any collections (not only with a collection of columns).

Posted: Thu Apr 06, 2017 5:08 am
by isiticov
Hello,

Unfortunately it is impossible to track such changes in collections as collection items are not "unique" like other objects and they're arranged just by their sequential order in collection.

Posted: Thu Apr 06, 2017 5:16 am
by Stalker4
Hello,

Do I understand correctly that if the elements of a collection can change places (change their Index), then such collections should be stored not in the "Collections" section, but in the "Strings" section ?

Posted: Sat Apr 08, 2017 6:22 am
by isiticov
Yes, you can use Strings property and OnChangeLanguage event for translating such kind of collection items, just be sure you can properly identify every collection item.