I'm in the process of creating our Wordpress plugin compatible with translate.wordpress.org and use this code for easy pluralization / translation:
echo _n( 'size', 'sizes', $count, 'my-domain' );
We still have .po / .mo files that contain, for example:
msgid "size" msgstr "afmeting" msgid "sizes" msgstr "afmetingen"
This is the result I get:
echo _n( 'size', 'sizes', 1, 'my-domain' ); // expected: 1 afmeting // actual: 1 afmeting echo _n( 'size', 'sizes', 2, 'my-domain' ); // expected: 2 afmetingen // actual: 2 sizes
Translations are, if I cancel multiple / single texts, there is only one translation left.
Any thoughts on what I'm doing wrong, and how should I make it work?
source share