Recent

Author Topic: Translation or Internationalization Question  (Read 269 times)

Aruna

  • Hero Member
  • *****
  • Posts: 776
Translation or Internationalization Question
« on: November 21, 2025, 11:27:44 pm »
I have a lazarus application where the UI is written using Dutch by @Bart. What is the best way to translate this? Say to English to begin with please. Screenshot attached.

When I asked chatGPT it gave me this:
1   Enable i18n in project options
2   Wrap all text in _()   <<<-------------------------- What the @#$! is --()  :-\
3   Compile → Lazarus creates .po files
4   Translate .po files
5   Load translations with SetDefaultLang
6   Run — Lazarus switches language automatically

Is this the correct way to proceed?

wp

  • Hero Member
  • *****
  • Posts: 13334
Re: Translation or Internationalization Question
« Reply #1 on: November 22, 2025, 01:11:29 am »
« Last Edit: November 22, 2025, 01:13:31 am by wp »

Aruna

  • Hero Member
  • *****
  • Posts: 776
Re: Translation or Internationalization Question
« Reply #2 on: November 22, 2025, 02:09:05 am »
Forget ChatGPT... (step #2 is a halluzination)

https://wiki.freepascal.org/Step-by-step_instructions_for_creating_multi-language_applications
Thank you wp I forgot chatGPT can do that at times, and thank you for the link!

 

TinyPortal © 2005-2018