Qt Linguist: Manual

Or if you have multiple languages:

Mark user-visible strings in source code using functions like tr() for C++ or qsTr() for QML.

Qt handles this via the tr() function with a numerical argument:

Even experienced developers misread the sometimes. Here are the top 3 mistakes: