Support forum of the software localization tool Sisulizer


.NET, Delphi, ... - Sisulizer Localization Tool Support Home

Get in contact with the makers of Sisulizer.
Our forum is open for all questions around Sisulizer from customers and prospects.
Don't hesitate to register and ask. The Sisulizer team will answer ASAP.

Search     Help Home Sisulizer Website Download
Search by username
Not logged in - Login | Register 

 Moderated by: Renate.Reinartz, Markus.Kreisel, Jaakko.Salmenius, Ilkka.Salmenius
New Topic Reply Printer Friendly
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
AuthorPost
 Posted: Fri Mar 13th, 2009 06:24 pm
PM Private Upload Quote Reply
djayc
Member
 

Joined: Fri Mar 13th, 2009
Location:  
Posts: 3
Status: 
Offline
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

 

 

 

 

 

 

Back To Top PM Private Upload Quote Reply

 Posted: Fri Mar 13th, 2009 10:36 pm
PM Private Upload Quote Reply
Jaakko.Salmenius
Administrator


Joined: Sat Apr 8th, 2006
Location: Espoo, Finland
Posts: 2178
Status: 
Offline
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 set the Title.Caption value such that it does not match the field name. This way VCL saves it and SL can automatically localize it.
  • You assign the Caption properties on run time using resource strings. This sample uses this method. See TMainForm.FormCreate.
Default columns

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
Back To Top PM Private Upload Quote Reply

Current time is 05:28 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?



WowUltra modified by Sisulizer Copyright © 2007-09 by Jim Hale - Based on WowBB Copyright © 2003-2006 Aycan Gulez

Sisulizer software localization tool - Three simple steps to localize