Page 1 of 1

TCrDbGrid "FilterBar and SearchBar" translation

Posted: Fri 13 Jul 2007 20:51
by Zsolt Csillag
Hello,


At the upper left corner of a CrDbGrid is a small button that shows after clicking on it the "Filtered","Filter bar" and "Search bar" texts.

Can I somehow translate them to other languages.

It can be annoying to the customer that everything in the program is Hungarian, except these are in English.

Thank you in advance

Posted: Mon 16 Jul 2007 09:37
by Antaeus
You can open the CRGrid unit, and replace constants in the resourcestring sections.
Another way is to create your own popup menu and assign it to CRDBGrid:

Code: Select all

    CRDBGrid.OptionsMenu := PopupMenu1;

TCrDbGrid "FilterBar and SearchBar" translation

Posted: Mon 16 Jul 2007 16:50
by Zsolt Csillag
Hello,

Thank you for the answer.
I replaced the constants in the resourcestring sections.

When I linked the CRGrid.pas directly to my program it worked well, but not globally, not in other programs (I rebuilt them of course).

I deleted all CRGrid.dcu-s, put the CRGrid.pas in a project of mine, rebuilt the project, but the result was the same.

I don't know how to rebuild the whole component of yours. I use Delphi 2006. (In earlier Delphis this was easier - at least to me)

Thank you

Posted: Wed 18 Jul 2007 09:00
by Antaeus
The TCRDBGrid class is included in the crcontrols package. You should uninstall this package (Components\Installed Packages), and delete all CRGrid.dcu entries on your hard drive. Then open the %Mydac for Delphi 2006%\CRDBGrid\Source\Delphi10\crcontrols100.dpk package, build, and install it. Probably it will be necessary to provide path to the CRGrid.pas file in your IDE.

Posted: Thu 19 Jul 2007 12:05
by Zsolt Csillag
Hello,

Thank you very much for your help.
It is working.