#include int main(int argc, char *argv[]) { // Ideal string example: "4 point(s) - 25%" // Fine, the % isn't at the end auto str1 = QObject::tr("%n point(s) - %1% ", "", 2).arg(QString::number(37.5f)); // Suggested on Freenode #qt, asserts on the final % //auto str2 = QObject::tr("%n point(s) - %1%%", "", 2).arg(QString::number(37.5f)); // Original, asserts on the final % auto str3 = QObject::tr("%n point(s) - %1%", "", 2).arg(QString::number(37.5f)); return 0; }