PO file import(at admin/config/regional/translate/import) fails when last entry of file is null msgstr. However, it succeeds when last entry is comment(#) or filled msgstr.
Please confirm it with attached .po file of 3 patterns.
FYI, this bug seems to live in _locale_import_read_po() in includes/locale.inc.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | import_fail.po | 214 bytes | Takafumi |
| #1 | import_success_1.po | 224 bytes | Takafumi |
| #1 | import_success_2.po | 218 bytes | Takafumi |
Comments
Comment #1
Takafumi commented.po file of 3 patterns.
Comment #2
Takafumi commentedI confirmed this bug had been fixed in 7.0.
Comment #3
oriol_e9gSame problem in D6
Comment #4
oriol_e9gComment #5
gábor hojtsyThis was fixed in Drupal 7 for #611786: .po file should not be considered broken if last msgstr is empty, please reopen that for Drupal 6 if it applies to Drupal 6. The assumption there was that it is not, because updating 7 to use the Drupal 6 code again solved it and was proved with tests.