Recent

Author Topic: possible improvement of i18n exclusions  (Read 2555 times)

Lulu

  • Sr. Member
  • ****
  • Posts: 405
possible improvement of i18n exclusions
« on: September 13, 2023, 10:42:55 am »
Hi all, I'm opening this topic in response to a question from JuhaManninen about i18n exclusions.
The question is here.
In a nutshell for those who are not used to it, i18n exclusion feature avoids repetition of words often used in an application such as OK, Cancel, Preview, etc... these repetitions accur in the generated pot/po files (the application translation files to other languages).

In the form designer, a possible improvement would be to have a tool to add a control to the Identificators or Originals list:
something like a menu entry (when right click on a control)
  • >i18n exclusion>Exclude this control  -> add for example Form1.Label1.Caption to the Identificator list
  • >i18n exclusion>Exclude this caption  -> add the control caption the to Originals list
This would avoid typing errors, for now Lazarus does not generate a message when an entry in the Identificators list is not valid. Maybe it's not that important.

in any case, thanks for this feature!
Regards

Attached a project that use i18n exclusion feature.
wishing you a nice life!
GitHub repositories https://github.com/Lulu04

 

TinyPortal © 2005-2018