summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--german.qmbin801 -> 865 bytes
-rw-r--r--german.ts76
-rw-r--r--languagedialog.ui12
-rw-r--r--main.cpp5
4 files changed, 83 insertions, 10 deletions
diff --git a/german.qm b/german.qm
index ed7e949..25c9732 100644
--- a/german.qm
+++ b/german.qm
Binary files differ
diff --git a/german.ts b/german.ts
new file mode 100644
index 0000000..96434f9
--- /dev/null
+++ b/german.ts
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1" language="de_DE">
+<context>
+ <name>DlgPreferences</name>
+ <message>
+ <location filename="dlgpreferences.ui" line="17"/>
+ <location filename="dlgpreferences.ui" line="23"/>
+ <source>Preferences</source>
+ <translation>Einstellungen</translation>
+ </message>
+ <message>
+ <location filename="dlgpreferences.ui" line="31"/>
+ <source>Width</source>
+ <translation>Breite</translation>
+ </message>
+ <message>
+ <location filename="dlgpreferences.ui" line="48"/>
+ <source>Height</source>
+ <translation>Höhe</translation>
+ </message>
+ <message>
+ <location filename="dlgpreferences.ui" line="69"/>
+ <source>Cancel</source>
+ <translation>Abbrechen</translation>
+ </message>
+ <message>
+ <location filename="dlgpreferences.ui" line="95"/>
+ <source>Ok</source>
+ <translation>Ok</translation>
+ </message>
+</context>
+<context>
+ <name>MainWindow</name>
+ <message>
+ <location filename="mainwindow.ui" line="14"/>
+ <source>GUIProjekt SS2015_SS</source>
+ <translation></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.ui" line="31"/>
+ <source>Fi&amp;le</source>
+ <translation>&amp;Datei</translation>
+ </message>
+ <message>
+ <location filename="mainwindow.ui" line="37"/>
+ <source>Edi&amp;t</source>
+ <translation>&amp;Bearbeiten</translation>
+ </message>
+ <message>
+ <location filename="mainwindow.ui" line="44"/>
+ <source>Hel&amp;p</source>
+ <translation>&amp;Hilfe</translation>
+ </message>
+ <message>
+ <location filename="mainwindow.ui" line="57"/>
+ <source>&amp;Exit</source>
+ <translation>&amp;Beenden</translation>
+ </message>
+ <message>
+ <location filename="mainwindow.ui" line="62"/>
+ <source>&amp;Preferences</source>
+ <translation>&amp;Einstellungen</translation>
+ </message>
+ <message>
+ <location filename="mainwindow.ui" line="67"/>
+ <source>&amp;About</source>
+ <translation>&amp;Über das Program</translation>
+ </message>
+ <message>
+ <location filename="mainwindow.ui" line="72"/>
+ <source>&amp;Language</source>
+ <translation>&amp;Sprache</translation>
+ </message>
+</context>
+</TS>
diff --git a/languagedialog.ui b/languagedialog.ui
index 366541b..1aa718b 100644
--- a/languagedialog.ui
+++ b/languagedialog.ui
@@ -11,26 +11,26 @@
</rect>
</property>
<property name="windowTitle">
- <string>Dialog</string>
+ <string notr="true">Language</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QGroupBox" name="groupBox">
<property name="title">
- <string>Language</string>
+ <string notr="true">Language</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QRadioButton" name="radioButtonEnglish">
<property name="text">
- <string>Eng&amp;lish</string>
+ <string notr="true">Eng&amp;lish</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButtonGerman">
<property name="text">
- <string>Deuts&amp;ch</string>
+ <string notr="true">Deuts&amp;ch</string>
</property>
</widget>
</item>
@@ -39,8 +39,8 @@
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
+ <property name="locale">
+ <locale language="English" country="UnitedStates"/>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
diff --git a/main.cpp b/main.cpp
index 0649a69..98a3be6 100644
--- a/main.cpp
+++ b/main.cpp
@@ -2,15 +2,12 @@
#include <QApplication>
#include <QLocale>
#include <QTranslator>
+#include <locale.h>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
-// QTranslator translator;
-// translator.load(":/translations.pm");
-// a.installTranslator(&translator);
-
MainWindow w;
w.show();