From af01aed643a811f39fd97548c16b0a44d9bf4332 Mon Sep 17 00:00:00 2001 From: kobewi Date: Tue, 27 Jun 2023 22:05:33 +0200 Subject: [PATCH] Fix missing translations in EventListenerLineEdit --- editor/event_listener_line_edit.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/editor/event_listener_line_edit.cpp b/editor/event_listener_line_edit.cpp index fa494636ea7..b9e182d7808 100644 --- a/editor/event_listener_line_edit.cpp +++ b/editor/event_listener_line_edit.cpp @@ -77,19 +77,19 @@ String EventListenerLineEdit::get_event_text(const Ref &p_event, boo } if (key->get_physical_keycode() != Key::NONE) { if (!text.is_empty()) { - text += " or "; + text += " " + TTR("or") + " "; } - text += mods_text + keycode_get_string(key->get_physical_keycode()) + " (" + RTR("Physical") + ")"; + text += mods_text + keycode_get_string(key->get_physical_keycode()) + " (" + TTR("Physical") + ")"; } if (key->get_key_label() != Key::NONE) { if (!text.is_empty()) { - text += " or "; + text += " " + TTR("or") + " "; } - text += mods_text + keycode_get_string(key->get_key_label()) + " (Unicode)"; + text += mods_text + keycode_get_string(key->get_key_label()) + " (" + TTR("Unicode") + ")"; } if (text.is_empty()) { - text = "(" + RTR("Unset") + ")"; + text = "(" + TTR("Unset") + ")"; } } else { text = p_event->as_text(); @@ -102,7 +102,7 @@ String EventListenerLineEdit::get_event_text(const Ref &p_event, boo // Joypad motion events will display slightly differently than what the event->as_text() provides. See #43660. String desc = TTR("Unknown Joypad Axis"); if (jp_motion->get_axis() < JoyAxis::MAX) { - desc = RTR(_joy_axis_descriptions[2 * (size_t)jp_motion->get_axis() + (jp_motion->get_axis_value() < 0 ? 0 : 1)]); + desc = TTR(_joy_axis_descriptions[2 * (size_t)jp_motion->get_axis() + (jp_motion->get_axis_value() < 0 ? 0 : 1)]); } // TRANSLATORS: %d is the axis number, the first %s is either "-" or "+", and the second %s is the description of the axis.