You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using translation function "echo ('dragon');" works fine but plural translations like "echo n('%s apple', '%s apples', 1);" or "echo n__('%s apple', '%s apples', 2);" gives "%s jabłko" and "%s jabłek".
So translation is good but dynamic value %s is not set,
I cannot figure out what I'm doing wrong. Can you help me?
The text was updated successfully, but these errors were encountered:
n__('%s apple', '%s apples', 2) gives you the correct plural translated string for 2 apples.
Further arguments (after the third), if specified, are used in a sprintf function to put these values to the translated string.
Hello. I've got .po file created with poEdit with translated plural form (http://pastebin.com/6YvDx6gY).
Using translation function "echo ('dragon');" works fine but plural translations like "echo n('%s apple', '%s apples', 1);" or "echo n__('%s apple', '%s apples', 2);" gives "%s jabłko" and "%s jabłek".
So translation is good but dynamic value %s is not set,
I cannot figure out what I'm doing wrong. Can you help me?
The text was updated successfully, but these errors were encountered: