Autor Beitrag
bigmasterdenis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 48



BeitragVerfasst: Mi 24.10.07 12:46 
Hallo Leute!

Mein Prog soll komplett in englisch sein. Auf einem Windows mit englischer Sprache läuft alles super. Auf einem Windows mit deutscher Sprache sind z.B. die Dialogbuttons auf deutsch. Damit ergeben sich Scherze wie:

Really delete file?
|Ja| |Nein|

Ich hätte allerdings gerne alles komplett auf englisch. Gibt es da eine Möglichkeit dies auf eine einfache Art und Weise hinzukriegen? Oder Muss ich für solche Fälle extra Dialoge schreiben? Für die obere Ja-Nein-Abfrage benutze ich z.B. diese Funktion:

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
function showConfirmDialog(theMessage: String): boolean;

begin
    if (MessageDlg(theMessage, mtConfirmation, [mbYes, mbNo], 0) = id_Yes)
        then result := true else result := false;
end;


Kurz: ich nutze MessageDlg aus Unit Dialogs.

Thanx for help!
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Mi 24.10.07 13:16 
Dann musst du komplett eigene Dialoge basteln, da die Bezeichnungen teilweise von Windows gesetzt werden.

_________________
Markus Kinzler.
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 480

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mi 24.10.07 13:18 
Ich hatte kürzlich dasselbe Problem: klick. Da Sind die Konstanten-Units aufgeführt, die man übersetzen muss.

@mkinzler: Wenn man MessageBox verwendet, stimmt das. Nimmt man die VCL-Funktion MessageDLG, dann ist afaik die Sprache konstant.

_________________
We are, we were and will not be.
bigmasterdenis Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 48



BeitragVerfasst: Mi 24.10.07 13:37 
Danke für eure Hilfe! :-)
Werde nun schauen was sich machen lässt.