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 

translationg picklist from dbgrid comumn

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



Joined: 28 Oct 2006
Posts: 6

PostPosted: Mon Mar 26, 2012 7:38 pm    Post subject: translationg picklist from dbgrid comumn Reply with quote

I have a grid with serveral columns.
I can translate the title.caption but not the picklist
dbgrid.Columns[3].Picklist

is it possible to translate a picklist of a column in a dbgrid?
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Tue Mar 27, 2012 6:57 am    Post subject: Reply with quote

Hello,

You would need to translate this property manually. Something like this:
dbgrid.Columns[3].Picklist.Text := 'Line#1'#13#10'Line#2';
then scan the source with TsiLang Expert and it will replace this to something like this:
dbgrid.Columns[3].Picklist.Text := siLang1.GetTextOrDefault('IDS_PICKLIST');

After that just call this in OnChangeLanguage event of TsiLang.
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