On Wed, 19 Mar 2025 15:05:56 +0100, Dirk Lehmann <deb...@dj-l.de>
wrote:
>I have a bit played around with `msgmerge` and found a way to display
>a `diff` which contains the translations which will be destroyed if
>you merge a .po file from a translator
>
>   * test-de_DE-transl.po
>
>into your maintained one
>
>   * test-de_DE.po
>
>in conjunction with the current generated .pot file
>
>   * test.pot
>
>The essential code snippet looks like this
>
>**********************************************************************
>*
>* msgmerge -q -C test-de_DE-transl.po test-de_DE.po test.pot \
>*   > test-de_DE-maint+transl.po
>* msgmerge -vv -q -C test-de_DE.po test-de_DE-transl.po test.pot \
>*   > test-de_DE-transl+maint.po
>*
>* # Print out the new merged .po file
>* cat test-de_DE-transl+maint.po
>*
>* # Show the diff of destroyed translations (including comments)
>* diff -u test-de_DE-maint+transl.po test-de_DE-transl+maint.po
>*
>**********************************************************************

I think this is way beyond what we could expact from J Random Package
Maintainer, unless it is fully automated and can be documented and
packaged.

Greetings
Marc
-- 
----------------------------------------------------------------------------
Marc Haber         |   " Questions are the         | Mailadresse im Header
Rhein-Neckar, DE   |     Beginning of Wisdom "     | 
Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 6224 1600402

Reply via email to