|
|||
|
.NET, Delphi, ... - Sisulizer Localization Tool Support > Technical Support (You need to be registered at the forum to write) > Wish list for software localization tool > How To Add TDBGrid.Columns.Title.Caption for translation?
|
| Moderated by: Renate.Reinartz, Markus.Kreisel, Jaakko.Salmenius, Ilkka.Salmenius |
|
||||||||||||||||
| How To Add TDBGrid.Columns.Title.Caption for translation? - Wish list for software localization tool - Technical Support (You need to be registered at the forum to write) - .NET, Delphi, ... - Sisulizer Localization Tool Support | |||||||||||||||||
| Author | Post | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|||||||||||||||||
|
djayc Member
|
Hello, I'm evaluating your SISULIZER software for my delphi apps. I was trying edit TDBGrid component to enable the translation of the Columns.Title.Caption property. I added: Columns.Title.Caption mode included status custom ?Don't know what this is? type string However, it did not work. Do i have to do anything else? Thanks, Duarte
|
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Jaakko.Salmenius Administrator
|
I have attached a sample that shows how to localized Title.Caption of TDBGrid. The application is for Delphi 2009 but can be compiled with earlier versions. When you use TDBGrid you have two options. Either you populate TDBGrid.Columns manually on design time or you leave it empty and VCL populates the column on run time. Design time columns You use Delphi IDE to add the columns that you want to be visible. Each TColumn contains Title.Caption property that specifies the caption that is shown on the grid. Unfortunately VCL does not save the Caption property into DFM if the value of the Caption equals to the name of the field in the database. In this sample the field names are plain English and this is why even if you add columns manually the values are not saved to DFM Columns = < item Expanded = False FieldName = 'Id' Width = 30 Visible = True end ... No Caption property here. To localize captions you have two options.
You don't populate the columns and this makes VCL to automatically populate it on run time. There is not Columns data in DFM so SL can not automatically localize the columns. You have to assign the Caption properties on run time. See TMainForm.FormCreate. Jaakko Attachment: GridSample.zip (Downloaded 1 time)
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
| Current time is 02:06 am | |
| .NET, Delphi, ... - Sisulizer Localization Tool Support > Technical Support (You need to be registered at the forum to write) > Wish list for software localization tool > How To Add TDBGrid.Columns.Title.Caption for translation? | |
Sisulizer software localization tool - Three simple steps to localize