",
- Game->Status.Visible ? "STATUS_RED" :
- "STATUS_RED_LIGHT",
- Txt_Closed_game);
-
- * Write whether game can be answered by me or not depending on groups *
- if (Game->Status.IBelongToScope)
- fprintf (Gbl.F.Out,"
",
- Game->Status.Visible ? "STATUS_RED" :
- "STATUS_RED_LIGHT",
- Txt_GAME_You_dont_belong_to_the_scope_of_the_game);
-
- * Write whether game has been already answered by me or not *
- if (Game->Status.IHaveAnswered)
- fprintf (Gbl.F.Out,"
",
- Game->Status.Visible ? "STATUS_RED" :
- "STATUS_RED_LIGHT",
- Txt_SURVEY_You_have_not_answered);
-
- ***** End list with items of status *****
- fprintf (Gbl.F.Out,"
");
- }
-*/
/*****************************************************************************/
/********** Get parameter with the type or order in list of games ************/
/*****************************************************************************/
@@ -1124,7 +971,7 @@ long Gam_GetParamGameCod (void)
/******************** Write parameter with code of match **********************/
/*****************************************************************************/
-void Gam_PutParamMatchCod (long MchCod)
+static void Gam_PutParamMatchCod (long MchCod)
{
Par_PutHiddenParamLong ("MchCod",MchCod);
}
@@ -1133,7 +980,7 @@ void Gam_PutParamMatchCod (long MchCod)
/********************* Get parameter with code of match **********************/
/*****************************************************************************/
-long Gam_GetParamMatchCod (void)
+static long Gam_GetParamMatchCod (void)
{
/***** Get code of match *****/
return Par_GetParToLong ("MchCod");
@@ -1526,10 +1373,9 @@ static void Gam_ShowLstGrpsToEditMatch (void)
"
"
""
"
"
@@ -1690,19 +1536,6 @@ static void Gam_UpdateGame (struct Game *Game,const char *Txt)
Ale_ShowAlert (Ale_SUCCESS,Txt_The_game_has_been_modified);
}
-/*****************************************************************************/
-/*************** Check if a match is associated to any group *****************/
-/*****************************************************************************/
-/*
-static bool Gam_CheckIfMatchIsAssociatedToGrps (long MchCod)
- {
- ***** Get if a match is associated to a group from database *****
- return (DB_QueryCOUNT ("can not check if a match is associated to groups",
- "SELECT COUNT(*) FROM gam_grp"
- " WHERE MchCod=%ld",
- MchCod) != 0);
- }
-*/
/*****************************************************************************/
/************* Check if a match is associated to a given group ***************/
/*****************************************************************************/
@@ -3008,7 +2841,7 @@ static void Gam_ListOneOrMoreMatchesForEdition (struct Game *Game,
extern const char *Txt_Status;
extern const char *Txt_Resume;
extern const char *Txt_Today;
- extern const char *Txt_Finished_match;
+ extern const char *Txt_View_game_results;
unsigned NumMatch;
unsigned UniqueId;
struct Match Match;
@@ -3138,7 +2971,7 @@ static void Gam_ListOneOrMoreMatchesForEdition (struct Game *Game,
Lay_PutContextualLinkOnlyIcon (ActShoMch,NULL,
Gam_PutParamCurrentMchCod,
"flag-checkered.svg",
- Txt_Finished_match);
+ Txt_View_game_results);
else // Unfinished match
{
/* Current question index / total of questions */
@@ -3554,7 +3387,6 @@ static void Gam_CreateMatch (struct Match *Match)
void Gam_ResumeUnfinishedMatch (void)
{
- extern const char *Txt_Finished_match;
struct Match Match;
/***** Get parameters *****/
@@ -3566,13 +3398,7 @@ void Gam_ResumeUnfinishedMatch (void)
Gam_GetDataOfMatchByCod (&Match);
if (Match.Status.Finished)
- {
- /***** Show alert *****/
- Ale_ShowAlert (Ale_WARNING,Txt_Finished_match);
-
- /***** Button to close browser tab *****/
- Btn_PutCloseButton ("Cerrar"); // TODO: Need translation!!!!!
- }
+ Gam_ShowAlertFinishedMatch ();
else // Unfinished match
{
/***** In what question do we resume the match? *****/
@@ -3618,7 +3444,6 @@ static void Gam_UpdateMatchBeingPlayed (struct Match *Match)
void Gam_NextStatusMatch (void)
{
- extern const char *Txt_Finished_match;
struct Match Match;
long NxtQstInd;
@@ -3666,18 +3491,27 @@ void Gam_NextStatusMatch (void)
/***** Show status and questions *****/
if (Match.Status.Finished)
- {
- /* Show alert */
- Ale_ShowAlert (Ale_WARNING,Txt_Finished_match);
-
- /* Button to close browser tab */
- Btn_PutCloseButton ("Cerrar"); // TODO: Need translation!!!!!
- }
+ Gam_ShowAlertFinishedMatch ();
else
/* Show questions and possible answers */
Gam_PlayGameShowQuestionAndAnswers (&Match);
}
+/*****************************************************************************/
+/********************* Show alert about finished match ***********************/
+/*****************************************************************************/
+
+static void Gam_ShowAlertFinishedMatch (void)
+ {
+ extern const char *Txt_Finished_match;
+
+ /***** Show alert *****/
+ Ale_ShowAlert (Ale_WARNING,Txt_Finished_match);
+
+ /***** Button to close browser tab *****/
+ Btn_PutCloseButton ("Cerrar"); // TODO: Need translation!!!!!
+ }
+
/*****************************************************************************/
/*********** Show question and its answers when playing a match **************/
/*****************************************************************************/
diff --git a/swad_game.h b/swad_game.h
index 88cafc634..aa6dc5a4e 100644
--- a/swad_game.h
+++ b/swad_game.h
@@ -93,8 +93,6 @@ void Gam_FreeListGames (void);
void Gam_PutParamGameCod (long GamCod);
long Gam_GetParamGameCod (void);
-void Gam_PutParamMatchCod (long MchCod); // TODO: Check if this function can be static
-long Gam_GetParamMatchCod (void); // TODO: Check if this function can be static
void Gam_AskRemGame (void);
void Gam_RemoveGame (void);
void Gam_AskResetGame (void);
diff --git a/swad_text.c b/swad_text.c
index ee80a59d4..067ac1e74 100644
--- a/swad_text.c
+++ b/swad_text.c
@@ -4119,7 +4119,7 @@ const char *Txt_Close =
#elif L==9 // pt
"Fechar";
#endif
-
+/*
const char *Txt_Closed_game =
#if L==1 // ca
"Joc tancat";
@@ -4140,7 +4140,7 @@ const char *Txt_Closed_game =
#elif L==9 // pt
"Jogo fechado";
#endif
-
+*/
const char *Txt_Closed_survey =
#if L==1 // ca
"Enquesta tancada";
@@ -13593,7 +13593,7 @@ const char *Txt_Game_X_reset = // Warning: it is very important to include %s in
#elif L==9 // pt
"Jogo %s fixado em zero.";
#endif
-
+/*
const char *Txt_GAME_You_belong_to_the_scope_of_the_game =
#if L==1 // ca
"Pertany a l'àmbit del joc";
@@ -13635,7 +13635,7 @@ const char *Txt_GAME_You_dont_belong_to_the_scope_of_the_game =
#elif L==9 // pt
"Você não pertence ao âmbito do jogo";
#endif
-
+*/
const char *Txt_Games =
#if L==1 // ca
"Jocs";
@@ -14350,7 +14350,7 @@ const char *Txt_hidden_documents =
#elif L==9 // pt
"documentos ocultos";
#endif
-
+/*
const char *Txt_Hidden_game =
#if L==1 // ca
"Joc ocult";
@@ -14371,7 +14371,7 @@ const char *Txt_Hidden_game =
#elif L==9 // pt
"Jogo oculto";
#endif
-
+*/
const char *Txt_Hidden_survey =
#if L==1 // ca
"Enquesta oculta";
@@ -27907,7 +27907,7 @@ const char *Txt_open_documents =
#elif L==9 // pt
"documentos abertos";
#endif
-
+/*
const char *Txt_Open_game =
#if L==1 // ca
"Joc oberto";
@@ -27928,7 +27928,7 @@ const char *Txt_Open_game =
#elif L==9 // pt
"Jogo aberto";
#endif
-
+*/
const char *Txt_Open_survey =
#if L==1 // ca
"Enquesta oberta";
@@ -52667,7 +52667,7 @@ const char *Txt_Visible_by_BR_the_student =
#elif L==9 // pt
"Visível pelo estudante?";
#endif
-
+/*
const char *Txt_Visible_game =
#if L==1 // ca
"Joc visible";
@@ -52688,7 +52688,7 @@ const char *Txt_Visible_game =
#elif L==9 // pt
"Jogo visível";
#endif
-
+*/
const char *Txt_Visible_MALE_PLURAL =
#if L==1 // ca
"Visibles";