[Patch] Exclude components from i18n by identifier or original text
Original Reporter info from Mantis: dezlov
-
Reporter name: Denis Kozlov
Original Reporter info from Mantis: dezlov
- Reporter name: Denis Kozlov
Description:
Modern translation software and some IDEs allow you to exclude certain text by:
- Identifier (e.g. TForm1.Label1.Caption)
- Original text (e.g. "My Program Name")
This patch here adds this feature to Lazarus IDE.
In summary:
- Added methods to remove entries from TPOFile by identifier and by original text.
- Implemented storage of excluded identifiers and originals via TProject.
- Updated translation routines to pass over project's excluded identifiers and originals when updating PO files.
- Editing of excluded identifiers and originals in i18n project options.
- 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.
Additional information:
Mailing list:
http://lists.lazarus.freepascal.org/pipermail/lazarus/2016-February/097127.html
Mantis conversion info:
- Mantis ID: 29627
- Fixed in version: 1.8
- Fixed in revision: 51589 (#45daca32)
- Monitored by: » dezlov (Denis Kozlov)