diff options
| -rw-r--r-- | german.qm | bin | 801 -> 865 bytes | |||
| -rw-r--r-- | german.ts | 76 | ||||
| -rw-r--r-- | languagedialog.ui | 12 | ||||
| -rw-r--r-- | main.cpp | 5 |
4 files changed, 83 insertions, 10 deletions
| 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&le</source> + <translation>&Datei</translation> + </message> + <message> + <location filename="mainwindow.ui" line="37"/> + <source>Edi&t</source> + <translation>&Bearbeiten</translation> + </message> + <message> + <location filename="mainwindow.ui" line="44"/> + <source>Hel&p</source> + <translation>&Hilfe</translation> + </message> + <message> + <location filename="mainwindow.ui" line="57"/> + <source>&Exit</source> + <translation>&Beenden</translation> + </message> + <message> + <location filename="mainwindow.ui" line="62"/> + <source>&Preferences</source> + <translation>&Einstellungen</translation> + </message> + <message> + <location filename="mainwindow.ui" line="67"/> + <source>&About</source> + <translation>&Über das Program</translation> + </message> + <message> + <location filename="mainwindow.ui" line="72"/> + <source>&Language</source> + <translation>&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&lish</string> + <string notr="true">Eng&lish</string> </property> </widget> </item> <item> <widget class="QRadioButton" name="radioButtonGerman"> <property name="text"> - <string>Deuts&ch</string> + <string notr="true">Deuts&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> @@ -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(); |
