Asked By
hunter kuet
0 points
N/A
Posted on - 08/22/2014
Hi there,
Pro Edit gives me this error when I want to edit some files for WordPress. I don’t know how to solve this and also I cannot manage this kind of error for WordPress. Is there anyone who can help me please to fix this error ?
Thank you experts !
PoEdit error
msgfmt: found 1 fatal error
Answered By
de Blair
10 points
N/A
#176899
Pro Edit shows error during the edit files in WordPress
Hello,
This error is causing due to catalog having various singular/plural strings in it. This can be resolve adding line in the catalog's setting<<Project Info<<Plural Forms -:
"Plural-Forms: nplurals=2; plural=(n != 1);n"
This , nplurals​ will be representing no. of various plural forms for the translating language (i.e. English , here). Different functions are going to use this expression , like dngettext(), dcngettext(), or ngettext(), hence ,the numerical passed to these fx() will be substituted for the variable (n).Â
Things needed to take care:-
-
The nplurals must be declared  as a non-negative decimal no. only.
-
 n must be variable only
-
expressions must not contain any "back slash" or "new line". However, "space" is allowed.
-
The resulting values of the fx() used , must be >=0 and < value of nplurals .
Â