So you're saying the try:except: block is redundant?wmayer wrote:Actually I don't see any need to implement a translate() function. It would suffice to directly use QCoreApplication.translate where the third and fourth parameter is omitted to be source compatible with Qt5.
And it is OK to import QtGui even if FreeCAD is run without an UI?