changeset 493:75ebcacd3f75

If the locale is C, load English translations
author Chris Cannam
date Thu, 18 Aug 2011 16:37:11 +0100
parents 88c29b718702
children 41a156d439d0
files src/main.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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);