1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Add more gettext convertions (2)

This commit is contained in:
Mathieu Schroeter 2017-02-08 23:34:21 +01:00
parent cc2bc26874
commit 4785cd25a8

View File

@ -4067,10 +4067,11 @@ void CEvent::Write(int message)
void CEvent::PrivateLibelle() void CEvent::PrivateLibelle()
{ {
int i, res, nb, h1, h2; int i, nb, h1, h2;
Term term; Term term;
char string[100]; char string[100];
char buffer[100]; char buffer[100];
const char *text = nullptr;
snprintf (m_libelle, sizeof (m_libelle), "%s", "1|Goal :"); snprintf (m_libelle, sizeof (m_libelle), "%s", "1|Goal :");
@ -4078,52 +4079,54 @@ void CEvent::PrivateLibelle()
nb = 0; nb = 0;
for ( i=0 ; i<2 ; i++ ) // 2 objectifs au maximum ! for ( i=0 ; i<2 ; i++ ) // 2 objectifs au maximum !
{ {
res = 0; text = nullptr;
if ( term.bKillRobots ) if ( term.bKillRobots )
{ {
term.bKillRobots = false; term.bKillRobots = false;
res = TX_PRIVATE_KILLROBOTS; text = gettext ("1|Kill all\n1|enemies !");
} }
else if ( term.bHachBlupi ) else if ( term.bHachBlupi )
{ {
term.bHachBlupi = false; term.bHachBlupi = false;
res = TX_PRIVATE_HACHBLUPI; text = gettext ("1|Go on striped\n1| paving stones.");
} }
else if ( term.bHachPlanche ) else if ( term.bHachPlanche )
{ {
term.bHachPlanche = false; term.bHachPlanche = false;
res = TX_PRIVATE_HACHPLANCHE; text = gettext ("1|Drop planks on striped \n1|paving stones.");
} }
else if ( term.bHachTomate ) else if ( term.bHachTomate )
{ {
term.bHachTomate = false; term.bHachTomate = false;
res = TX_PRIVATE_HACHTOMATE; text = gettext ("1|Drop tomatoes on striped \n1|paving stones.");
} }
else if ( term.bHachMetal ) else if ( term.bHachMetal )
{ {
term.bHachMetal = false; term.bHachMetal = false;
res = TX_PRIVATE_HACHMETAL; text = gettext ("1|Drop platinium on striped \n1|paving stones.");
} }
else if ( term.bHachRobot ) else if ( term.bHachRobot )
{ {
term.bHachRobot = false; term.bHachRobot = false;
res = TX_PRIVATE_HACHROBOT; text = gettext ("1|The robot must reach\n1|the striped paving stones.");
} }
else if ( term.bHomeBlupi ) else if ( term.bHomeBlupi )
{ {
term.bHomeBlupi = false; term.bHomeBlupi = false;
res = TX_PRIVATE_HOMEBLUPI; text = gettext ("1|Each Blupi in\n1|his house.");
} }
else if ( term.bStopFire ) else if ( term.bStopFire )
{ {
term.bStopFire = false; term.bStopFire = false;
res = TX_PRIVATE_STOPFIRE; text = gettext ("1|Resist until\n1|fire extinction ...");
} }
if ( res == 0 ) break;
LoadString(res, string, 100); if (!text)
break;
strcat(m_libelle, "\n1|\n"); strcat(m_libelle, "\n1|\n");
strcat(m_libelle, string); strcat(m_libelle, text);
nb ++; nb ++;
} }