Re: [Lazarus] Exclude components from localization by path or text

2016-02-09 Thread Denis Kozlov

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

2016-02-09 Thread Mattias Gaertner
>[...]
> 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

2016-02-09 Thread Aradeonas
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

2016-02-08 Thread Aradeonas
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

2016-02-07 Thread Aradeonas
> 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

2016-02-07 Thread Denis Kozlov

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

2016-01-31 Thread 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

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus