Skip to content

Commit 87c8d99

Browse files
committed
Replace magic strings with a more visually pleasing variant and expand on documentation
1 parent 1abd74d commit 87c8d99

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/translation.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,11 @@
4545
#define TRFILE_META_INI "META.INI"
4646

4747
// Message box commands to remove a message box or add one in place.
48-
#define TRCUST_REMOVEMSG "__EASY_RPG_CMD:REMOVE_MSGBOX__"
49-
#define TRCUST_ADDMSG "__EASY_RPG_CMD:ADD_MSGBOX__"
48+
// These commands are added by translators in the .po files to manipulate
49+
// text boxes at runtime. They are magic strings that will not otherwise
50+
// appear in the source of EasyRPG, but they should not be deleted.
51+
#define TRCUST_REMOVEMSG "<easyrpg:delete_page>"
52+
#define TRCUST_ADDMSG "<easyrpg:new_page>"
5053

5154

5255
std::string Tr::GetTranslationDir() {

0 commit comments

Comments
 (0)