From f19944f54ddf220e09621b9ac7960eaba3d5606f Mon Sep 17 00:00:00 2001 From: WerWolv Date: Wed, 2 Feb 2022 00:36:25 +0100 Subject: [PATCH] lang: Added German translation for Windows plugin --- plugins/windows/CMakeLists.txt | 1 + plugins/windows/source/lang/de_DE.cpp | 35 +++++++++++++++++++++++ plugins/windows/source/plugin_windows.cpp | 2 ++ 3 files changed, 38 insertions(+) create mode 100644 plugins/windows/source/lang/de_DE.cpp diff --git a/plugins/windows/CMakeLists.txt b/plugins/windows/CMakeLists.txt index 48873bb78..427d294d8 100644 --- a/plugins/windows/CMakeLists.txt +++ b/plugins/windows/CMakeLists.txt @@ -12,6 +12,7 @@ if (WIN32) source/views/view_tty_console.cpp source/lang/en_US.cpp + source/lang/de_DE.cpp source/lang/zh_CN.cpp source/content/ui_items.cpp diff --git a/plugins/windows/source/lang/de_DE.cpp b/plugins/windows/source/lang/de_DE.cpp new file mode 100644 index 000000000..d73a0cc30 --- /dev/null +++ b/plugins/windows/source/lang/de_DE.cpp @@ -0,0 +1,35 @@ +#include +#include + +namespace hex::plugin::windows { + + void registerLanguageDeDE() { + ContentRegistry::Language::addLocalizations("de-DE", { + { "hex.windows.title_bar_button.feedback", "Feedback hinterlassen" }, + { "hex.windows.title_bar_button.debug_build", "Debug build"}, + + { "hex.windows.view.tty_console.name", "TTY Konsole" }, + { "hex.windows.view.tty_console.config", "Konfiguration"}, + { "hex.windows.view.tty_console.port", "Port" }, + { "hex.windows.view.tty_console.reload", "Neu Laden" }, + { "hex.windows.view.tty_console.baud", "Baudrate" }, + { "hex.windows.view.tty_console.num_bits", "Datenbits" }, + { "hex.windows.view.tty_console.stop_bits", "Stoppbits" }, + { "hex.windows.view.tty_console.parity_bits", "Paritätsbit" }, + { "hex.windows.view.tty_console.cts", "CTS flow control benutzen" }, + { "hex.windows.view.tty_console.connect", "Verbinden" }, + { "hex.windows.view.tty_console.disconnect", "Trennen" }, + { "hex.windows.view.tty_console.connect_error", "Verbindung mit COM Port fehlgeschlagen!" }, + { "hex.windows.view.tty_console.no_available_port", "Kein valider COM port wurde ausgewählt oder keiner ist verfügbar!" }, + { "hex.windows.view.tty_console.clear", "Löschen" }, + { "hex.windows.view.tty_console.auto_scroll", "Auto scroll" }, + { "hex.windows.view.tty_console.console", "Konsole" }, + { "hex.windows.view.tty_console.send_etx", "ETX Senden" }, + { "hex.windows.view.tty_console.send_eot", "EOT Senden" }, + { "hex.windows.view.tty_console.send_sub", "SUB Senden" }, + + { "hex.builtin.setting.general.context_menu_entry", "Windows Kontextmenu-Eintrag" }, + }); + } + +} \ No newline at end of file diff --git a/plugins/windows/source/plugin_windows.cpp b/plugins/windows/source/plugin_windows.cpp index 4d027feca..d3e8410ec 100644 --- a/plugins/windows/source/plugin_windows.cpp +++ b/plugins/windows/source/plugin_windows.cpp @@ -7,6 +7,7 @@ namespace hex::plugin::windows { void registerLanguageEnUS(); + void registerLanguageDeDE(); void registerLanguageZhCN(); void addFooterItems(); @@ -21,6 +22,7 @@ IMHEX_PLUGIN_SETUP("Windows", "WerWolv", "Windows-only features") { hex::ContentRegistry::Views::add(); registerLanguageEnUS(); + registerLanguageDeDE(); registerLanguageZhCN(); addFooterItems();