translationg picklist from dbgrid comumn

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
jdbacco
Posts: 6
Joined: Sat Oct 28, 2006 9:40 am

translationg picklist from dbgrid comumn

Post by jdbacco »

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?
Accowin
The Belgian Accounting program
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

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.
Best regards,
Igor Siticov.
Post Reply