diff librpg/rpg/battle-state-lost.c @ 241:76afe639fd72

misc: add support for NLS, closes #22510 @4h While here cleanup the path functions in sys.c/sys.h
author David Demelier <markand@malikania.fr>
date Sat, 28 Nov 2020 18:00:05 +0100
parents befa2e855d3b
children
line wrap: on
line diff
--- a/librpg/rpg/battle-state-lost.c	Fri Nov 27 21:34:07 2020 +0100
+++ b/librpg/rpg/battle-state-lost.c	Sat Nov 28 18:00:05 2020 +0100
@@ -29,6 +29,7 @@
 #include "battle-state.h"
 #include "battle-state-closing.h"
 #include "battle-state-victory.h"
+#include "rpg_p.h"
 
 struct lost {
 	struct battle_state self;
@@ -83,7 +84,7 @@
 	lost->self.update = update;
 	lost->self.draw = draw;
 
-	lost->msg.text[0] = "You have been defeated...";
+	lost->msg.text[0] = _("You have been defeated...");
 	lost->msg.theme = bt->theme;
 	lost->msg.flags = MESSAGE_FLAGS_AUTOMATIC |
 			 MESSAGE_FLAGS_FADEIN |