Lazarus

Using the Lazarus IDE => General => Topic started by: lainz on July 04, 2019, 04:34:21 pm

Title: [SOLVED] Lazarus breaks translations
Post by: lainz on July 04, 2019, 04:34:21 pm
Hi, I work with several projects and in all of them trunk Lazarus when updates Po files it removes the translations. Seems that patching of Po files is not working.

Anyone can confirm? Thanks.
Title: Re: Lazarus breaks translations
Post by: circular on July 04, 2019, 05:02:45 pm
Same happens with Lazarus v2.0

Entries in the po files are deleted. Though they are still used by the program when running.
Title: Re: Lazarus breaks translations
Post by: lainz on July 05, 2019, 01:46:55 am
Thanks, it should be reported to bugtracker, but I need to create a test application, I don't know if they will accept LazPaint, I think they should, since is a full application that shows the problem of removed translations  :)
Title: Re: Lazarus breaks translations
Post by: circular on July 05, 2019, 02:51:14 am
Indeed it is a case study.

How would you make a test app? Create it with older Lazarus?
Title: Re: Lazarus breaks translations
Post by: valdir.marcos on July 05, 2019, 02:57:40 am
Thanks, it should be reported to bugtracker, but I need to create a test application, I don't know if they will accept LazPaint, I think they should, since is a full application that shows the problem of removed translations  :)
Not likely, they'll complain LazPaint is too complex to be debugged for such a single feature error.
I think you should create a simple small sample that shows the regression between older and newer versions of Lazarus.
Title: Re: Lazarus breaks translations
Post by: lucamar on July 05, 2019, 03:02:03 am
[...] I think they should, since is a full application that shows the problem of removed translations  :)

Rather too full for an example, isn't it :D
Title: Re: Lazarus breaks translations
Post by: circular on July 08, 2019, 11:23:35 am
For now I installed a version 1.8.4 of Lazarus and updated the language files by compiling.
Title: Re: Lazarus breaks translations
Post by: Thaddy on July 08, 2019, 02:58:10 pm
Maybe this is the age old issue that the translations need a FULL rebuild first? (fpc -B , not a simple compile, but a full build)
I would not be surprised, because I get bitten by that every so often...
Title: Re: Lazarus breaks translations
Post by: lainz on July 08, 2019, 07:30:12 pm
Maybe this is the age old issue that the translations need a FULL rebuild first? (fpc -B , not a simple compile, but a full build)
I would not be surprised, because I get bitten by that every so often...

I know that a full build is needed to generate all the forms and resourcestrings into the po file. But when doing a normal build hitting the play button the IDE must not remove translations from the .po file.
Title: Re: Lazarus breaks translations
Post by: circular on July 08, 2019, 09:27:35 pm
Indeed, we are talking about entries being removed from the po file. That should not happen.
Title: Re: Lazarus breaks translations
Post by: lainz on January 09, 2021, 04:30:12 am
SOLVED!

Please see here
https://forum.lazarus.freepascal.org/index.php/topic,51062.msg390081.html#msg390081
TinyPortal © 2005-2018