Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Programm übersetzen - gute Komponente gesucht (https://www.delphipraxis.net/48911-programm-uebersetzen-gute-komponente-gesucht.html)

Daniel G 2. Jul 2005 20:07

Re: Programm übersetzen - gute Komponente gesucht
 
Zitat:

ich kann GNU Gettext empfehlen. Habe ich selber schon verwendet, und ist wie ich finde doch recht komfortabel. Und ist auch Freeware Wink

http://dybdahl.dk/dxgettext
Aber das wollte er doch gerade nicht! :gruebel:

Zitat:

Zitat von moelski
Ich möchte das nicht über Recourcendateien, Stringlisten, oder dxgettext machen.

Wobei... Sehr viele andere Möglichkeiten gibt es dann ja auch nicht mehr.

Meflin 2. Jul 2005 20:09

Re: Programm übersetzen - gute Komponente gesucht
 
Oha :oops: Das habe ich überlesen.

Aber wenn ihm dxgettext zu viel Aufwand ist, dann kann ich auch nicht mehr helfen :roll: Das funktioniert ja schon fast mit einem einzigen Buttonklick...


manfred_h 15. Feb 2006 12:43

Re: Programm übersetzen - gute Komponente gesucht
 
Zitat:

Zitat von Meflin
Aber wenn ihm dxgettext zu viel Aufwand ist, dann kann ich auch nicht mehr helfen :roll: 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

manfred_h 15. Feb 2006 14:47

Re: Programm übersetzen - gute Komponente gesucht
 
Es funktioniert :-D :-D

hab irgendwo ein Tippfehler oder sowas gemacht.. :pale:

Manfred


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:55 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz