Support » Fixing WordPress » Poedit fatal error, can't generate the .mo file?!

  • Fking

    (@fking)


    Hello
    I’m translating an English pot file to Bulgarian (Cyrillic) using Poedit

    When tried to save I got:
    11:49:52: D: \New Folder\languages\111.po:813: missing `msgstr[]’ section
    11:49:52: msgfmt: found 1 fatal error

    As a result the .po file wasn’t generated, just the .mo, so I can’t use the translation now.

    Is there a way around that?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Fking

    (@fking)

    or maybe other software? anyone?

    esmi

    (@esmi)

    Forum Moderator

    This is an issue between PoEdit and WordPress. PoEdit seems incapable of dealing with the _x plurals. I’ve not tried any of the tools listed below but perhaps one of these will help:
    http://gorm.po.dk/
    http://betterpoeditor.sourceforge.net/
    http://www.opentag.com/okapi/wiki/index.php?title=Main_Page

    In the meantime, I’ll try and find out what .po editor is being used in the plugins SVN repository. That copes with all of the localization strings without any problem.

    Fking

    (@fking)

    thanks for that!
    I managed to make it work with this fix:

    enter this in the Plural forms field in Catalog>Settings
    nplurals=2; plural=(n != 1);

    esmi

    (@esmi)

    Forum Moderator

    I’m told that this fix either doesn’t work or isn’t reliable enough to be used by plugin developers (more’s the pity). But if it works for translators, great! 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Poedit fatal error, can't generate the .mo file?!’ is closed to new replies.