Translate level title and creator on-the-fly

These weren't getting updated when cycling language with CTRL+F8. This
is because they would be already baked. Luckily, at least the bool
keeping track of whether or not to translate them in the first place
already exists, so we can just rely on that.
This commit is contained in:
Misa
2024-02-02 15:58:46 -08:00
committed by Misa Elizabeth Kai
parent 0aea27f237
commit 53ed33039f
5 changed files with 52 additions and 31 deletions

View File

@@ -171,9 +171,9 @@ public:
bool onewaycol_override;
};
std::string translate_title(const std::string& title, bool* is_gettext);
bool translate_title(const std::string& title);
std::string translate_creator(const std::string& creator, bool* is_gettext);
bool translate_creator(const std::string& creator);
#ifndef CL_DEFINITION
extern customlevelclass cl;