bug-gettext
[Top][All Lists]
Advanced

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

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


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

Hi,

Is there a standard way to extract references in a PO file?

Must we extract each reference in a dedicated line line so:

```po
#: src/msgcmp.c:338
#: src/po-lex.c:699
```

or join them all in a single reference line like so:

```po
#: src/msgcmp.c:338 src/po-lex.c:699
```

The documentation (https://www.gnu.org/software/gettext/manual/html_node/PO-Files.html) hints a the second style by giving an example of it. However, there is no explicit mention about what is the right way, if there is any.

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.

Could the documentation clarify this point?

Regards,

Etienne Rouxel

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

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