Einzelnen Beitrag anzeigen

manfred_h

Registriert seit: 4. Nov 2005
Ort: Basel
442 Beiträge
 
Delphi XE2 Enterprise
 
#13

Re: Programm übersetzen - gute Komponente gesucht

  Alt 15. Feb 2006, 12:43
Zitat von Meflin:
Aber wenn ihm dxgettext zu viel Aufwand ist, dann kann ich auch nicht mehr helfen Das funktioniert ja schon fast mit einem einzigen Buttonklick...
Hallo Melfin

seit ein paar Tagen schaue ich mir dxgettext teil an.
( bin ein Delphianfänger )
Leider blicke ich nicht ganz durch.

Die Anpassung von:
Delphi-Quellcode:
GTForm.pas TGTForm = class(TForm)
   This new TForm descendent introduces the RefreshTranslation procedure. When called, this procedure forces the given form (and the components it owns) to refresh itself with the strings for the currently selected language.
This is used by TGTLanguageFrame and thus you should change all your translatable forms to inherit from TGTForm rather than TForm. To do this, simply open the .pas file and replace = class(TForm) by = class(TGTForm), then recompile and everything should work.
Habe ich durchgeführt und auch:

Delphi-Quellcode:
GTLanguageFrame.pas
GTLanguageFrame.dfm
   TGTLanguageFrame = class(TFrame)
   A frame that you can drop on any form and that will let your user choose its language. All updating is done, provided all the forms are descendants of TGTForm.
Basically, you only need to use this one as it will call the others for you.
Aber beim Komilieren der App bekomme ich immer die Fehlermeldung das bei gnugettext:
First chance exception at $7C81EB33. Exception class EAccessViolation with message 'Access violation at address 00403EE8 in module 'Gideons_Admin.exe'. Read of address FFFFFFDC'. Process Gideons_Admin.exe (3216)

Hoffe die Darstellung ist nicht zu unübersichtlich
Köntest Du / Ihr mir einen Tipp geben?

Manfred
  Mit Zitat antworten Zitat