The problem with working with the partition Collections

This forum designated to discuss the TsiLang Components Suite.
Post Reply
Stalker4
Posts: 14
Joined: Wed Apr 05, 2017 7:18 am

The problem with working with the partition Collections

Post 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).

isiticov
Site Admin
Posts: 2204
Joined: Thu Nov 21, 2002 3:17 pm

Post 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.

Stalker4
Posts: 14
Joined: Wed Apr 05, 2017 7:18 am

Post 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 ?

isiticov
Site Admin
Posts: 2204
Joined: Thu Nov 21, 2002 3:17 pm

Post 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.

Post Reply