Version 15.250.7

This commit is contained in:
Antonio Cañas Vargas 2016-09-11 14:55:35 +02:00
parent 45bfb9db17
commit 1157b55ef4
4 changed files with 48 additions and 3 deletions

View File

@ -135,13 +135,14 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 15.250.7 (2016-09-11)"
#define Log_PLATFORM_VERSION "SWAD 15.250.8 (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.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)
Version 15.250.5: Sep 11, 2016 Number of clicks in user's usage report. (204189 lines)

View File

@ -568,7 +568,7 @@ void Prf_ShowDetailsUserProfile (const struct UsrData *UsrDat)
fprintf (Gbl.F.Out,"/%s)",Txt_day);
}
}
else // Number of clicks is unknown
else // Number of messages sent is unknown
/***** Button to fetch and store number of messages sent *****/
Prf_PutLinkToUpdateAction (ActCalNumMsgSnt,UsrDat->EncryptedUsrCod);
fprintf (Gbl.F.Out,"</li>");

View File

@ -104,6 +104,9 @@ static void Rep_ShowOrPrintMyUsageReport (Rep_SeeOrPrint_t SeeOrPrint)
extern const char *Txt_Forum_posts;
extern const char *Txt_post;
extern const char *Txt_posts;
extern const char *Txt_Messages_sent;
extern const char *Txt_message;
extern const char *Txt_messages;
unsigned NumID;
char CtyName[Cty_MAX_BYTES_COUNTRY_NAME+1];
struct Institution Ins;
@ -255,6 +258,26 @@ static void Rep_ShowOrPrintMyUsageReport (Rep_SeeOrPrint_t SeeOrPrint)
fprintf (Gbl.F.Out,"?");
fprintf (Gbl.F.Out,"</li>");
/***** Number of messages sent *****/
fprintf (Gbl.F.Out,"<li>%s: ",Txt_Messages_sent);
if (UsrFigures.NumMsgSnt >= 0)
{
fprintf (Gbl.F.Out,"%ld %s",
UsrFigures.NumMsgSnt,
(UsrFigures.NumMsgSnt == 1) ? Txt_message :
Txt_messages);
if (UsrFigures.NumDays > 0)
{
fprintf (Gbl.F.Out," (");
Str_WriteFloatNum ((float) UsrFigures.NumMsgSnt /
(float) UsrFigures.NumDays);
fprintf (Gbl.F.Out,"/%s)",Txt_day);
}
}
else // Number of messages sent is unknown
fprintf (Gbl.F.Out,"?");
fprintf (Gbl.F.Out,"</li>");
fprintf (Gbl.F.Out,"</ul>");
/***** Show details of user's profile *****/

View File

@ -21210,9 +21210,30 @@ const char *Txt_messages_sent =
"mensagens enviadas";
#endif
const char *Txt_Messages_sent =
#if L==1
"Missatges enviats";
#elif L==2
"Gesendete Nachrichten";
#elif L==3
"Messages sent";
#elif L==4
"Mensajes enviados";
#elif L==5
"Messages envoy&eacute;s";
#elif L==6
"Mensajes enviados"; // Okoteve traducción
#elif L==7
"Messaggi inviati";
#elif L==8
"Wiadomo&sacute;ci wysylane";
#elif L==9
"Mensagens enviadas";
#endif
const char *Txt_Messages_sent_by_teachers =
#if L==1
"Mensajes enviados por profesores"; // Necessita traduccio
"Missatges enviats per professors";
#elif L==2
"Gesendete Nachrichten, die von Lehrkr&auml;ften";
#elif L==3