Fking
Member
Posted 11 months ago #
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?
Fking
Member
Posted 11 months ago #
or maybe other software? anyone?
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
Member
Posted 11 months ago #
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);
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! :-)