Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

Lazarus_TranslateForm

Translate your application to other languages, easily!

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

Lazarus_TranslateForm

Translate your application to other languages, easily!

Uwage example

pascal
uses ..., Translator;
pascal
procedure TForm1.OnCreate...
begin
  TranslateForm('de', Form1); //translate to German
end;
pascal
procedure TForm1.OnDestroy...
begin
  SaveOriginalTranslations('lang\original_text.txt'); //save text from your components to original_text.txt
end;

` Now when you have original_text.txt you just copy & paste its contents into a translation service (like Google Translate), translate to any language you want (for example German) and save the output as "de.txt". And now your application is ready for German speakers.

By default languages files are loaded by "lang" dir but you can change it with:

pascal
SetTranlationDir("other dir")