1
0
mirror of synced 2025-01-29 19:17:28 +01:00

ui: Localized new strings

This commit is contained in:
WerWolv 2021-02-20 22:41:17 +01:00
parent 9b9c040d2d
commit 5532a0673f
2 changed files with 5 additions and 3 deletions

View File

@ -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" },

View File

@ -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());