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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -