Version 16.251.1

This commit is contained in:
Antonio Cañas Vargas 2017-07-16 19:39:20 +02:00
parent 7c792da586
commit de4185ba70
3 changed files with 37 additions and 15 deletions

View File

@ -236,13 +236,14 @@
/****************************** Public constants *****************************/ /****************************** Public constants *****************************/
/*****************************************************************************/ /*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 16.251 (2017-07-16)" #define Log_PLATFORM_VERSION "SWAD 16.251.1 (2017-07-16)"
#define CSS_FILE "swad16.235.1.css" #define CSS_FILE "swad16.235.1.css"
#define JS_FILE "swad16.206.3.js" #define JS_FILE "swad16.206.3.js"
// Number of lines (includes comments but not blank lines) has been got with the following command: // Number of lines (includes comments but not blank lines) has been got with the following command:
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1 // nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1
/* /*
Version 16.251.1: Jul 16, 2017 Listing games for remote control. Not finished. (226888 lines)
Version 16.251: Jul 16, 2017 Listing games for remote control. Not finished. (226867 lines) Version 16.251: Jul 16, 2017 Listing games for remote control. Not finished. (226867 lines)
19 changes necessary in database: 19 changes necessary in database:
INSERT INTO actions (ActCod,Language,Obsolete,Txt) VALUES ('1648','es','N','Cambiar lugar de centro'); INSERT INTO actions (ActCod,Language,Obsolete,Txt) VALUES ('1648','es','N','Cambiar lugar de centro');

View File

@ -143,8 +143,8 @@ static void Rmt_FreeTextChoiceAnswer (struct GameQuestion *GameQst,unsigned NumA
static unsigned Rmt_GetQstIndFromQstCod (long QstCod); static unsigned Rmt_GetQstIndFromQstCod (long QstCod);
static unsigned Rmt_GetNextQuestionIndexInGame (long GamCod); static unsigned Rmt_GetNextQuestionIndexInGame (long GamCod);
static void Rmt_ListGameQuestions (struct Game *Game,struct GameQuestion *GameQst); static void Rmt_ListGameQuestions (struct Game *Game,struct GameQuestion *GameQst);
static void Rmt_PutIconToAddNewQuestion (void); static void Rmt_PutIconToAddNewQuestions (void);
static void Rmt_PutButtonToCreateNewQuestion (void); static void Rmt_PutButtonToAddNewQuestions (void);
static void Rmt_WriteQstStem (const char *Stem); static void Rmt_WriteQstStem (const char *Stem);
static void Rmt_WriteAnswersOfAQst (struct Game *Game,struct GameQuestion *GameQst,bool PutFormAnswerGame); static void Rmt_WriteAnswersOfAQst (struct Game *Game,struct GameQuestion *GameQst,bool PutFormAnswerGame);
static void Rmt_DrawBarNumUsrs (unsigned NumUsrs,unsigned MaxUsrs); static void Rmt_DrawBarNumUsrs (unsigned NumUsrs,unsigned MaxUsrs);
@ -2986,7 +2986,7 @@ static void Rmt_ListGameQuestions (struct Game *Game,struct GameQuestion *GameQs
/***** Start box *****/ /***** Start box *****/
Gbl.Games.GamCodToEdit = Game->GamCod; Gbl.Games.GamCodToEdit = Game->GamCod;
Box_StartBox (NULL,Txt_Questions,Game->Status.ICanEdit ? Rmt_PutIconToAddNewQuestion : Box_StartBox (NULL,Txt_Questions,Game->Status.ICanEdit ? Rmt_PutIconToAddNewQuestions :
NULL, NULL,
Hlp_ASSESSMENT_Games_questions,Box_NOT_CLOSABLE); Hlp_ASSESSMENT_Games_questions,Box_NOT_CLOSABLE);
@ -3102,7 +3102,7 @@ static void Rmt_ListGameQuestions (struct Game *Game,struct GameQuestion *GameQs
(!NumQsts || // This game has no questions (!NumQsts || // This game has no questions
Editing)) // I am editing Editing)) // I am editing
/***** Put button to add a new question in this game *****/ /***** Put button to add a new question in this game *****/
Rmt_PutButtonToCreateNewQuestion (); Rmt_PutButtonToAddNewQuestions ();
/***** Free structure that stores the query result *****/ /***** Free structure that stores the query result *****/
DB_FreeMySQLResult (&mysql_res); DB_FreeMySQLResult (&mysql_res);
@ -3112,31 +3112,31 @@ static void Rmt_ListGameQuestions (struct Game *Game,struct GameQuestion *GameQs
} }
/*****************************************************************************/ /*****************************************************************************/
/***************** Put icon to add a new question to game ******************/ /***************** Put icon to add a new questions to game *******************/
/*****************************************************************************/ /*****************************************************************************/
static void Rmt_PutIconToAddNewQuestion (void) static void Rmt_PutIconToAddNewQuestions (void)
{ {
extern const char *Txt_New_question; extern const char *Txt_Add_questions;
/***** Put form to create a new question *****/ /***** Put form to create a new question *****/
Lay_PutContextualLink (ActEdiOneGamQst,NULL,Rmt_PutParams, Lay_PutContextualLink (ActEdiOneGamQst,NULL,Rmt_PutParams,
"plus64x64.png", "plus64x64.png",
Txt_New_question,NULL, Txt_Add_questions,NULL,
NULL); NULL);
} }
/*****************************************************************************/ /*****************************************************************************/
/**************** Put button to add a new question to game *****************/ /***************** Put button to add new questions to game *******************/
/*****************************************************************************/ /*****************************************************************************/
static void Rmt_PutButtonToCreateNewQuestion (void) static void Rmt_PutButtonToAddNewQuestions (void)
{ {
extern const char *Txt_New_question; extern const char *Txt_Add_questions;
Act_FormStart (ActEdiOneGamQst); Act_FormStart (ActEdiOneGamQst);
Rmt_PutParams (); Rmt_PutParams ();
Btn_PutConfirmButton (Txt_New_question); Btn_PutConfirmButton (Txt_Add_questions);
Act_FormEnd (); Act_FormEnd ();
} }

View File

@ -2823,6 +2823,27 @@ const char *Txt_Another_user_s_profile =
"Perfil de outro usuário"; "Perfil de outro usuário";
#endif #endif
const char *Txt_Add_questions =
#if L==1
"Afegir preguntes";
#elif L==2
"Fügen Fragen";
#elif L==3
"Add questions";
#elif L==4
"Añadir preguntas";
#elif L==5
"Ajouter questions";
#elif L==6
"Añadir preguntas"; // Okoteve traducción
#elif L==7
"Aggiungere domande";
#elif L==8
"Dodaj pytania";
#elif L==9
"Adicionar questões";
#endif
const char *Txt_Add_this_ID = const char *Txt_Add_this_ID =
#if L==1 #if L==1
"Afegir aquest ID"; "Afegir aquest ID";
@ -2837,9 +2858,9 @@ const char *Txt_Add_this_ID =
#elif L==6 #elif L==6
"Añadir este ID"; // Okoteve traducción "Añadir este ID"; // Okoteve traducción
#elif L==7 #elif L==7
"Aggiungi questa carta d'identità"; "Aggiungere questa carta d'identità";
#elif L==8 #elif L==8
"Add this ID"; // Potrzebujesz tlumaczenie "Dodaj ten identyfikator";
#elif L==9 #elif L==9
"Adicionar este nº identif."; "Adicionar este nº identif.";
#endif #endif