summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2020-01-04 13:33:52 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2020-01-04 13:46:38 +0800
commit78e9ca58afb97ded20ad5afc69e7e30027c4dd2c (patch)
treedbf9a30eb25144f811fa93ca26dc7db3849e2268 /scene/gui
parent34c71157f0f15a783ed27bcd3b0346a58e466575 (diff)
Makes more strings translatable
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/color_picker.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/scene/gui/color_picker.cpp b/scene/gui/color_picker.cpp
index bab8d9167b..01f4070883 100644
--- a/scene/gui/color_picker.cpp
+++ b/scene/gui/color_picker.cpp
@@ -573,9 +573,7 @@ void ColorPicker::_preset_input(const Ref<InputEvent> &p_event) {
}
if (index < 0 || index >= presets.size())
return;
- preset->set_tooltip("Color: #" + presets[index].to_html(presets[index].a < 1) + "\n"
- "LMB: Set color\n"
- "RMB: Remove preset");
+ preset->set_tooltip(vformat(RTR("Color: #%s\nLMB: Set color\nRMB: Remove preset"), presets[index].to_html(presets[index].a < 1)));
}
}