Page 1 of 1

translationg picklist from dbgrid comumn

Posted: Mon Mar 26, 2012 7:38 pm
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?

Posted: Tue Mar 27, 2012 6:57 am
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.