From 7fbcd67746002f9448dbdcefc205ee967c0bad46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Sun, 11 Sep 2016 18:31:11 +0200 Subject: [PATCH] Version 15.250.9 --- swad_changelog.h | 3 ++- swad_course.c | 2 +- swad_profile.c | 26 +++++++++++++------------- swad_report.c | 39 ++++++++++++++++++++++++++++++++++----- swad_text.c | 18 +++++++++--------- 5 files changed, 59 insertions(+), 29 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index 8dada3e21..1da12aeee 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -135,13 +135,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 15.250.8 (2016-09-11)" +#define Log_PLATFORM_VERSION "SWAD 15.250.9 (2016-09-11)" #define CSS_FILE "swad15.229.css" #define JS_FILE "swad15.238.1.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.250.9: Sep 11, 2016 Number of courses in user's usage report. (204307 lines) Version 15.250.8: Sep 11, 2016 Number of messages sent in user's usage report. (204278 lines) Version 15.250.7: Sep 11, 2016 Number of posts in forums in user's usage report. (204235 lines) Version 15.250.6: Sep 11, 2016 Number of downloads in user's usage report. (204207 lines) diff --git a/swad_course.c b/swad_course.c index 23d27d9c6..6159d993e 100644 --- a/swad_course.c +++ b/swad_course.c @@ -3037,7 +3037,7 @@ void Crs_GetAndWriteCrssOfAUsr (const struct UsrData *UsrDat,Rol_Role_t Role) /* Heading row */ sprintf (Gbl.Title,Txt_USER_in_COURSE,Txt_ROLES_SINGUL_Abc[Role][UsrDat->Sex]); fprintf (Gbl.F.Out,"" - "%s" + "%s:" "" "" "" diff --git a/swad_profile.c b/swad_profile.c index c2b7006d3..67dfa2cab 100644 --- a/swad_profile.c +++ b/swad_profile.c @@ -341,9 +341,9 @@ void Prf_ChangeProfileVisibility (void) void Prf_ShowDetailsUserProfile (const struct UsrData *UsrDat) { extern const char *Txt_ROLES_SINGUL_Abc[Rol_NUM_ROLES][Usr_NUM_SEXS]; + extern const char *Txt_courses_ABBREVIATION; extern const char *Txt_teachers_ABBREVIATION; extern const char *Txt_students_ABBREVIATION; - extern const char *Txt_courses_ABBREVIATION; extern const char *Txt_Files_uploaded; extern const char *Txt_file; extern const char *Txt_files; @@ -378,14 +378,14 @@ void Prf_ShowDetailsUserProfile (const struct UsrData *UsrDat) /***** Number of courses in which the user is teacher *****/ NumCrssUsrIsTeacher = Usr_GetNumCrssOfUsrWithARole (UsrDat->UsrCod,Rol_TEACHER); fprintf (Gbl.F.Out,"
  • " - "%u %s ", + " style=\"background-image:url('%s/tch64x64.gif');\">" + "%u %s", Txt_ROLES_SINGUL_Abc[Rol_TEACHER][UsrDat->Sex], Gbl.Prefs.IconsURL, NumCrssUsrIsTeacher, Txt_courses_ABBREVIATION); if (NumCrssUsrIsTeacher) - fprintf (Gbl.F.Out,"(%u %s/%u %s)", + fprintf (Gbl.F.Out," (%u %s/%u %s)", Usr_GetNumUsrsInCrssOfAUsr (UsrDat->UsrCod,Rol_TEACHER,Rol_TEACHER), Txt_teachers_ABBREVIATION, Usr_GetNumUsrsInCrssOfAUsr (UsrDat->UsrCod,Rol_TEACHER,Rol_STUDENT), @@ -395,14 +395,14 @@ void Prf_ShowDetailsUserProfile (const struct UsrData *UsrDat) /***** Number of courses in which the user is student *****/ NumCrssUsrIsStudent = Usr_GetNumCrssOfUsrWithARole (UsrDat->UsrCod,Rol_STUDENT); fprintf (Gbl.F.Out,"
  • " - "%u %s ", + " style=\"background-image:url('%s/std64x64.gif');\">" + "%u %s", Txt_ROLES_SINGUL_Abc[Rol_STUDENT][UsrDat->Sex], Gbl.Prefs.IconsURL, NumCrssUsrIsStudent, Txt_courses_ABBREVIATION); if (NumCrssUsrIsStudent) - fprintf (Gbl.F.Out,"(%u %s/%u %s)", + fprintf (Gbl.F.Out," (%u %s/%u %s)", Usr_GetNumUsrsInCrssOfAUsr (UsrDat->UsrCod,Rol_STUDENT,Rol_TEACHER), Txt_teachers_ABBREVIATION, Usr_GetNumUsrsInCrssOfAUsr (UsrDat->UsrCod,Rol_STUDENT,Rol_STUDENT), @@ -415,7 +415,7 @@ void Prf_ShowDetailsUserProfile (const struct UsrData *UsrDat) else NumPublicFiles = 0; fprintf (Gbl.F.Out,"
  • " + " style=\"background-image:url('%s/file64x64.gif');\">" "%u %s (%u %s)" "
  • ", Txt_Files_uploaded, @@ -430,7 +430,7 @@ void Prf_ShowDetailsUserProfile (const struct UsrData *UsrDat) /* Time since first click */ fprintf (Gbl.F.Out,"
  • ", + " style=\"background-image:url('%s/clock64x64.gif');\">", Txt_From_TIME, Gbl.Prefs.IconsURL); if (UsrFigures.FirstClickTimeUTC) @@ -468,7 +468,7 @@ void Prf_ShowDetailsUserProfile (const struct UsrData *UsrDat) { /* Number of clicks */ fprintf (Gbl.F.Out,"
  • ", + " style=\"background-image:url('%s/click64x64.gif');\">", Txt_Clicks, Gbl.Prefs.IconsURL); @@ -496,7 +496,7 @@ void Prf_ShowDetailsUserProfile (const struct UsrData *UsrDat) /***** Number of file views *****/ fprintf (Gbl.F.Out,"
  • ", + " style=\"background-image:url('%s/download64x64.png');\">", Txt_Downloads, Gbl.Prefs.IconsURL); if (UsrFigures.NumFileViews >= 0) @@ -522,7 +522,7 @@ void Prf_ShowDetailsUserProfile (const struct UsrData *UsrDat) /***** Number of posts in forums *****/ fprintf (Gbl.F.Out,"
  • ", + " style=\"background-image:url('%s/forum64x64.gif');\">", Txt_Forums, Gbl.Prefs.IconsURL); if (UsrFigures.NumForPst >= 0) @@ -549,7 +549,7 @@ void Prf_ShowDetailsUserProfile (const struct UsrData *UsrDat) /***** Number of messages sent *****/ fprintf (Gbl.F.Out,"
  • ", + " style=\"background-image:url('%s/msg64x64.gif');\">", Txt_Messages, Gbl.Prefs.IconsURL); if (UsrFigures.NumMsgSnt >= 0) diff --git a/swad_report.c b/swad_report.c index 43e016133..f1e7303e6 100644 --- a/swad_report.c +++ b/swad_report.c @@ -107,6 +107,11 @@ static void Rep_ShowOrPrintMyUsageReport (Rep_SeeOrPrint_t SeeOrPrint) extern const char *Txt_Messages_sent; extern const char *Txt_message; extern const char *Txt_messages; + extern const char *Txt_USER_in_COURSE; + extern const char *Txt_ROLES_SINGUL_Abc[Rol_NUM_ROLES][Usr_NUM_SEXS]; + extern const char *Txt_courses; + extern const char *Txt_teachers_ABBREVIATION; + extern const char *Txt_students_ABBREVIATION; unsigned NumID; char CtyName[Cty_MAX_BYTES_COUNTRY_NAME+1]; struct Institution Ins; @@ -114,6 +119,8 @@ static void Rep_ShowOrPrintMyUsageReport (Rep_SeeOrPrint_t SeeOrPrint) struct tm FirstClickTime; unsigned NumFiles; unsigned NumPublicFiles; + Rol_Role_t Role; + unsigned NumCrss; /***** Start frame and table *****/ Lay_StartRoundFrame ("100%",Txt_Report_of_use_of_the_platform, @@ -122,7 +129,7 @@ static void Rep_ShowOrPrintMyUsageReport (Rep_SeeOrPrint_t SeeOrPrint) fprintf (Gbl.F.Out,""); /***** Show details of user's profile *****/ diff --git a/swad_text.c b/swad_text.c index 3eec9f7e8..c61eb9df0 100644 --- a/swad_text.c +++ b/swad_text.c @@ -49093,23 +49093,23 @@ const char *Txt_User_ID = const char *Txt_USER_in_COURSE = // Warning: it is very important to include %s in the following sentences #if L==1 - "%s en:"; + "%s en"; #elif L==2 - "%s im:"; + "%s im"; #elif L==3 - "%s in:"; + "%s in"; #elif L==4 - "%s en:"; + "%s en"; #elif L==5 - "%s dans:"; + "%s dans"; #elif L==6 - "%s en:"; // Okoteve traducción + "%s en"; // Okoteve traducción #elif L==7 - "%s in:"; + "%s in"; #elif L==8 - "%s w:"; + "%s w"; #elif L==9 - "%s em:"; + "%s em"; #endif const char *Txt_User_not_found_or_you_do_not_have_permission_ =