summaryrefslogtreecommitdiffstats
path: root/core/input/input_event.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-02-10 15:06:30 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-02-10 15:06:30 +0100
commit5f0afeaf161784768998c51a2f38d6a50e2676bb (patch)
treedb54e015031dc87e627d86a9caf68fbbb1b61e8a /core/input/input_event.cpp
parent871c06af6d1d38921801f312fa0c7a04e9bdd6fb (diff)
parent26581ca574a5299762ae8522e1545f640ecade2b (diff)
downloadredot-engine-5f0afeaf161784768998c51a2f38d6a50e2676bb.tar.gz
Merge pull request #73027 from timothyqiu/more-i18n
Add some missing translatable editor strings
Diffstat (limited to 'core/input/input_event.cpp')
-rw-r--r--core/input/input_event.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/input/input_event.cpp b/core/input/input_event.cpp
index 7c4642a8a5..a6c1bb168c 100644
--- a/core/input/input_event.cpp
+++ b/core/input/input_event.cpp
@@ -1186,14 +1186,14 @@ static const char *_joy_button_descriptions[(size_t)JoyButton::SDL_MAX] = {
};
String InputEventJoypadButton::as_text() const {
- String text = "Joypad Button " + itos((int64_t)button_index);
+ String text = vformat(RTR("Joypad Button %d"), (int64_t)button_index);
if (button_index > JoyButton::INVALID && button_index < JoyButton::SDL_MAX) {
- text += vformat(" (%s)", _joy_button_descriptions[(size_t)button_index]);
+ text += vformat(" (%s)", TTRGET(_joy_button_descriptions[(size_t)button_index]));
}
if (pressure != 0) {
- text += ", Pressure:" + String(Variant(pressure));
+ text += ", " + RTR("Pressure:") + " " + String(Variant(pressure));
}
return text;