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

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -