diff 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
line wrap: on
line diff
--- a/src/main.cpp	Thu Aug 18 13:15:58 2011 +0100
+++ b/src/main.cpp	Thu Aug 18 16:37:11 2011 +0100
@@ -44,6 +44,7 @@
 
     QTranslator translator;
     QString language = QLocale::system().name();
+    if (language == "C") language = "en";
     QString trname = QString("easyhg_%1").arg(language);
     translator.load(trname, ":");
     app.installTranslator(&translator);