Welcome, Guest
Username: Password: Remember me
CodeTyphon MS Windows (Win7, Win8.x, Win10 and Win11) OS Development, discussions and problems
  • Page:
  • 1

TOPIC:

CT-6.10 Win32 BigIDE - SetDeafaultLang('de') does not work 6 years 8 months ago #10884

  • gsxr1300
  • gsxr1300's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
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.

CT-6.10 Win32 BigIDE - SetDeafaultLang('de') does not work 6 years 8 months ago #10885

  • Matis A.
  • Matis A.'s Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 1059
  • Thank you received: 148
Files in C:\codetyphon\typhon\lcl\languages
are for Typhon IDE

You must make your projects languages files
PilotLogic Core Programmer

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

CT-6.10 Win32 BigIDE - SetDeafaultLang('de') does not work 6 years 8 months ago #10886

  • gsxr1300
  • gsxr1300's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
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.

CT-6.10 Win32 BigIDE - SetDeafaultLang('de') does not work 6 years 8 months ago #10887

  • Matis A.
  • Matis A.'s Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 1059
  • Thank you received: 148
I make a small project to help you



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

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

Last edit: by Matis A..

CT-6.10 Win32 BigIDE - SetDeafaultLang('de') does not work 6 years 8 months ago #10889

  • gsxr1300
  • gsxr1300's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
thankyou very much, now i know how the localization works.

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

CT-6.10 Win32 BigIDE - SetDeafaultLang('de') does not work 6 years 8 months ago #10890

  • Matis A.
  • Matis A.'s Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 1059
  • Thank you received: 148
Have fun...
PilotLogic Core Programmer

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

  • Page:
  • 1