hi. i am using pyqt and designer. i have translated all the strings in my app with self.tr() + pylupdate4 and lrelease
here is the snippet of code in my main():
app = QtGui.QApplication(sys.argv)
app.setApplicationName('Mental Calculation')
# initialize locale and load translation files if available
locale = QtCore.QLocale()
LOCALENAME = str(locale.system().name())
translator = QtCore.QTranslator()
translator.load("mentalcalculation_%s" % LOCALENAME)
app.installTranslator(translator)
I use a QDialogButtonBox in a QDialog with a QtGui.QDialogButtonBox.Cancel and a QtGui.QDialogButtonBox.Ok
and the strings in these buttons are not translated. because pylupdate4 does pick any string for them.
Have I missed a configuration step in my app so that they are translated ? I don't understand how the string for standard buttons of QDialogButtonBox are supposed to be translated and can't found doc about that.