On Fri, Mar 18, 2005 at 11:32:27PM +0100, Jordi Vilalta wrote:
Hi,
On Thu, 17 Mar 2005, Jean-Michel POURE wrote:
>Le Jeudi 17 Mars 2005 14:55, Jean-Michel POURE a écrit :
>>When <para></para> docbook tags are parsed, it results in a
"" (empty)
>>trailing msgid line in the .pot file.
>
>Dear Jordi,
>
>Do you consider this trailing line msgid "" as a bug
>or should I use a bash script to fix the .pot files ?
I think these files are right. Let's do a small test: I've created a po
file that contains this (and a po header):
# type: Plain text
msgid "bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
"
msgstr ""
when I run msgcat with this file, it returns:
# type: Plain text
msgid ""
"bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla "
"bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla "
msgstr ""
msgcat is a gettext tool, so I must think it's a correct file formatting.
Then you should report it as a bug to the programs that doesn't handle it
right.
I have the feeling that Jean-Michel is speaking of such constructs:
msgid ""
msgstr ""
It naturally breaks msgcat and other tools since msgid="" denotes the file
header. It must be uniq, as any other msgid.
This is different from your example because you have msgid "", but have more
content on the next line...
Thanks, Mt.