From 89643d1538ac42a78648b8609acaf14da82784b4 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Fri, 19 Feb 2021 11:16:09 +0100 Subject: [PATCH] lang: Added some strings that went missing --- plugins/builtin/source/lang/en_US.cpp | 4 +++- source/views/view_help.cpp | 12 ++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/plugins/builtin/source/lang/en_US.cpp b/plugins/builtin/source/lang/en_US.cpp index 2864ee668..9deb15df0 100644 --- a/plugins/builtin/source/lang/en_US.cpp +++ b/plugins/builtin/source/lang/en_US.cpp @@ -123,6 +123,8 @@ namespace hex::plugin::builtin { { "hex.view.help.about.donations", "Donations" }, { "hex.view.help.about.thanks", "If you like my work, please consider donating to keep the project going. Thanks a lot <3" }, { "hex.view.help.about.libs", "Libraries used" }, + { "hex.view.help.pattern_cheat_sheet", "Pattern Language Cheat Sheet"}, + { "hex.view.help.calc_cheat_sheet", "Calculator Cheat Sheet" }, { "hex.view.hexeditor.title", "Hex editor" }, { "hex.view.hexeditor.save_changes", "Save Changes" }, @@ -172,7 +174,7 @@ namespace hex::plugin::builtin { { "hex.view.hexeditor.goto.offset.begin", "Begin" }, { "hex.view.hexeditor.goto.offset.end", "End" }, { "hex.view.hexeditor.error.read_only", "Couldn't get write access. File opened in read-only mode." }, - { "hex.view.hexeditor.error.open", "Filed to open file!" }, + { "hex.view.hexeditor.error.open", "Failed to open file!" }, { "hex.view.hexeditor.menu.edit.copy", "Copy as..." }, { "hex.view.hexeditor.copy.bytes", "Bytes" }, { "hex.view.hexeditor.copy.hex", "Hex String" }, diff --git a/source/views/view_help.cpp b/source/views/view_help.cpp index 4d5733506..5c10dd016 100644 --- a/source/views/view_help.cpp +++ b/source/views/view_help.cpp @@ -4,7 +4,7 @@ namespace hex { - ViewHelp::ViewHelp() : View("Help") { + ViewHelp::ViewHelp() : View("hex.view.help.about.title"_lang) { } ViewHelp::~ViewHelp() { @@ -312,18 +312,18 @@ namespace hex { } void ViewHelp::drawMenu() { - if (ImGui::BeginMenu("Help")) { - if (ImGui::MenuItem("About", "")) { - View::doLater([] { ImGui::OpenPopup("About"); }); + if (ImGui::BeginMenu("hex.menu.help"_lang)) { + if (ImGui::MenuItem("hex.view.help.about.title"_lang, "")) { + View::doLater([] { ImGui::OpenPopup("hex.view.help.about.title"_lang); }); this->m_aboutWindowOpen = true; this->getWindowOpenState() = true; } ImGui::Separator(); - if (ImGui::MenuItem("Pattern Language Cheat Sheet", "")) { + if (ImGui::MenuItem("hex.view.help.pattern_cheat_sheet"_lang, "")) { this->m_patternHelpWindowOpen = true; this->getWindowOpenState() = true; } - if (ImGui::MenuItem("Calculator Cheat Sheet", "")) { + if (ImGui::MenuItem("hex.view.help.calc_cheat_sheet"_lang, "")) { this->m_mathHelpWindowOpen = true; this->getWindowOpenState() = true; }