diff --git a/plugins/builtin/source/lang/en_US.cpp b/plugins/builtin/source/lang/en_US.cpp index 2b564bfcf..47e1aee26 100644 --- a/plugins/builtin/source/lang/en_US.cpp +++ b/plugins/builtin/source/lang/en_US.cpp @@ -220,6 +220,8 @@ namespace hex::plugin::builtin { { "hex.view.pattern.accept_pattern.question", "Do you want to apply the selected pattern?" }, { "hex.view.pattern.menu.file.load_pattern", "Load pattern..." }, { "hex.view.pattern.open_pattern", "Open pattern" }, + { "hex.view.pattern.compiling", "[%c] Compiling..." }, + { "hex.view.pattern.auto", "Auto compile" }, { "hex.view.pattern_data.title", "Pattern Data" }, { "hex.view.pattern_data.name", "Name" }, diff --git a/source/views/view_pattern.cpp b/source/views/view_pattern.cpp index 734a4a57d..68d5c72c9 100644 --- a/source/views/view_pattern.cpp +++ b/source/views/view_pattern.cpp @@ -258,7 +258,7 @@ namespace hex { ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(ImColor(0x20, 0x85, 0x20))); ImGui::PushStyleVar(ImGuiStyleVar_FrameBorderSize, 1); - if (ImGui::ArrowButton("Compile", ImGuiDir_Right)) + if (ImGui::ArrowButton("compile", ImGuiDir_Right)) this->parsePattern(this->m_textEditor.GetText().data()); ImGui::PopStyleVar(); @@ -267,9 +267,9 @@ namespace hex { ImGui::SameLine(); if (this->m_compilerRunning) - ImGui::Text("[%c] Compiling...", "|/-\\"[u8(ImGui::GetTime() * 20) % 4]); + ImGui::Text("hex.view.pattern.compiling"_lang, "|/-\\"[u8(ImGui::GetTime() * 20) % 4]); else - ImGui::Checkbox("Run automatically", &this->m_runAutomatically); + ImGui::Checkbox("hex.view.pattern.auto"_lang, &this->m_runAutomatically); if (this->m_textEditor.IsTextChanged() && this->m_runAutomatically) { this->parsePattern(this->m_textEditor.GetText().data());