comparison src/main.cpp @ 493:75ebcacd3f75

If the locale is C, load English translations
author Chris Cannam
date Thu, 18 Aug 2011 16:37:11 +0100
parents 110d1fefa073
children 533519ebc0cb
comparison
equal deleted inserted replaced
492:88c29b718702 493:75ebcacd3f75
42 42
43 installSignalHandlers(); 43 installSignalHandlers();
44 44
45 QTranslator translator; 45 QTranslator translator;
46 QString language = QLocale::system().name(); 46 QString language = QLocale::system().name();
47 if (language == "C") language = "en";
47 QString trname = QString("easyhg_%1").arg(language); 48 QString trname = QString("easyhg_%1").arg(language);
48 translator.load(trname, ":"); 49 translator.load(trname, ":");
49 app.installTranslator(&translator); 50 app.installTranslator(&translator);
50 51
51 QStringList args = app.arguments(); 52 QStringList args = app.arguments();