From 2e338ebc0132dcd71fb277aa0cdb1da679f18a65 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Wed, 14 Apr 2021 09:03:41 +0200 Subject: [PATCH] fix: Properly localize Undo and Redo --- plugins/libimhex/include/hex/helpers/utils.hpp | 2 +- source/views/view_hexeditor.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/libimhex/include/hex/helpers/utils.hpp b/plugins/libimhex/include/hex/helpers/utils.hpp index ae6d722cb..5bc606f3d 100644 --- a/plugins/libimhex/include/hex/helpers/utils.hpp +++ b/plugins/libimhex/include/hex/helpers/utils.hpp @@ -104,7 +104,7 @@ namespace hex { return (value & mask) >> to; } - + template struct always_false : std::false_type {}; diff --git a/source/views/view_hexeditor.cpp b/source/views/view_hexeditor.cpp index a3e35c5c7..8605e773d 100644 --- a/source/views/view_hexeditor.cpp +++ b/source/views/view_hexeditor.cpp @@ -1098,9 +1098,9 @@ R"( } void ViewHexEditor::drawEditPopup() { - if (ImGui::MenuItem("hex.view.hexeditor.menu.edit.undo", "CTRL + Z", false, SharedData::currentProvider != nullptr)) + if (ImGui::MenuItem("hex.view.hexeditor.menu.edit.undo"_lang, "CTRL + Z", false, SharedData::currentProvider != nullptr)) SharedData::currentProvider->undo(); - if (ImGui::MenuItem("hex.view.hexeditor.menu.edit.redo", "CTRL + Y", false, SharedData::currentProvider != nullptr)) + if (ImGui::MenuItem("hex.view.hexeditor.menu.edit.redo"_lang, "CTRL + Y", false, SharedData::currentProvider != nullptr)) SharedData::currentProvider->redo(); if (ImGui::BeginMenu("hex.view.hexeditor.menu.edit.copy"_lang, this->m_memoryEditor.DataPreviewAddr != -1 && this->m_memoryEditor.DataPreviewAddrEnd != -1)) {