Re: [Lazarus] Exclude components from localization by path or text
Thanks Denis. Regards, Ara -- http://www.fastmail.com - mmm... Fastmail... -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Exclude components from localization by path or text
>[...] > 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 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Exclude components from localization by path or text
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 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Exclude components from localization by path or text
Very good,Please let us know. Regards, Ara -- http://www.fastmail.com - The professional email service -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Exclude components from localization by path or text
I will investigate the implementation of this feature, unless somebody is already working on this. On 08/02/2016 07:19, Denis Kozlov wrote: 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) Is there any interest in such feature? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Exclude components from localization by path or text
> Is there any interest in such feature? Yea, sure! It can be very helpful for localization. Regards, Ara -- http://www.fastmail.com - Access your email from home and the web -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Exclude components from localization by path or text
On 31/01/2016 20:24, Denis Kozlov wrote: 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? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Exclude components from localization by path or text
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 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus