1
0
mirror of synced 2024-11-28 17:40:51 +01:00

lang: Added German translation for Windows plugin

This commit is contained in:
WerWolv 2022-02-02 00:36:25 +01:00
parent 876dbe8179
commit f19944f54d
3 changed files with 38 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,35 @@
#include <hex/api/content_registry.hpp>
#include <hex/api/localization.hpp>
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" },
});
}
}

View File

@ -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<ViewTTYConsole>();
registerLanguageEnUS();
registerLanguageDeDE();
registerLanguageZhCN();
addFooterItems();