WordPress / wporg-theme-directory

12 stars 6 forks source link

Incorrect use of _n() about style variations #120

Closed tobifjellner closed 1 month ago

tobifjellner commented 1 month ago

Ref: themes-2024/src/theme-style-variations/render.php?marks=23

Here a string uses "Style variations (%s)" as a plural-aware string ( _n() )

When the count is provided in this way, this should be just a normal string. _n() would be the choice if you were to say "%d style variation"//"%d style varitions" instead.

Also, if you use %d rather than %s, then it's easier for a translator to see that this is a number (and not, for instance, the name of some style variation.)