我找高手给你问来的:
All you need is access to QApplication since you need to call
installTranslator() on that, so if you can use qApp from your plugin
then you can just load the qm file as normal with QTranslator and call
installTranslator() on qApp. Otherwise you need to inform the
application somehow it needs to load the translation.