[Lazarus] Multilang application and syncing .po files

Zbyněk Fiala zbynek.fiala at gmail.com
Tue Jun 19 14:49:16 CEST 2018


Hello Tomáš,
I used this approach several times
https://github.com/alrieckert/lazarus/tree/master/examples/translation
and it worked.
For example here:
https://github.com/zbyna/Media-Stub-Kodi-Creator/blob/2373ec4ff24bf124cb244eab07772e3cc81bee47/unit1.pas#L22
https://github.com/zbyna/Media-Stub-Kodi-Creator/blob/master/unit1.pas#L214

      Zbyněk

19. 6. 2018 v 14:12, Carlos E. R. via Lazarus <lazarus at lists.lazarus-ide.org>:

>> On 2018-06-19 13:51, Maxim Ganetsky via Lazarus wrote:
>> 
>> 
>> 19.06.2018 14:37, Carlos E. R. via Lazarus пишет:
>>>> On 2018-06-19 13:09, Tomáš Emresz via Lazarus wrote:
>>>> Hello,
>>>> 
>>>> i  have  done generating .po files, could translate it through PoEdit,
>>>> but  -  when  i add some RS or component, Lazarus update only main .po
>>>> file,  not  .cs.po etc. So could Lazarus update these files too, or is
>>>> there  any  merge tool for this ? Of course, I understand, that I must
>>>> translate  this  string  after,  but  this  time,  I  sync  this files
>>>> manually, which is bad.
>>>> 
>>>> Any idea ?
>>> 
>>> I'll answer as translator, I do not yet know how Lazarus handles this.
>>> 
>>> The programmer should only change the .pot files.
>> 
>> Lazarus handles all this itself. Main .po file is actually is what you
>> mean by .pot (historically it has .po extension instead of .pot).
> 
> Well, IMHO that is wrong.
> 
> The .pot file should contain all the messages without any translation,
> it is the master file. And the .po files are the translations, one per
> language. The .pot file is maintained by the programmers, the .po are
> maintained by the translators.
> 
> Anyway, msgmerge can handle that situation, too.
> 
> 
> -- 
> Cheers / Saludos,
> 
>        Carlos E. R.
>        (from 42.3 x86_64 "Malachite" at Telcontar)
> 
> -- 
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20180619/21102f79/attachment.html>


More information about the Lazarus mailing list