Version 16.71.3

This commit is contained in:
Antonio Cañas Vargas 2016-11-26 17:40:48 +01:00
parent 7657843d96
commit fcc432367c
3 changed files with 61 additions and 29 deletions

View File

@ -172,17 +172,20 @@
// TODO: List only confirmed emails to send a message with MESSAGES > Email ?
// TODO: Link "Show office hours" in bold when activated
/*****************************************************************************/
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 16.71.2 (2016-11-25)"
#define Log_PLATFORM_VERSION "SWAD 16.71.3 (2016-11-26)"
#define CSS_FILE "swad16.69.css"
#define JS_FILE "swad16.46.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 16.71.3: Nov 26, 2016 Change in layout of notifications. (207597 lines)
Version 16.71.2: Nov 25, 2016 Fix bug in shared record card. (207569 lines)
Version 16.71.1: Nov 25, 2016 Contextual help on test results. (207568 lines)
Version 16.71: Nov 25, 2016 Fixed bugs and changes in layout related with selection of groups. (207560 lines)

View File

@ -302,7 +302,8 @@ void Ntf_ShowMyNotifications (void)
extern const char *Txt_Centre;
extern const char *Txt_Institution;
extern const char *Txt_NOTIFICATION_STATUS[Ntf_NUM_STATUS_TXT];
extern const char *Txt_No_notifications_for_you;
extern const char *Txt_You_have_no_notifications;
extern const char *Txt_You_have_no_unread_notifications;
char Query[512];
char SubQuery[128];
MYSQL_RES *mysql_res;
@ -366,6 +367,10 @@ void Ntf_ShowMyNotifications (void)
fprintf (Gbl.F.Out,"</div>");
/***** Start frame *****/
Lay_StartRoundFrame (NULL,Txt_Notifications,
Ntf_PutIconsNotif,Hlp_MESSAGES_Notifications);
/***** List my notifications *****/
if (NumNotifications) // Notifications found
{
@ -376,10 +381,9 @@ void Ntf_ShowMyNotifications (void)
/***** Initialize structure with user's data *****/
Usr_UsrDataConstructor (&UsrDat);
/***** Table start *****/
Lay_StartRoundFrameTable (NULL,Txt_Notifications,
Ntf_PutIconsNotif,Hlp_MESSAGES_Notifications,2);
fprintf (Gbl.F.Out,"<tr>"
/***** Start table *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">"
"<tr>"
"<th colspan=\"2\" class=\"LEFT_MIDDLE\">"
"%s"
"</th>"
@ -620,7 +624,7 @@ void Ntf_ShowMyNotifications (void)
}
/***** End table *****/
Lay_EndRoundFrameTable ();
fprintf (Gbl.F.Out,"</table>");
/***** Free memory used for user's data *****/
Usr_UsrDataDestructor (&UsrDat);
@ -629,7 +633,11 @@ void Ntf_ShowMyNotifications (void)
free ((void *) SummaryStr);
}
else
Lay_ShowAlert (Lay_INFO,Txt_No_notifications_for_you);
Lay_ShowAlert (Lay_INFO,AllNotifications ? Txt_You_have_no_notifications :
Txt_You_have_no_unread_notifications);
/***** End frame *****/
Lay_EndRoundFrame ();
/***** Free structure that stores the query result *****/
DB_FreeMySQLResult (&mysql_res);

View File

@ -24402,27 +24402,6 @@ const char *Txt_No_notices =
"N&atilde;o h&aacute; avisos.";
#endif
const char *Txt_No_notifications_for_you =
#if L==1
"No tiene notificaciones."; // Necessita traduccio
#elif L==2
"Keine Anmeldungen f&uuml;r Sie.";
#elif L==3
"No notifications for you.";
#elif L==4
"No tiene notificaciones.";
#elif L==5
"Il n'y a pas de notifications pour vous.";
#elif L==6
"No tiene notificaciones."; // Okoteve traducción
#elif L==7
"Non ci sono notifiche per te.";
#elif L==8
"Brak powiadomienia dla Ciebie.";
#elif L==9
"N&atilde;o h&aacute; notifica&ccedil;&otilde;es para voc&ecirc;.";
#endif
const char *Txt_No_of_files =
#if L==1
"Nombre d'arxius";
@ -53016,6 +52995,48 @@ const char *Txt_You_have_eliminated_the_confirmation_that_you_have_read_this_inf
" that you have read this information."; // Necessita de tradução
#endif
const char *Txt_You_have_no_notifications =
#if L==1
"No tens notificacions.";
#elif L==2
"Sie haben keine Benachrichtigungen.";
#elif L==3
"You have no notifications.";
#elif L==4
"No tiene notificaciones.";
#elif L==5
"Vous n'avez aucune notification.";
#elif L==6
"No tiene notificaciones."; // Okoteve traducción
#elif L==7
"Non ci sono notifiche.";
#elif L==8
"Nie masz &zdot;adnych powiadomie&nacute;.";
#elif L==9
"Voc&ecirc; n&atilde;o tem notifica&ccedil;&otilde;es.";
#endif
const char *Txt_You_have_no_unread_notifications =
#if L==1
"No tens notificacions sense llegir.";
#elif L==2
"Sie haben keine ungelesenen Benachrichtigungen.";
#elif L==3
"You have no unread notifications.";
#elif L==4
"No tiene notificaciones sin leer.";
#elif L==5
"Vous n'avez aucune notification non lue.";
#elif L==6
"No tiene notificaciones sin leer."; // Okoteve traducción
#elif L==7
"Non ci sono notifiche non lette.";
#elif L==8
"Nie masz nieprzeczytanych powiadomie&nacute;.";
#elif L==9
"Voc&ecirc; n&atilde;o tem notifica&ccedil;&otilde;es n&atilde;o lidas.";
#endif
const char *Txt_You_have_not_banned_any_sender =
#if L==1
"Usted no ha bloqueado ning&uacute;n remitente."; // Necessita traduccio