mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
[3.x]Fix BaseButton's localization for tooltip text with shortcut
This commit is contained in:
parent
17b31738f3
commit
23aaf78391
1 changed files with 1 additions and 1 deletions
|
@ -363,7 +363,7 @@ String BaseButton::get_tooltip(const Point2 &p_pos) const {
|
||||||
if (shortcut_in_tooltip && shortcut.is_valid() && shortcut->is_valid()) {
|
if (shortcut_in_tooltip && shortcut.is_valid() && shortcut->is_valid()) {
|
||||||
String text = shortcut->get_name() + " (" + shortcut->get_as_text() + ")";
|
String text = shortcut->get_name() + " (" + shortcut->get_as_text() + ")";
|
||||||
if (shortcut->get_name().nocasecmp_to(tooltip) != 0) {
|
if (shortcut->get_name().nocasecmp_to(tooltip) != 0) {
|
||||||
text += "\n" + tooltip;
|
text += "\n" + tr(tooltip);
|
||||||
}
|
}
|
||||||
tooltip = text;
|
tooltip = text;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue