Forum
× CodeTyphon MS Windows (XP, Vista, Win7, Win8.x and Win10) OS Development, discussions and problems

Question CT-6.10 Win32 BigIDE - SetDeafaultLang('de') does not work

  • gsxr1300
  • gsxr1300's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
4 months 9 hours ago #10884 by gsxr1300
gsxr1300 created the topic: CT-6.10 Win32 BigIDE - SetDeafaultLang('de') does not work
Hello,

i need a MessageDlg with german buttons "Ja" / "Nein" instead of "Yes" / "No"

so i set [x] i18n to enabled and the outputpath to po_files in my project folder

then i copied all files from C:\codetyphon\typhon\lcl\languages to po_files in my project folder

then i try
uses ...  lclstrconsts, LCLTranslator;  
procedure TForm1.FormCreate(Sender: TObject);
begin
   SetDefaultLang('de');
   MessageDlg( ' Lang = ' + GetDefaultLang, 'Text', mtInformation, [ mbYes, mbNo], 0);
end;

GetDefaultLang returns an empty string and the buttons are unchanged "Yes" / "No"

Any Suggestions?

Please Log in or Create an account to join the conversation.

More
4 months 6 hours ago #10885 by Matis A.
Matis A. replied the topic: CT-6.10 Win32 BigIDE - SetDeafaultLang('de') does not work
Files in C:\codetyphon\typhon\lcl\languages
are for Typhon IDE

You must make your projects languages files

CodeTyphon Core Programmer

Please Log in or Create an account to join the conversation.

  • gsxr1300
  • gsxr1300's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
4 months 5 hours ago #10886 by gsxr1300
gsxr1300 replied the topic: CT-6.10 Win32 BigIDE - SetDeafaultLang('de') does not work
I need only the translations for the standard MessageDlg.
is it possible to use the lclstrconsts.xx.po files from C:\lazarus\lcl\languages ?

Please Log in or Create an account to join the conversation.

More
4 months 2 hours ago - 4 months 2 hours ago #10887 by Matis A.
Matis A. replied the topic: CT-6.10 Win32 BigIDE - SetDeafaultLang('de') does not work
I make a small project to help you



NOTE1 : resourcestrings in main form multilangmw.pas
have the same names with lclstrconsts.pas

CodeTyphon Core Programmer
Attachments:
Last Edit: 4 months 2 hours ago by Matis A..

Please Log in or Create an account to join the conversation.

  • gsxr1300
  • gsxr1300's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
3 months 4 weeks ago #10889 by gsxr1300
gsxr1300 replied the topic: CT-6.10 Win32 BigIDE - SetDeafaultLang('de') does not work
thankyou very much, now i know how the localization works.

Please Log in or Create an account to join the conversation.

More
3 months 4 weeks ago #10890 by Matis A.
Matis A. replied the topic: CT-6.10 Win32 BigIDE - SetDeafaultLang('de') does not work
Have fun...

CodeTyphon Core Programmer

Please Log in or Create an account to join the conversation.