I'm trying to translate some strings in a WP theme I'm using, but apparently there are some differences in the PHP code. Here's an example:

echo apply_filters( 'jobboard_job_posted_text', _n( 'Job Posted', 'Jobs Posted', $job['jobs']->publish, 'jobboard' ) );

I've used POEdit to create a new catalog, update it from source code, I've added _n in the keywords, but when I uploaded the compiled .MO file, the strings remain untranslated on the website.

Could anyone help me figure out how do translate these lines?

Thank you!

1 Answer 1


Nevermind, I figured out the solution: the trouble was that POEdit hadn't picked that there were both singular and plural forms, so I had to manually edit the .PE file to this:

msgid "Job Posted"
msgid_plural "Jobs Posted"
msgstr[0] ""
msgstr[1] ""

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.