[DUG] dxGetTex and Report Builder.
David Brennan
dugdavid at dbsolutions.co.nz
Mon Jun 29 10:42:25 NZST 2015
Hi Willie,
We use GnuGetText and ReportBuilder 14.08 in Delphi 2007/XE3/XE7. Our reports are now datamodule descendants instead of forms but that is a fairly recent change and it worked fine prior to that.
So in datamodule/formcreate we have:
gnugettext.TranslateComponent(Self);
And our GnuGetText initialisation for ReportBuilder is:
//Report Builder
TP_GlobalIgnoreClassProperty(TppField,'FieldName');
TP_GlobalIgnoreClassProperty(TppField,'FieldAlias');
TP_GlobalIgnoreClassProperty(TppPrintable,'DataField');
TP_GlobalIgnoreClassProperty(TppPrintable,'DataPipelineName');
TP_GlobalIgnoreClassProperty(TppPrintable,'UserName');
TP_GlobalIgnoreClassProperty(TppReport,'ArchiveFileName');
TP_GlobalIgnoreClassProperty(TppReport,'TextFileName');
TP_GlobalIgnoreClassProperty(TppCustomReport,'DataPipelineName');
TP_GlobalIgnoreClassProperty(TppCommunicator,'UserName');
TP_GlobalIgnoreClassProperty(TppGroup,'UserName');
TP_GlobalIgnoreClassProperty(TppGroup,'BreakName');
TP_GlobalIgnoreClassProperty(TppCustomText,'Username');
TP_GlobalIgnoreClassProperty(TppMasterFieldLink,'MasterFieldName');
TP_GlobalIgnoreClassProperty(TppMasterFieldLink,'DetailFieldName');
TP_GlobalIgnoreClassProperty(TppRichText,'RichText');
I don’t guarantee this is correct – for example arguably UserName should be translated but we don’t currently use the user designer so we don’t care what the display names of components are.
I can guarantee that we don’t get any AVs using 14.08 though. I don’t think we’ve tried ReportBuilder 15, we did try 16 briefly but we haven’t upgraded to it and its just possible we didn’t play with it enough to notice AVs.
Cheers,
David.
From: delphi-bounces at listserver.123.net.nz [mailto:delphi-bounces at listserver.123.net.nz] On Behalf Of Willie
Sent: Monday, 29 June 2015 9:46 a.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: [DUG] dxGetTex and Report Builder.
Hi,
I’m doing some translation work using dxgettext, mostly it is working OK but I’m running into issues with ReportBuilder (Delphi XE2 RB 15.04) where I am getting an access violation when running the TranslateComponent() method on the formcreate of the form that has the RB report. The issue seems to arise at the very end of the method where it is “freeandnil”ing the stringlists, specifically the donelist.
I assume it’s just a matter of adding the correct “ignore” reference for dxgettext but I can’t work out what exactly to ignore.
Has anyone got this working, i.e. used dxgettext and ReportBuilder?
TIA
Willie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20150629/b9fe2d00/attachment.html
More information about the Delphi
mailing list