SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The problem with working with the partition Collections

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite
View previous topic :: View next topic  
Author Message
Stalker4



Joined: 05 Apr 2017
Posts: 9

PostPosted: Wed Apr 05, 2017 12:38 pm    Post subject: The problem with working with the partition Collections Reply with quote

Hi,

TsiLang 7.4.0 (7.5.0) , Delphi 7.1

There is a DBGrid with three columns.


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


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


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.


How to fix this problem ?

P.S. And the same problem with any collections (not only with a collection of columns).
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Thu Apr 06, 2017 5:08 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Stalker4



Joined: 05 Apr 2017
Posts: 9

PostPosted: Thu Apr 06, 2017 5:16 am    Post subject: Reply with quote

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 ?
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Sat Apr 08, 2017 6:22 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group