mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Fix BaseButton's localization for tooltip with shortcut
This commit is contained in:
parent
71616630e0
commit
e957f7aeb0
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user