How can I easily translate standard buttons (Yes, No) from QMessageBox? I can’t use self.tr on those arguments, so I would like to achieve it in some other simple way. Do I have to use whole translation system?
How can I easily translate standard buttons (Yes, No) from QMessageBox? I can’t use
Share
Here is how I did :
First you need to copy the
qt_LOCALE.qmfile to your application directory. Mine was :Secondly, you need to load a translator for your application.