I'm expecting the following behavior:
QObject::tr("%n apple(s)", "", 0) == QString("0 apples")
QObject::tr("%n apple(s)", "", 1) == QString("1 apple")
QObject::tr("%n apple(s)", "", 2) == QString("2 apples")
To copy to clipboard, switch view to plain text mode
What I get instead is
QObject::tr("%n apple(s)", "", 0) == QString("0 apple(s)")
QObject::tr("%n apple(s)", "", 1) == QString("1 apple(s)")
QObject::tr("%n apple(s)", "", 2) == QString("2 apple(s)")
To copy to clipboard, switch view to plain text mode
I thought this would work out of the box for English, but apparently it doesn't. Do I have to provide an English translation for English?
Unfortunately, the word "tr" is too short for the forums' search function.
Bookmarks