Added German translation
authorDaniel Klaffenbach <danielklaffenbach@gmail.com>
Wed, 23 Jun 2010 11:54:30 +0000 (13:54 +0200)
committerDaniel Klaffenbach <danielklaffenbach@gmail.com>
Wed, 23 Jun 2010 11:54:30 +0000 (13:54 +0200)
src/de.qm [new file with mode: 0644]
src/de.ts [new file with mode: 0644]
src/main.cpp
src/mainwindow.cpp
src/src.pro

diff --git a/src/de.qm b/src/de.qm
new file mode 100644 (file)
index 0000000..af4c0d9
Binary files /dev/null and b/src/de.qm differ
diff --git a/src/de.ts b/src/de.ts
new file mode 100644 (file)
index 0000000..bd2f36e
--- /dev/null
+++ b/src/de.ts
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0" language="de_DE" sourcelanguage="en_US">
+<context>
+    <name>MainWindow</name>
+    <message>
+        <location filename="mainwindow.ui" line="14"/>
+        <location filename="mainwindow.cpp" line="218"/>
+        <source>QCPUFreq</source>
+        <translation>QCPUFreq</translation>
+    </message>
+    <message>
+        <location filename="mainwindow.ui" line="34"/>
+        <source>Minimum CPU speed:</source>
+        <translation>Min. CPU Frequenz:</translation>
+    </message>
+    <message>
+        <location filename="mainwindow.ui" line="41"/>
+        <location filename="mainwindow.ui" line="55"/>
+        <location filename="mainwindow.ui" line="69"/>
+        <location filename="mainwindow.ui" line="83"/>
+        <location filename="mainwindow.cpp" line="107"/>
+        <source>Unknown</source>
+        <translation>Unbekannt</translation>
+    </message>
+    <message>
+        <location filename="mainwindow.ui" line="48"/>
+        <source>Maximum CPU speed:</source>
+        <translation>Max. CPU Frequenz:</translation>
+    </message>
+    <message>
+        <location filename="mainwindow.ui" line="62"/>
+        <source>Current scaling governor:</source>
+        <translation>Aktueller Skalierer:</translation>
+    </message>
+    <message>
+        <location filename="mainwindow.ui" line="76"/>
+        <source>Current CPU temperature:</source>
+        <translation>Aktuelle CPU Temperatur:</translation>
+    </message>
+    <message utf8="true">
+        <location filename="mainwindow.ui" line="96"/>
+        <source>SmartReflex™:</source>
+        <translation>SmartReflex™:</translation>
+    </message>
+    <message>
+        <location filename="mainwindow.ui" line="109"/>
+        <location filename="mainwindow.cpp" line="260"/>
+        <source>Disabled</source>
+        <translation>Deaktiviert</translation>
+    </message>
+    <message>
+        <location filename="mainwindow.ui" line="306"/>
+        <source>Set maximum CPU frequency:</source>
+        <translation>Maximale CPU Frequenz einstellen:</translation>
+    </message>
+    <message>
+        <location filename="mainwindow.ui" line="334"/>
+        <source>File</source>
+        <translation>Datei</translation>
+    </message>
+    <message>
+        <location filename="mainwindow.ui" line="342"/>
+        <source>About</source>
+        <translation>Über</translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="218"/>
+        <source>Could not get information from /sys!</source>
+        <translation>Konnte Informationen aus /sys nicht lesen!</translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="257"/>
+        <source>Enabled</source>
+        <translation>Aktiviert</translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="325"/>
+        <source>SmartReflex support is known to be unstable on some devices and may cause random reboots.</source>
+        <translation>SmartReflex kann auf einigen Geräten instabil sein und zu zufälligen Neustarts führen.</translation>
+    </message>
+</context>
+</TS>
index ac21d60..25be602 100755 (executable)
  */
 
 #include <QtGui/QApplication>
+#include <QTranslator>
+#include <QString>
+#include <QLocale>
 #include "mainwindow.h"
 
 int main(int argc, char *argv[])
 {
     QApplication a(argc, argv);
+
+    QString locale = QLocale::system().name();
+    QTranslator translator;
+    translator.load( locale );
+    a.installTranslator( &translator );
+
+
     MainWindow w;
 #if defined(Q_WS_S60)
     w.showMaximized();
index e99c249..f75e4ab 100755 (executable)
@@ -104,7 +104,7 @@ QString MainWindow::getCPUTemp()
 #if defined(Q_WS_MAEMO_5)
     return readSysFile( "devices/platform/omap34xx_temp/temp1_input_raw" );
 #endif
-    return "Unknown";
+    return tr( "Unknown" );
 }
 
 
index 62ec406..13a9abc 100755 (executable)
@@ -17,6 +17,8 @@ HEADERS  += mainwindow.h
 
 FORMS    += mainwindow.ui
 
+TRANSLATIONS = de.ts
+
 CONFIG += mobility
 MOBILITY =