Advertisement
lengend

Untitled

Nov 1st, 2012
385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1.     QTranslator translator;
  2.     QString locale_string = QLocale().name();
  3.     QString filename = QString( "ITSources_%1" ).arg( locale_string );
  4.     if (translator.load(filename, "app/native/qm")) {
  5.         app.installTranslator( &translator );
  6.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement