lupdate Dialog.ui -ts Dialog_ru.ts
C++ (Qt) #include <QTranslator>#include <QApplication>#include "Dialog.h" int main(int argc, char *argv[]){ QApplication app(argc, argv); QTranslator translator; translator.load( ":/Dialog_ru.qm", "." ); translator.load( ":/Dialog_cpp_ru.qm", "." ); app.installTranslator( &translator ); Dialog w; w.show(); return app.exec();}