diff options
author | Zae <zaevi@live.com> | 2021-12-21 01:08:37 +0800 |
---|---|---|
committer | Zae <zaevi@live.com> | 2021-12-21 01:08:37 +0800 |
commit | e957f7aeb0a2ac66f4e0fcfafae726bec991546c (patch) | |
tree | 53c369265f0dbfefb049ece553bc41d081eb0df9 | |
parent | 71616630e033670dc90c5d87fb65b758877f8ea1 (diff) |
Fix BaseButton's localization for tooltip with shortcut
-rw-r--r-- | scene/gui/base_button.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/base_button.cpp b/scene/gui/base_button.cpp index f4de48689e..5f740ecaa0 100644 --- a/scene/gui/base_button.cpp +++ b/scene/gui/base_button.cpp @@ -356,7 +356,7 @@ String BaseButton::get_tooltip(const Point2 &p_pos) const { if (shortcut_in_tooltip && shortcut.is_valid() && shortcut->has_valid_event()) { String text = shortcut->get_name() + " (" + shortcut->get_as_text() + ")"; if (!tooltip.is_empty() && shortcut->get_name().nocasecmp_to(tooltip) != 0) { - text += "\n" + tooltip; + text += "\n" + atr(tooltip); } tooltip = text; } |