[Lazarus] Replacing LRT format with RSJ

Denis Kozlov dezlov at gmail.com
Wed Feb 17 19:03:52 CET 2016


It would be useful to have a built-in option to regenerate base PO file
(and update translated PO files) for a project.

This could involve:
1) Removing all existing LRT, LRJ, RST, RSJ.
2) Forcing project to be recompiled to reprocess resourcestrings and
produce RSJ
3) Forcing forms to be resaved to reprocess LFM and produce LRJ

I have performed these steps manually on several occasions to ensure a
clean regenerated PO file.


On 17 February 2016 at 16:50, Maxim Ganetsky <ganmax at narod.ru> wrote:

>
> 17.02.2016 18:24, Denis Kozlov пишет:
> > It should be possible to code up an automatic conversion of LRT files
> > directly to RSJ/LSJ, without a need to resave all forms. They both store
> > the same data, but use a different format.
> >
> > Of course, LRT files with already broken strings (as a result of new
> > lines) would be initially mapped 1-to-1 to broken strings in RSJ file,
> > but they will get fixed the next time the form is re-saved.
>
> So users will need to save forms anyway in order to ensure strings
> correctness and to get correct .po files.
>
> Maybe some helper tool that resaves all affected forms in one go can be
> created, though. Don't know how big is demand for it.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160217/05d3afb4/attachment-0003.html>


More information about the Lazarus mailing list