Skip to content

Commit

Permalink
Unhardcode TAB in translation strings
Browse files Browse the repository at this point in the history
In case we want to make it rebindable in the future, we shouldn't make
translators retranslate these strings.
  • Loading branch information
AllyTally authored and InfoTeddy committed Nov 20, 2023
1 parent 4df35da commit b7a8bb1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion desktop_version/lang/en/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@
<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 {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="Best Time" translation="" explanation="super gravitron, best stopwatch time" max="20"/>
<string english="Next Trophy at 5 seconds" translation="" explanation="" max="38*2"/>
Expand Down
10 changes: 9 additions & 1 deletion desktop_version/src/LevelDebugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

0 comments on commit b7a8bb1

Please sign in to comment.