bug-gettext
[Top][All Lists]
Advanced

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

Re: Syntax error with "lone" #| msgctxt ?


From: Jean-Christophe Helary
Subject: Re: Syntax error with "lone" #| msgctxt ?
Date: Wed, 20 Nov 2024 00:12:26 +0000

Thank you Bruno for the reply.

Jean-Christophe

> On Nov 20, 2024, at 6:01, Bruno Haible <bruno@clisp.org> wrote:
> 
> 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
> 
> 
> 

-- 
Jean-Christophe Helary
https://sr.ht/~brandelune/
@jchelary@sciences.social





reply via email to

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