[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Syntax error with "lone" #| msgctxt ?
From: |
Bruno Haible |
Subject: |
Re: Syntax error with "lone" #| msgctxt ? |
Date: |
Tue, 19 Nov 2024 22:01:27 +0100 |
Hi,
Jean-Christophe Helary wrote on 2022-07-05:
> I have PO files that I am translating in OmegaT. A number of items come with
> #| msgtxt data. For ex.
>
> #: path
> #, fuzzy
> #| msgctxt "context"
> #| msgid "old message ID"
> msgid "new message ID"
> msgstr "old message string"
>
> After translation in OmegaT, the translated file becomes:
>
> #: path
> #| msgctxt "context"
> msgid "new message ID"
> msgstr "new message string"
>
> When this file is opened in POEdit, a syntax error is generated because of
> the remnant
>
> #| msgctxt "context"
>
> part.
>
> I've checked the PO format documentation on the GNU site, and I'm not seeing
> any reference to potential syntax errors there.
>
> https://www.gnu.org/software/gettext/manual/html_node/PO-Files.html
In this documentation, the only mention of '#| msgctxt' is in a line just
before '#| msgid'. From this, you can infer that '#| msgctxt' without
'#| msgid' can be a syntax error.
The authors of OmegaT ought to have verified that the PO files that
they output are accepted by msgcat, msgfmt, etc.
Bruno
- Re: Syntax error with "lone" #| msgctxt ?,
Bruno Haible <=