1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

Unhardcode TAB in translation strings

In case we want to make it rebindable in the future, we shouldn't make
translators retranslate these strings.
This commit is contained in:
AllyTally 2023-11-19 21:24:11 -04:00 committed by Misa Elizabeth Kai
parent 4df35da0e4
commit b7a8bb138c
2 changed files with 10 additions and 2 deletions

View file

@ -432,7 +432,7 @@
<string english="- Press {button} to advance text -" translation="" explanation="to dismiss a textbox. Expect `ACTION`" max="40"/> <string english="- Press {button} to advance text -" translation="" explanation="to dismiss a textbox. Expect `ACTION`" max="40"/>
<string english="Press ACTION to continue" translation="" explanation="***OUTDATED***" max="34"/> <string english="Press ACTION to continue" translation="" explanation="***OUTDATED***" max="34"/>
<string english="Press {button} to continue" translation="" explanation="Expect `ACTION`" max="34"/> <string english="Press {button} to continue" translation="" explanation="Expect `ACTION`" max="34"/>
<string english="[Press TAB to toggle gameplay]" translation="" explanation="Tab toggles whether the game is paused or not" max="39"/> <string english="[Press {button} to toggle gameplay]" translation="" explanation="Tab toggles whether the game is paused or not" max="39"/>
<string english="Current Time" translation="" explanation="super gravitron, stopwatch time" max="20"/> <string english="Current Time" translation="" explanation="super gravitron, stopwatch time" max="20"/>
<string english="Best Time" translation="" explanation="super gravitron, best stopwatch time" max="20"/> <string english="Best Time" translation="" explanation="super gravitron, best stopwatch time" max="20"/>
<string english="Next Trophy at 5 seconds" translation="" explanation="" max="38*2"/> <string english="Next Trophy at 5 seconds" translation="" explanation="" max="38*2"/>

View file

@ -440,6 +440,14 @@ namespace level_debugger
} }
} }
font::print(PR_BOR, 5, 14, loc::gettext("[Press TAB to toggle gameplay]"), 220 - (help.glow), 220 - (help.glow), 255 - (help.glow / 2)); char buffer[SCREEN_WIDTH_CHARS + 1];
vformat_buf(
buffer, sizeof(buffer),
loc::gettext("[Press {button} to toggle gameplay]"),
"button:str",
"TAB"
);
font::print(PR_BOR, 5, 14, buffer, 220 - (help.glow), 220 - (help.glow), 255 - (help.glow / 2));
} }
} }