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

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -