bug-gettext
[Top][All Lists]
Advanced

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

Re: [bug-gettext] msgmerge does not recognize long line comments produce


From: Bruno Haible
Subject: Re: [bug-gettext] msgmerge does not recognize long line comments produced by xgettext as such
Date: Thu, 11 Jul 2019 20:06:36 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-154-generic; KDE/5.18.0; x86_64; ; )

Hi,

Marc Jeanmougin wrote:
> when you write a po file with xgettext, you sometimes use the format "#
> File: %s, line: %ld\n" (gettext-tools/src/write-po.c:369) which does not
> start with "#:" or "#." and does not seem to be recognized as such in
> msgmerge.
> 
> Hence, it disappears from the po file.
> 
> Would it be possible to write #: to fix this?

This syntax ("# File: %s, line: %ld") is used when outputting a PO file
in Uniforum syntax. This syntax corresponds to a standard from ca. 1995.
The GNU gettext tools support it only in 'msgfmt' and 'msgunfmt', only
to formally support this old standard. Otherwise it is completely
obsolete. 'msgmerge' and - to my knowledge - all of the PO file editors
don't support this old syntax.

Bruno




reply via email to

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