Explorar o código

Fix BaseButton's localization for tooltip with shortcut

Zae %!s(int64=3) %!d(string=hai) anos
pai
achega
e957f7aeb0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      scene/gui/base_button.cpp

+ 1 - 1
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;
 	}