Old version used to work with one string "There are images in this gallery.", but after upgrade to new one, I see lots of untranslated strings (There are 9 images in this gallery. There are 15 images in this gallery. There are 458 images in this gallery.) on my site.
Seems like incorrect usage of t() function in this case. Only strings should be t()'ed, or there should be a variable placeholder (such as 'There are %no_of_images images in this gallery.')
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 564614.image_gallery-fix-t-count.patch | 1.22 KB | joachim |
Comments
Comment #1
joachim commentedThanks for reporting this!
I've gone one further and used format_plural, so it looks better when there's only 1 image too.
Comment #2
timurek commentedThanks for the fix, works perfectly! :)
Comment #3
joachim commentedGreat!
Thank you for trying it :)