[Etoys] work around layout checking of msgfmt

korakurider korakurider at yahoo.co.jp
Wed Sep 26 05:29:44 EDT 2007


Hi.

When compiling lastest POs in SVN with msgfmt tool, I
found some POs generates two kinds of errors :
- `msgid` and `msgstr` entries do not both end with `\n`.
-  `msgid` and `msgstr` entries do not both start with
`\n`.

After reviewing source of the tool, I found that msgfmt
tool does some layout checking and warns error when:
- msgid starts(ends) with newline, but msgstr starts(ends)
without newline
- msgid starts(ends) without newline, but msgstr
starts(ends) with newline.

A quick fix for the exporter is attached. 
I think also some qualificaton procedure on build time
might be needed if LaunchPad doesn't have validation for
this.

PO and line numbers with problem are attached below.
(Takashi, could you please fix them in SVN?):

--- From here
EToys/fr.po:480
Morphic/Demo/de.po:62
Morphic/Flaps/ja.po:268
Morphic/Kernel/de.po:401, 356, 1823, 1834, 1966
Morphic/PDA/pt.po:15
Morphic/Scripting/de.po:1036
Morphic/Scripting/fr.po:836, 1085
Morphic/Scripting/ja.po:175
Morphic/Support/ja.po:65
Morphic/Windows/ja.po:27
Multilingual/de.po:126
ST80/ja.po:15
System/ja.po:39
Tools/de.po:287
--- To here

/Korakurider




  

--------------------------------------
Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar
http://pr.mail.yahoo.co.jp/toolbar/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GetTextNormCR-KR.cs
Type: application/octet-stream
Size: 1551 bytes
Desc: 2192478942-GetTextNormCR-KR.cs
Url : http://lists.laptop.org/pipermail/etoys/attachments/20070926/c7ac2105/attachment.obj 


More information about the Etoys mailing list