lsegal/yard — pull request #594 by yoshihara (2012-08-30 09:02:48+00:00)
Title: i18n: return msgid by Locale#translate if msgid isn't translated

I add the patch that YARD works with new gettext gem.
I use YARD of your "master" branch to generate translated documents.
gettext gem(2.3.0) was released yesterday, and behavior of GetText::PoParser was changed from old gettext gem(2.2.1).
When GetText::PoParser(2.2.1) parses po files, PoParser ignores empty string("") msgstr.
On the other hand, new GetText::PoParser(2.3.0) doesn't ignore empty string because empty string msgstr doesn't show "not registerd" msgid but "not translated" msgid.
So with new gettext gem(2.3.0), YARD::I18n::Locale#translate returns empty string as the translation of not translated msgid, but msgid should be returned because it is not translated.
I add the patch for it.