Answer the question
In order to leave comments, you need to log in
How to make plural translation display normally in wordpress widget?
I can’t understand why the translation in the plural is not displayed correctly in the widget, although in the admin panel all
the lines from the localization file are OK
msgid "%d image"
msgid_plural "%d images"
msgstr[0] "%d изображение"
msgstr[1] "%d изображения"
msgstr[2] "%d изображений"
echo sprintf( _n( '%d image', '%d images', $images_count, 'galleries' ), $images_count ) ;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question