Correct the method signature of MenuTranslator::translate for Qt5