From 5d794f83edeaec7dca60b1129c156853c8259ec3 Mon Sep 17 00:00:00 2001 From: Micky Date: Wed, 19 Mar 2025 18:04:32 +0100 Subject: [PATCH] Tweak a few miscellaneous localization strings --- editor/editor_inspector.cpp | 1 + editor/editor_run_native.cpp | 5 +---- modules/openxr/editor/openxr_binding_modifier_editor.cpp | 2 +- platform/linuxbsd/export/export_plugin.cpp | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index c52f1afdb36..86184a5e7aa 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -1391,6 +1391,7 @@ void EditorProperty::_update_popup() { menu->add_icon_item(get_editor_theme_icon(SNAME("Unfavorite")), TTR("Unfavorite Property"), MENU_FAVORITE_PROPERTY); menu->set_item_tooltip(menu->get_item_index(MENU_FAVORITE_PROPERTY), TTR("Make this property be put back at its original place.")); } else { + // TRANSLATORS: This is a menu item to add a property to the favorites. menu->add_icon_item(get_editor_theme_icon(SNAME("Favorites")), TTR("Favorite Property"), MENU_FAVORITE_PROPERTY); menu->set_item_tooltip(menu->get_item_index(MENU_FAVORITE_PROPERTY), TTR("Make this property be placed at the top for all objects of this class.")); } diff --git a/editor/editor_run_native.cpp b/editor/editor_run_native.cpp index faa80915498..5f237943c73 100644 --- a/editor/editor_run_native.cpp +++ b/editor/editor_run_native.cpp @@ -135,10 +135,7 @@ Error EditorRunNative::start_run_native(int p_id) { bool is_arch_enabled = preset->get(preset_arch); if (!is_arch_enabled) { - String warning_message = vformat(TTR("Warning: The CPU architecture \"%s\" is not active in your export preset.\n\n"), Variant(architecture)); - warning_message += TTR("Run \"Remote Deploy\" anyway?"); - - run_native_confirm->set_text(warning_message); + run_native_confirm->set_text(vformat(TTR("Warning: The CPU architecture \"%s\" is not active in your export preset.\n\nRun \"Remote Deploy\" anyway?"), architecture)); run_native_confirm->popup_centered(); return OK; } diff --git a/modules/openxr/editor/openxr_binding_modifier_editor.cpp b/modules/openxr/editor/openxr_binding_modifier_editor.cpp index b8770852afb..94d5b8d5f3f 100644 --- a/modules/openxr/editor/openxr_binding_modifier_editor.cpp +++ b/modules/openxr/editor/openxr_binding_modifier_editor.cpp @@ -261,7 +261,7 @@ OpenXRBindingModifierEditor::OpenXRBindingModifierEditor() { header_hb->add_child(binding_modifier_title); rem_binding_modifier_btn = memnew(Button); - rem_binding_modifier_btn->set_tooltip_text(TTR("Remove binding modifier.")); + rem_binding_modifier_btn->set_tooltip_text(TTR("Remove this binding modifier.")); rem_binding_modifier_btn->connect(SceneStringName(pressed), callable_mp(this, &OpenXRBindingModifierEditor::_on_remove_binding_modifier)); rem_binding_modifier_btn->set_flat(true); header_hb->add_child(rem_binding_modifier_btn); diff --git a/platform/linuxbsd/export/export_plugin.cpp b/platform/linuxbsd/export/export_plugin.cpp index 2a09a5823d3..efa0140204e 100644 --- a/platform/linuxbsd/export/export_plugin.cpp +++ b/platform/linuxbsd/export/export_plugin.cpp @@ -67,7 +67,7 @@ Error EditorExportPlatformLinuxBSD::export_project(const Ref if (!template_path.is_empty()) { String exe_arch = _get_exe_arch(template_path); if (arch != exe_arch) { - add_message(EXPORT_MESSAGE_ERROR, TTR("Prepare Templates"), vformat(TTR("Mismatching custom export template executable architecture, found \"%s\", expected \"%s\"."), exe_arch, arch)); + add_message(EXPORT_MESSAGE_ERROR, TTR("Prepare Templates"), vformat(TTR("Mismatching custom export template executable architecture: found \"%s\", expected \"%s\"."), exe_arch, arch)); return ERR_CANT_CREATE; } }