Add some missing translatable editor strings
This commit is contained in:
parent
929ee61170
commit
26581ca574
7 changed files with 26 additions and 11 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue