Thanks for looking :-)
I was looking at some typical POEdit keyword header value in WordPress plugins and themes - e.g.:
'__;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n';
There's several things wrong here, but the oddity is:
_c,_nc:4c,1,2
_c( $string ) and _nc( $string, $plural ) are both deprecated anyway, but:
- They are split by a comma, instead of a semi-colon. Is this allowed, or is that a typo?
- There's not four arguments, so that
4c,is completely wrong and shouldn't be there? - For
_nx( $string, $plural, $number, $context )the keyword value is given as_nx:4c,1,2. Should that be_nx:1,2,4cor does the order not matter? - Should this (and all header values in a pot) end with
\nfor a new line?
Thanks!
;, everything within that isxgettextsyntax for the keyword argument."Name: value\n". Your example seems wrong, the end single quote is wrong (should be double quote); the;at the end is not needed (but harmless).