diff --git a/swad_changelog.h b/swad_changelog.h index c5a095591..e797dff0a 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -140,14 +140,15 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 15.175.2 (2016-04-03)" +#define Log_PLATFORM_VERSION "SWAD 15.175.3 (2016-04-03)" #define CSS_FILE "swad15.173.1.css" #define JS_FILE "swad15.131.3.js" // 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 /* - Version 15.175.3: Apr 03, 2016 Check button to remove image when editing one test question. (? lines) + Version 15.175.4: Apr 03, 2016 Check button to remove image when editing one test question. (? lines) + Version 15.175.3: Apr 03, 2016 Change in edition of test question. (197804 lines) Version 15.175.2: Apr 03, 2016 Code refactoring related to deleting image file. (197773 lines) Version 15.175.1: Apr 03, 2016 Code refactoring related to deleting tests of a course. (197763 lines) Version 15.175: Apr 03, 2016 Fixed bug when editing a test question. diff --git a/swad_test.c b/swad_test.c index ee73e049b..72da122fb 100644 --- a/swad_test.c +++ b/swad_test.c @@ -1029,6 +1029,17 @@ void Tst_WriteQstStem (const char *Stem,const char *ClassStem) static void Tst_PutFormToUploadNewQstImage (void) { + extern const char *The_ClassForm[The_NUM_THEMES]; + extern const char *Txt_Change_image; + + /***** If an image exists, put label *****/ + if (Gbl.Test.Image[0]) + fprintf (Gbl.F.Out,"", + The_ClassForm[Gbl.Prefs.Theme],Txt_Change_image); + + /****** Form field to upload a new image *****/ fprintf (Gbl.F.Out,"", Fil_NAME_OF_PARAM_FILENAME_ORG); @@ -4308,6 +4319,8 @@ static void Tst_PutFormEditOneQst (char *Stem,char *Feedback) if (Gbl.Test.Image[0]) Img_ShowImage (Gbl.Test.Image,"TEST_IMG_EDIT_ONE"); Tst_PutFormToUploadNewQstImage (); + if (Gbl.Test.Image[0]) + fprintf (Gbl.F.Out,"" ""); diff --git a/swad_text.c b/swad_text.c index 33b03b4c9..15e9817ed 100644 --- a/swad_text.c +++ b/swad_text.c @@ -4236,6 +4236,27 @@ const char *Txt_Change_IDs = "Alterar nºs. identif."; #endif +const char *Txt_Change_image = +#if L==1 + "Canviar imatge"; +#elif L==2 + "Abbild ändern"; +#elif L==3 + "Change image"; +#elif L==4 + "Cambiar imagen"; +#elif L==5 + "Changer image"; +#elif L==6 + "Moambue ta'ãnga"; +#elif L==7 + "Cambiare immagine"; +#elif L==8 + "Zmień obraz"; +#elif L==9 + "Alterar imagem"; +#endif + const char *Txt_Change_logo = #if L==1 "Canviar logo"; @@ -4248,7 +4269,7 @@ const char *Txt_Change_logo = #elif L==5 "Changer logo"; #elif L==6 - "Cambiar logo"; // Okoteve traducción + "Moambue logo"; #elif L==7 "Cambiare logo"; #elif L==8