New release: 0.4.4
[qcpufreq] / src / main.cpp
old mode 100755 (executable)
new mode 100644 (file)
index 31965f8..b63917c
@@ -1,6 +1,6 @@
 /*
  * QCPUFreq - a simple cpufreq GUI
- * Copyright (C) 2010 Daniel Klaffenbach <daniel.klaffenbach@cs.tu-chemnitz.de>
+ * Copyright (C) 2010 Daniel Klaffenbach <danielklaffenbach@gmail.com>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
 #include <QLocale>
 #include "mainwindow.h"
 
-#include <stdio.h>
 
 int main(int argc, char *argv[])
 {
     QApplication a(argc, argv);
 
     QString locale = QLocale::system().name();
+    QStringList tmp = locale.split("_");
+    locale = tmp.first();
     QString localedir = "/opt/usr/share/qcpufreq";
     QTranslator translator;
     translator.load( locale, localedir );