Autor Beitrag
wk_one
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 17


D7 Professional
BeitragVerfasst: Mi 11.06.03 14:22 
Hallo,

wie kann ich die im Betriebssystem verwendete Sprache bzw. das Eingabegebietsschema ermitteln? :?:

Soll auf allen Windows versionen ab Win98 funktionieren.

Danke schonmal im Voraus
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Mi 11.06.03 15:40 
Hallo!

Mit Hilfe der Funktionen GetSystemDefaultLangID und VerLanguageName kannst Du die Sprache bekommen.

Ich schreibe gleich mal dafür einen FAQ Beitrag. Wenn dieser fertig ist poste ich hier den Link.

Gruß
Tino
Tana´Ri
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 230



BeitragVerfasst: Mi 11.06.03 15:41 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
function GetOSLanguage: string;
var
  LanguageID:LangID;
  Language: array [0..100of char;
begin
  LanguageID:=GetSystemDefaultLangID;
  VerLanguageName(LanguageID,Language,100);
  Result:=String(Language);
end;


Moderiert von user profile iconTino: Delphi-Tags hinzugefügt.

_________________
mfg
Tana´Ri
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Mi 11.06.03 15:47 
Hier der FAQ Beitrag: ... die Systemsprache ermitteln?

Gruß
Tino
Burgpflanze
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 67

Windows2000 Prof. SP4
Delphi7 Enterprise
BeitragVerfasst: Di 17.06.03 03:01 
@Tino

Wäre es nicht besser, wenn man GetUserDefaultLangID nimmt?



Gruss, Burgpflanze
wk_one Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 17


D7 Professional
BeitragVerfasst: Mi 18.06.03 14:29 
Titel: hmm.. wie auch immer
ich hab jetzt Tino's beispiel verwendet und es funzt optimal.
Danke euch allen :D