But that means that something with your translation file is not correct, because tr() returns the same string if no translation is found. What does a qWarning() << QObject::tr( text );? If it displays "" then your problem is in that (=translation file/system) not in the painter.
Before that, better investigate some time in the tr() misbehavior of yours.How can I take care bother cases?
Bookmarks