Your warranties manager
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 10 години
преди 10 години
преди 10 години
123456789101112131415161718192021
  1. #include "mainwindow.h"
  2. #include <QApplication>
  3. #include <QTranslator>
  4. #include <QLocale>
  5. #include <QLibraryInfo>
  6. int main(int argc, char *argv[])
  7. {
  8. QApplication a(argc, argv);
  9. QString locale = QLocale::system().name().section('_', 0, 0);
  10. QTranslator* translator = new QTranslator();
  11. translator->load("translations/"+locale+".qm");
  12. a.installTranslator(translator);
  13. MainWindow w;
  14. w.show();
  15. return a.exec();
  16. }