From f50f35ddc8c830c3ac07d291151511fcb7889c8e Mon Sep 17 00:00:00 2001 From: Martchus Date: Sat, 7 Jan 2017 16:46:53 +0100 Subject: [PATCH] Add German translation --- CMakeLists.txt | 29 +- settingsdialog/qtsettings.cpp | 7 +- translations/qtutilities_de_DE.ts | 435 ++++++++++++++++++++++++++++++ translations/qtutilities_en_US.ts | 429 +++++++++++++++++++++++++++++ 4 files changed, 885 insertions(+), 15 deletions(-) create mode 100644 translations/qtutilities_de_DE.ts create mode 100644 translations/qtutilities_en_US.ts diff --git a/CMakeLists.txt b/CMakeLists.txt index 1a567ea..a1dfe91 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,17 @@ cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR) +# meta data +set(META_PROJECT_NAME qtutilities) +set(META_PROJECT_VARNAME QT_UTILITIES) +set(META_APP_NAME "Qt Utilities") +set(META_APP_AUTHOR "Martchus") +set(META_APP_URL "https://github.com/${META_APP_AUTHOR}/${META_PROJECT_NAME}") +set(META_APP_DESCRIPTION "Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models") +set(META_VERSION_MAJOR 5) +set(META_VERSION_MINOR 4) +set(META_VERSION_PATCH 0) +set(META_APP_VERSION ${META_VERSION_MAJOR}.${META_VERSION_MINOR}.${META_VERSION_PATCH}) + # add project files set(HEADER_FILES misc/xmlparsermacros.h @@ -81,6 +93,11 @@ set(CMAKE_MODULE_FILES cmake/modules/WebViewProviderConfig.cmake ) +set(TS_FILES + translations/${META_PROJECT_NAME}_de_DE.ts + translations/${META_PROJECT_NAME}_en_US.ts +) + set(DOC_FILES README.md ) @@ -106,18 +123,6 @@ set(SCRIPT_FILES scripts/required_icons.sh ) -# meta data -set(META_PROJECT_NAME qtutilities) -set(META_PROJECT_VARNAME QT_UTILITIES) -set(META_APP_NAME "Qt Utilities") -set(META_APP_AUTHOR "Martchus") -set(META_APP_URL "https://github.com/${META_APP_AUTHOR}/${META_PROJECT_NAME}") -set(META_APP_DESCRIPTION "Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models") -set(META_VERSION_MAJOR 5) -set(META_VERSION_MINOR 4) -set(META_VERSION_PATCH 0) -set(META_APP_VERSION ${META_VERSION_MAJOR}.${META_VERSION_MINOR}.${META_VERSION_PATCH}) - # required to include CMake modules from own project directory set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules" "${CMAKE_MODULE_PATH}") diff --git a/settingsdialog/qtsettings.cpp b/settingsdialog/qtsettings.cpp index 0c14d82..ab74c1a 100644 --- a/settingsdialog/qtsettings.cpp +++ b/settingsdialog/qtsettings.cpp @@ -358,9 +358,10 @@ QWidget *QtLanguageOptionPage::setupWidget() auto *languageLabel = ui()->languageLabel; QObject::connect(ui()->localeComboBox, &QComboBox::currentTextChanged, [languageLabel, localeComboBox] { - QLocale selectedLocale(localeComboBox->currentText()); - QLocale currentLocale; - languageLabel->setText(QStringLiteral("recognized by Qt as ") + const QLocale selectedLocale(localeComboBox->currentText()); + const QLocale currentLocale; + languageLabel->setText(QCoreApplication::translate("QtGui::QtLanguageOptionPage", "recognized by Qt as") + % QStringLiteral(" ") % currentLocale.languageToString(selectedLocale.language()) % QChar(',') % QChar(' ') % currentLocale.countryToString(selectedLocale.country()) diff --git a/translations/qtutilities_de_DE.ts b/translations/qtutilities_de_DE.ts new file mode 100644 index 0000000..f51e18e --- /dev/null +++ b/translations/qtutilities_de_DE.ts @@ -0,0 +1,435 @@ + + + + + Dialogs::AboutDialog + + + About + Über + + + + application name + just a placeholder + + + + + version + just a placeholder + + + + + description + just a placeholder + + + + + website link + just a placeholder + + + + + creators + just a placeholder + + + + + developed by %1 + entwickelt von %1 + + + + For updates and bug reports visit the <a href="%1" style="text-decoration: underline; color: palette(link);">project website</a>. + Für Aktualisierung und Melden von Fehlern besuche die <a href="%1" style="text-decoration: underline; color: palette(link);">Webseite des Projekts</a>. + + + + Dialogs::EnterPasswordDialog + + + + + + Enter the password + Passwort eingeben + + + + user name + Benutzername + + + + password + Passwort + + + + repeat password + Password wiederholen + + + + show password + Passwort zeigen + + + + don't use a password + Kein Passwort verwenden + + + + Capslock is active + Feststelltaste ist aktiviert + + + + Abort + Abbrechen + + + + Confirm + Bestätigen + + + + + Enter the new password + Neues Passwort festlegen + + + + You didn't enter a user name. + Es wurde kein Benutzername eingegeben. + + + + You didn't enter a password. + Es wurde kein Passwort eingegeben. + + + + You have to enter the new password twice to ensure you enterd it correct. + Um sicher zu stellen, dass das neue Passwort richtig eingegeben wurde, muss es zweimal eingegeben werden. + + + + You mistyped the password. + Erstes und zweites Passwort stimmen nicht überein. + + + + Dialogs::PaletteEditor + + + Edit Palette + Palette ändern + + + + Tune Palette + Palette + + + + Show Detai&ls + Details einblenden + + + + &Compute Details + Details berechnen + + + + Quick + Einfach + + + + Dialogs::PaletteModel + + + Color Role + Farbrolle + + + + Active + Aktiv + + + + Inactive + Inaktiv + + + + Disabled + Deaktiviert + + + + Dialogs::QtAppearanceOptionPage + + + Appearance + Erscheinungsbild + + + + Use system default + Verwende Systemvorgabe + + + + Font + Schriftart + + + + More options ... + Weitere Optionen ... + + + + Widget style + Widget-Stil + + + + Style sheet + Stylesheet + + + + Palette + + + + + select ... + Bearbeiten ... + + + + Icon theme + Symbole + + + + These settings take effect after restarting the application. +These settings might be overwritten by your Qt 5 platfrom integration plugin and hence have no effect. + Diese Einstellungen wirken sich erst nach einem Neustart der Anwendung aus. +Außerdem werden sie vielleicht vom QPA plugin überschrieben und funktionieren daher nicht. + + + + Dialogs::QtEnvOptionPage + + + Environment/paths + Umgebung/Pfade + + + + Additional plugin directory + Zusätzliches Plugin-Verzeichnis + + + + Additional icon theme search path + Zusätzliches Verzeichnis für Symbole + + + + Additional translation search path + Zusätzliches Verzeichnis für Übersetzungen + + + + These settings take effect after restarting the application. + Diese Einstellungen wirken sich erst nach einem Neustart der Anwendung aus. + + + + Dialogs::QtLanguageOptionPage + + + Localization + Lokalisierung + + + + Locale + Gebietsschema + + + + Use system default + Verwende Systemvorgabe + + + + These settings take effect after restarting the application. + Diese Einstellungen wirken sich erst nach einem Neustart der Anwendung aus. + + + + Dialogs::SettingsDialog + + + Settings + Einstellungen + + + + + No category selected + Keine Kategorie gewählt + + + + Filter + + + + + Abort + Abbrechen + + + + Apply + Anwenden + + + + OK + + + + + <p><b>Errors occured when applying changes:</b></p><ul> + <p><b>Beim Anwenden der Einstellungen sind Fehler aufgetreten:</b></p><ul> + + + + unknonw error + unbekannter Fehler + + + + MiscUtils::RecentMenuManager + + + &Recent + &Zuletzt verwendet + + + + &Clear list + &Liste löschen + + + + Recently opened files - + Kürzlich geöffnete Dateien - + + + + The selected file can't be found anymore. Do you want to delete the obsolete entry from the list? + Die ausgewählte Datei kann nicht mehr gefunden werden. Soll die Datei aus der Liste gelöscht werden? + + + + keep entry + Eintrag behalten + + + + delete entry + Eintrag löschen + + + + QObject + + + Clear + Text löschen + + + + QtGui::QtLanguageOptionPage + + + recognized by Qt as + von Qt erkannt als + + + + QtGui::QtOptionCategory + + + Qt + + + + + Utilities::windowTitle + + + Unsaved - %1 + Nicht gespeichert - %1 + + + + %1 - %2 - %3 + + + + + *Unsaved - %1 + *Nicht gespeichert - %1 + + + + *%1 - %2 - %3 + + + + + Widgets::PathSelection + + + + Select ... + Wählen ... + + + + Open + Öffnen + + + + Explore + Im Dateibrowser öffnen + + + + + Select path + Pfad auswählen + + + diff --git a/translations/qtutilities_en_US.ts b/translations/qtutilities_en_US.ts new file mode 100644 index 0000000..91fdd14 --- /dev/null +++ b/translations/qtutilities_en_US.ts @@ -0,0 +1,429 @@ + + + + + Dialogs::AboutDialog + + + About + + + + + application name + + + + + version + + + + + description + + + + + website link + + + + + creators + + + + + developed by %1 + + + + + For updates and bug reports visit the <a href="%1" style="text-decoration: underline; color: palette(link);">project website</a>. + + + + + Dialogs::EnterPasswordDialog + + + + + + Enter the password + + + + + user name + + + + + password + + + + + repeat password + + + + + show password + + + + + don't use a password + + + + + Capslock is active + + + + + Abort + + + + + Confirm + + + + + + Enter the new password + + + + + You didn't enter a user name. + + + + + You didn't enter a password. + + + + + You have to enter the new password twice to ensure you enterd it correct. + + + + + You mistyped the password. + + + + + Dialogs::PaletteEditor + + + Edit Palette + + + + + Tune Palette + + + + + Show Detai&ls + + + + + &Compute Details + + + + + Quick + + + + + Dialogs::PaletteModel + + + Color Role + + + + + Active + + + + + Inactive + + + + + Disabled + + + + + Dialogs::QtAppearanceOptionPage + + + Appearance + + + + + Use system default + + + + + Font + + + + + More options ... + + + + + Widget style + + + + + Style sheet + + + + + Palette + + + + + select ... + + + + + Icon theme + + + + + These settings take effect after restarting the application. +These settings might be overwritten by your Qt 5 platfrom integration plugin and hence have no effect. + + + + + Dialogs::QtEnvOptionPage + + + Environment/paths + + + + + Additional plugin directory + + + + + Additional icon theme search path + + + + + Additional translation search path + + + + + These settings take effect after restarting the application. + + + + + Dialogs::QtLanguageOptionPage + + + Localization + + + + + Locale + + + + + Use system default + + + + + These settings take effect after restarting the application. + + + + + Dialogs::SettingsDialog + + + Settings + + + + + + No category selected + + + + + Filter + + + + + Abort + + + + + Apply + + + + + OK + + + + + <p><b>Errors occured when applying changes:</b></p><ul> + + + + + unknonw error + + + + + MiscUtils::RecentMenuManager + + + &Recent + + + + + &Clear list + + + + + Recently opened files - + + + + + The selected file can't be found anymore. Do you want to delete the obsolete entry from the list? + + + + + keep entry + + + + + delete entry + + + + + QObject + + + Clear + + + + + QtGui::QtLanguageOptionPage + + + recognized by Qt as + + + + + QtGui::QtOptionCategory + + + Qt + + + + + Utilities::windowTitle + + + Unsaved - %1 + + + + + %1 - %2 - %3 + + + + + *Unsaved - %1 + + + + + *%1 - %2 - %3 + + + + + Widgets::PathSelection + + + + Select ... + + + + + Open + + + + + Explore + + + + + + Select path + + + +