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

Cosmetic: translate comments

This commit is contained in:
Mathieu Schroeter 2017-08-04 21:04:04 +02:00
parent 8ac93b8e40
commit 2d7a6f28d1

View File

@ -373,7 +373,7 @@ static void HandleEvent (const SDL_Event & event)
} }
} }
// Erreur dans DoInit. // Error with DoInit function.
static bool InitFail (const char * msg) static bool InitFail (const char * msg)
{ {
@ -390,7 +390,7 @@ static bool InitFail (const char * msg)
return false; return false;
} }
// Initialisation de l'application. // Main initialization function.
static bool DoInit (Sint32 argc, char * argv[]) static bool DoInit (Sint32 argc, char * argv[])
{ {
@ -435,7 +435,7 @@ static bool DoInit (Sint32 argc, char * argv[])
return false; return false;
} }
if (!bOK) // config.ini pas correct ? if (!bOK) // Something wrong with config.ini file?
return InitFail ("Game not correctly installed"); return InitFail ("Game not correctly installed");
SDL_RenderSetLogicalSize (g_renderer, LXIMAGE, LYIMAGE); SDL_RenderSetLogicalSize (g_renderer, LXIMAGE, LYIMAGE);
@ -465,7 +465,7 @@ static bool DoInit (Sint32 argc, char * argv[])
info.max_texture_height); info.max_texture_height);
} }
// Cr�e le pixmap principal. // Create the main pixmap.
g_pPixmap = new CPixmap; g_pPixmap = new CPixmap;
if (g_pPixmap == nullptr) if (g_pPixmap == nullptr)
return InitFail ("New pixmap"); return InitFail ("New pixmap");
@ -593,7 +593,7 @@ static bool DoInit (Sint32 argc, char * argv[])
g_pPixmap->LoadCursors (); g_pPixmap->LoadCursors ();
g_pPixmap->ChangeSprite (SPRITE_WAIT); // met le sablier maison g_pPixmap->ChangeSprite (SPRITE_WAIT); // met le sablier maison
// Cr�e le gestionnaire de son. // Create the sound manager.
g_pSound = new CSound; g_pSound = new CSound;
if (g_pSound == nullptr) if (g_pSound == nullptr)
return InitFail ("New sound"); return InitFail ("New sound");
@ -602,14 +602,14 @@ static bool DoInit (Sint32 argc, char * argv[])
g_pSound->CacheAll (); g_pSound->CacheAll ();
g_pSound->SetState (true); g_pSound->SetState (true);
// Cr�e le gestionnaire de films. // Create the movie manager.
g_pMovie = new CMovie; g_pMovie = new CMovie;
if (g_pMovie == nullptr) if (g_pMovie == nullptr)
return InitFail ("New movie"); return InitFail ("New movie");
g_pMovie->Create (); g_pMovie->Create ();
// Cr�e le gestionnaire de d�cors. // Create the decor manager.
g_pDecor = new CDecor; g_pDecor = new CDecor;
if (g_pDecor == nullptr) if (g_pDecor == nullptr)
return InitFail ("New decor"); return InitFail ("New decor");
@ -617,7 +617,7 @@ static bool DoInit (Sint32 argc, char * argv[])
g_pDecor->Create (g_pSound, g_pPixmap); g_pDecor->Create (g_pSound, g_pPixmap);
g_pDecor->MapInitColors (); g_pDecor->MapInitColors ();
// Cr�e le gestionnaire d'�v�nements. // Create the event manager.
g_pEvent = new CEvent; g_pEvent = new CEvent;
if (g_pEvent == nullptr) if (g_pEvent == nullptr)
return InitFail ("New event"); return InitFail ("New event");
@ -626,7 +626,7 @@ static bool DoInit (Sint32 argc, char * argv[])
g_pEvent->SetFullScreen (g_bFullScreen); g_pEvent->SetFullScreen (g_bFullScreen);
g_pEvent->ChangePhase (WM_PHASE_INTRO1); g_pEvent->ChangePhase (WM_PHASE_INTRO1);
g_bTermInit = true; // initialisation termin�e g_bTermInit = true;
return true; return true;
} }
@ -638,8 +638,6 @@ static void initGettext ()
bind_textdomain_codeset ("planetblupi", "UTF-8"); bind_textdomain_codeset ("planetblupi", "UTF-8");
} }
// Programme principal.
int main (int argc, char * argv[]) int main (int argc, char * argv[])
{ {
initGettext (); initGettext ();