[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is the standard way to extract references in a PO file?

From: Etienne Rouxel
Subject: Re: What is the standard way to extract references in a PO file?
Date: Wed, 9 Jun 2021 16:33:40 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2

On 09.06.2021 15:51, Bruno Haible wrote:
This creates compatibility problems with tools involved in working with
PO files. A program can extract the references from the source code
using one style and the translation program used by the translator can
rewrite the references with the other style. That leads to complicated
merges of the translations back into the code repository.

Ah, the merges are the problem. In this case, I recommend to normalize
the PO files before commit. Normalizing means eliminating the possible
variations. A reasonable normalization command is to pipe the PO file
    msgcat --width=80


Thank you Bruno! This helps a lot.

Is this recommendation available publicly on the Internet so that I can link to it?
If not, would you consider adding it somewhere?

Etienne Rouxel

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]