c++ - Ot translation: original QString text -
is there way original language independent text of qstring marked translation ? here simplification of code:
qstring myclass::geterror() { qstring errortext = tr("harderror1"); return errortext; }
the problem following:
if (geterror().contains("hard")) { //do }
will not work if user changes language!
myclass
should give both error codes , error strings. program logic, use error codes. ui, use error strings.
Comments
Post a Comment