[Tails-l10n] Tech. tip: how to diff between normalized PO fi…

このメッセージを削除

このメッセージに返信
著者: Ague Mill
日付:  
To: tails-l10n
題目: [Tails-l10n] Tech. tip: how to diff between normalized PO files
Hi!

Here is a small technical tip for someone who would like to check out
the differences between two PO files without caring about strings order,
line breaks or comments. You can do so by using a command line such as:

    diff -u <(msgfmt -o - translation/es/es.po | msgunfmt) \
            <(msgfmt -o - persistence-setup/po/es.po | msgunfmt)


The syntax is bash specific. Replace the paths to the two PO files you
are interested in comparing.

Using `msgfmt` will generate a binary
translation catalog. `msgunfmt` outputs a human-readable PO file from
such binary catalogs. Of course, information is lost in the process, but
that's what is of interest in this case.

Hope that helps.

--
Ague