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

Mailing lists / lazarus / 2016-01
8 messages · 3 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
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
Is there any interest in such feature?
Is there any interest in such feature?
Yea, sure! It can be very helpful for?localization.
Regards, Ara
Is there any interest in such feature?
I will investigate the implementation of this feature, unless somebody is already working on this.
Very good,Please let us know.
Regards, Ara
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
[...] I hope this could be merged into either 1.4 or 1.6 as it's an extremely useful feature for i18n.
Sorry, only bug fixes can go to 1.6.
Mattias
Thanks Denis.
Regards, Ara