[Rg 122] gettext patch for removing empty msgid

Keita Yamaguchi keita.yamaguchi at gmail.com
Thu Jan 10 22:21:42 EST 2008


Hi,

This is a gettext patch for removing repeated empty msgid from pot
file. When there are mo files already, Ramaze::Tool::Gettext collects
the dictionary key "" and pass it to GetText::RGetText.generate. As a
result, generated pot file is like this:

#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2008-01-11 00:58+0900\n"
"PO-Revision-Date: 2008-01-11 00:58+0900\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

msgid ""
msgstr ""

This patch removes the extra key "".

Regards,
Keita Yamaguchi <keita.yamaguchi at gmail.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: remove-empty-msgid.patch
Type: text/x-patch
Size: 1280 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/ramaze-general/attachments/20080111/a59728bc/attachment.bin 


More information about the Ramaze-general mailing list