Answer the question
In order to leave comments, you need to log in
How to make Qt tr() handle plural without loading translation?
There is such a construction: tr("%n item(s) replaced", "", count);
Which should produce lines like "1 item replaced", "2 items replaced".
I have an application in English and I do not plan to download other languages.
But these constructions don't work if you don't upload translation files.
What if I'm not going to download them?
How else can I tell Qt that my application is in English? Besides
QLocale::setDefault(QLocale(QLocale::English, QLocale::UnitedStates));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question