Sign in Join

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

Mailing lists / lazarus / 2016-01

Exclude components from localization by path or text

8 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Denis Kozlov

Hello,

Modern translation software and some IDEs allow you to exclude certain text by:

1) Original text (e.g. "My Program Name")
2) Component path (e.g. TForm1.Label1.Caption)

Can this feature be added to Lazarus IDE?

Regards,
Denis

Reply by email

Denis Kozlov
to Denis Kozlov
Denis Kozlov wrote 7 lines
Modern translation software and some IDEs allow you to exclude certain text by: 1) Original text (e.g. "My Program Name") 2) Component path (e.g. TForm1.Label1.Caption) Can this feature be added to Lazarus IDE?

Is there any interest in such feature?

Reply by email

Denis Kozlov
to Denis Kozlov: Is there any interest in such feature?

I've implemented this feature and attached a patch: http://bugs.freepascal.org/view.php?id=29627

In summary:
1) Added methods to remove entries from TPOFile by identifier and by original text.
2) Implemented storage of excluded identifiers and originals via TProject.
3) Updated translation routines to pass over project's excluded identifiers and originals when updating PO files.
4) Editing of excluded identifiers and originals in i18n project options.
5) Added option to "Force update PO files on next compile" in i18n project options (auto reset, non-persistent). To force update PO files after changing excluded identifiers and originals.

I hope this could be merged into either 1.4 or 1.6 as it's an extremely useful feature for i18n.

Denis

Reply by email