from PyQt5.QtCore import QCoreApplication tr = QCoreApplication.translate