[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pnet-developers] [bug] resgen produces invalid PO files
From: |
Bruno Haible |
Subject: |
[Pnet-developers] [bug] resgen produces invalid PO files |
Date: |
Thu, 18 Dec 2003 15:41:05 +0100 |
User-agent: |
KMail/1.5 |
Using pnet-0.6.0.
====================== hello.de.resx ==========================
<?xml version="1.0" encoding="utf-8" ?>
<root>
<resheader name="ResMimeType">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="Version">
<value>1.0.0.0</value>
</resheader>
<resheader name="Reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms,
Version=1.0.3102.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="Writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms,
Version=1.0.3102.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Hello World!">
<value>Hallo "Welt!"</value>
</data>
</root>
================================================================
$ resgen hello.de.resx de.po
$ cat de.po
msgid "Hello World!"
msgstr "Hallo "Welt!""
$ msgcat de.po
de.po:2: keyword "Welt" unknown
de.po:2:20: syntax error
msgcat: found 2 fatal errors
The PO file format is specified in the GNU gettext documentation, section
'PO Files' and 'Header Entry'. Special characters need to be escaped when
put into PO files.
In this case, when outputting a double-quote inside a string, it should
be preceded by an extra backslash.