View previous topic :: View next topic |
Author |
Message |
jdbacco
Joined: 28 Oct 2006 Posts: 6
|
Posted: Mon Mar 26, 2012 7:38 pm Post subject: translationg picklist from dbgrid comumn |
|
|
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 |
|
 |
isiticov Site Admin
Joined: 21 Nov 2002 Posts: 2129
|
Posted: Tue Mar 27, 2012 6:57 am Post subject: |
|
|
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 |
|
 |
|