mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
i18n: Chinese(Simplified) (#303)
* feat(i18n): add Chinese(Simplified) translations * feat: keep console window on Windows for debug builds * feat(18n) * feat(i18n): improve Chinese translation * fix: unify the line terminators * feat(build): formatting * fix: exclude from SysWow64 for 64bits windows * Revert "fix: exclude from SysWow64 for 64bits windows" This reverts commita6d66a4a56. * Revert "feat: keep console window on Windows for debug builds" This reverts commit9fd4699c9f.
This commit is contained in:
30
plugins/windows/source/lang/zh_CN.cpp
Normal file
30
plugins/windows/source/lang/zh_CN.cpp
Normal file
@@ -0,0 +1,30 @@
|
||||
#include <hex/api/content_registry.hpp>
|
||||
#include <hex/helpers/lang.hpp>
|
||||
|
||||
namespace hex::plugin::windows {
|
||||
|
||||
void registerLanguageZhCN() {
|
||||
ContentRegistry::Language::addLocalizations("zh-CN", {
|
||||
{ "hex.windows.view.tty_console.name", "TTY控制台" },
|
||||
{ "hex.windows.view.tty_console.config", "配置"},
|
||||
{ "hex.windows.view.tty_console.port", "端口" },
|
||||
{ "hex.windows.view.tty_console.reload", "重载" },
|
||||
{ "hex.windows.view.tty_console.baud", "波特率" },
|
||||
{ "hex.windows.view.tty_console.num_bits", "数据位" },
|
||||
{ "hex.windows.view.tty_console.stop_bits", "终止位" },
|
||||
{ "hex.windows.view.tty_console.parity_bits", "奇偶校验位" },
|
||||
{ "hex.windows.view.tty_console.cts", "使用CTS流控制" },
|
||||
{ "hex.windows.view.tty_console.connect", "连接" },
|
||||
{ "hex.windows.view.tty_console.disconnect", "断开" },
|
||||
{ "hex.windows.view.tty_console.connect_error", "无法连接到COM端口!" },
|
||||
{ "hex.windows.view.tty_console.clear", "清除" },
|
||||
{ "hex.windows.view.tty_console.auto_scroll", "自动滚动" },
|
||||
{ "hex.windows.view.tty_console.console", "控制台" },
|
||||
{ "hex.windows.view.tty_console.send_etx", "发送ETX" },
|
||||
{ "hex.windows.view.tty_console.send_eot", "发送EOT" },
|
||||
{ "hex.windows.view.tty_console.send_sub", "发送SUB" }
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
@@ -5,6 +5,7 @@
|
||||
namespace hex::plugin::windows {
|
||||
|
||||
void registerLanguageEnUS();
|
||||
void registerLanguageZhCN();
|
||||
|
||||
void addFooterItems();
|
||||
}
|
||||
@@ -16,6 +17,7 @@ IMHEX_PLUGIN_SETUP("Windows", "WerWolv", "Windows-only features") {
|
||||
ContentRegistry::Views::add<ViewTTYConsole>();
|
||||
|
||||
registerLanguageEnUS();
|
||||
registerLanguageZhCN();
|
||||
|
||||
addFooterItems();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user