From 003f9619c3d29552803d2ac67f71795715fe455d Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 14 Dec 2023 11:33:54 +0100 Subject: [PATCH] fix: Multiple localization issues --- plugins/builtin/romfs/lang/en_US.json | 4 +++- plugins/builtin/romfs/lang/ko_KR.json | 2 +- plugins/builtin/source/content/views/view_pattern_editor.cpp | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/builtin/romfs/lang/en_US.json b/plugins/builtin/romfs/lang/en_US.json index 0427855a0..22c27cf6d 100644 --- a/plugins/builtin/romfs/lang/en_US.json +++ b/plugins/builtin/romfs/lang/en_US.json @@ -999,7 +999,7 @@ "hex.builtin.view.highlight_rules.new_rule": "New Rule", "hex.builtin.view.highlight_rules.config": "Config", "hex.builtin.view.highlight_rules.expression": "Expression", - "hex.builtin.view.highlight_rules.help_text": "Enter a mathematical expression that will be evaluated for each byte in the file.\\n\\nThe expression can use the variables 'value' and 'offset'.\\nIf the expression evaluates to true (result is greater than 0), the byte will be highlighted with the specified color.", + "hex.builtin.view.highlight_rules.help_text": "Enter a mathematical expression that will be evaluated for each byte in the file.\n\nThe expression can use the variables 'value' and 'offset'.\nIf the expression evaluates to true (result is greater than 0), the byte will be highlighted with the specified color.", "hex.builtin.view.highlight_rules.no_rule": "Create a rule to edit it", "hex.builtin.view.highlight_rules.menu.edit.rules": "Modify highlight rules...", "hex.builtin.view.information.analyze": "Analyze page", @@ -1186,6 +1186,8 @@ "hex.builtin.welcome.plugins.author": "Author", "hex.builtin.welcome.plugins.desc": "Description", "hex.builtin.welcome.plugins.plugin": "Plugin", + "hex.builtin.popup.create_workspace.title": "Create new Workspace", + "hex.builtin.popup.create_workspace.desc": "Enter a name for the new Workspace", "hex.builtin.popup.safety_backup.delete": "No, Delete", "hex.builtin.popup.safety_backup.desc": "Oh no, ImHex crashed last time.\nDo you want to restore your past work?", "hex.builtin.popup.safety_backup.log_file": "Log file: ", diff --git a/plugins/builtin/romfs/lang/ko_KR.json b/plugins/builtin/romfs/lang/ko_KR.json index 9458c1544..658e3a57a 100644 --- a/plugins/builtin/romfs/lang/ko_KR.json +++ b/plugins/builtin/romfs/lang/ko_KR.json @@ -1112,7 +1112,7 @@ "hex.builtin.view.hex_editor.shortcut.selection_right": "선택 영역을 오른쪽으로 이동", "hex.builtin.view.hex_editor.shortcut.cursor_down": "커서를 아래로 이동", "hex.builtin.view.hex_editor.shortcut.cursor_page_down": "커서를 한 페이지 아래로 이동", - "hex.builtin.view.highlight_rules.help_text": "파일의 각 바이트에 대해 판단할 수학 표현식을 입력합니다.\\n\\n표현식에는 '값' 및 '오프셋' 변수를 사용할 수 있습니다.\\n표현식이 참으로 판단되면(결과가 0보다 크면) 해당 바이트가 지정 색상으로 강조 표시됩니다.", + "hex.builtin.view.highlight_rules.help_text": "파일의 각 바이트에 대해 판단할 수학 표현식을 입력합니다.\n\n표현식에는 '값' 및 '오프셋' 변수를 사용할 수 있습니다.\n표현식이 참으로 판단되면(결과가 0보다 크면) 해당 바이트가 지정 색상으로 강조 표시됩니다.", "hex.builtin.view.pattern_editor.shortcut.run_pattern": "패턴 실행", "hex.builtin.menu.file.export.report": "보고", "hex.builtin.menu.file.export.report.popup.export_error": "새 보고서 파일을 만들지 못했습니다!", diff --git a/plugins/builtin/source/content/views/view_pattern_editor.cpp b/plugins/builtin/source/content/views/view_pattern_editor.cpp index 9eeaf80bc..508158663 100644 --- a/plugins/builtin/source/content/views/view_pattern_editor.cpp +++ b/plugins/builtin/source/content/views/view_pattern_editor.cpp @@ -1260,7 +1260,7 @@ namespace hex::plugin::builtin { const auto &types = this->m_parserRuntime->getInternals().parser->getTypes(); bool hasPlaceableTypes = std::any_of(types.begin(), types.end(), [](const auto &type) { return !type.second->isTemplateType(); }); - if (ImGui::BeginMenu("hex.builtin.view.pattern_editor.menu.edit.place_pattern.builtin"_lang, hasPlaceableTypes)) { + if (ImGui::BeginMenu("hex.builtin.view.pattern_editor.menu.edit.place_pattern.custom"_lang, hasPlaceableTypes)) { auto selection = ImHexApi::HexEditor::getSelection(); for (const auto &[typeName, type] : types) {