Version 16.81.3

This commit is contained in:
Antonio Cañas Vargas 2016-12-01 16:49:12 +01:00
parent 1d3c36b8d9
commit d1a66430dc
3 changed files with 66 additions and 10 deletions

View File

@ -451,12 +451,12 @@ static void Agd_PutFormsToRemEditOneEvent (long AgdCod,bool Hidden)
/***** Put form to hide/show event *****/
if (Hidden)
Lay_PutContextualLink (ActShoEvtMyAgd,Agd_PutParams,
"eye-slash-on64x64.png",
"closed_on16x16.gif",
Txt_Show,NULL,
NULL);
else
Lay_PutContextualLink (ActHidEvtMyAgd,Agd_PutParams,
"eye-on64x64.png",
"open_on16x16.gif",
Txt_Hide,NULL,
NULL);
@ -776,12 +776,12 @@ void Agd_RemoveEvent (void)
}
/*****************************************************************************/
/******************************* Hide an event *******************************/
/********************* Hide an event (make it private) ***********************/
/*****************************************************************************/
void Agd_HideEvent (void)
{
extern const char *Txt_Event_X_is_now_hidden;
extern const char *Txt_Event_X_is_now_private;
char Query[512];
struct AgendaEvent AgdEvent;
@ -799,7 +799,7 @@ void Agd_HideEvent (void)
DB_QueryUPDATE (Query,"can not hide event");
/***** Write message to show the change made *****/
sprintf (Gbl.Message,Txt_Event_X_is_now_hidden,AgdEvent.Event);
sprintf (Gbl.Message,Txt_Event_X_is_now_private,AgdEvent.Event);
Lay_ShowAlert (Lay_SUCCESS,Gbl.Message);
/***** Show events again *****/
@ -807,13 +807,13 @@ void Agd_HideEvent (void)
}
/*****************************************************************************/
/******************************* Show an event *******************************/
/********* Show an event (make it viewable to users of my courses) ***********/
/*****************************************************************************/
void Agd_ShowEvent (void)
{
extern const char *Txt_Event_X_is_now_visible;
char Query[512];
extern const char *Txt_Event_X_is_now_viewable_to_users_of_your_courses;
char Query[256];
struct AgendaEvent AgdEvent;
/***** Get event code *****/
@ -830,7 +830,8 @@ void Agd_ShowEvent (void)
DB_QueryUPDATE (Query,"can not show event");
/***** Write message to show the change made *****/
sprintf (Gbl.Message,Txt_Event_X_is_now_visible,AgdEvent.Event);
sprintf (Gbl.Message,Txt_Event_X_is_now_viewable_to_users_of_your_courses,
AgdEvent.Event);
Lay_ShowAlert (Lay_SUCCESS,Gbl.Message);
/***** Show events again *****/

View File

@ -179,17 +179,21 @@
// TODO: When teacher sees "No hay estudiantes", put a button to add students
// TODO: When admin sees "No hay profesores", put a button to add teachers
// TODO: Cuando el alumno vea la agenda del profesor, sólo se mostrarán los eventos públicos cuya fecha final esté en el futuro
/*****************************************************************************/
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 16.81.2 (2016-12-01)"
#define Log_PLATFORM_VERSION "SWAD 16.81.3 (2016-12-01)"
#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.81.3: Dec 01, 2016 Icon view replaced by lock in agenda.
Changes in texts related to agenda. (209227 lines)
Version 16.81.2: Dec 01, 2016 New file types for GeoGebra, suggested by Sandra Quero Ramones. (209174 lines)
Copy the following icons to icon public directory:
sudo cp icon/filext16x16/ggb16x16.gif /var/www/html/swad/icon/filext16x16/

View File

@ -10923,6 +10923,27 @@ const char *Txt_Event_X_is_now_hidden = // Warning: it is very important to incl
"O evento <strong>%s</strong> &eacute; agora oculto.";
#endif
const char *Txt_Event_X_is_now_private = // Warning: it is very important to include %s in the following sentences
#if L==1
"L'esdevenimen <strong>%s</strong> ara &eacute;s privat.";
#elif L==2
"Der Ereignis <strong>%s</strong> ist jetzt privat.";
#elif L==3
"Event <strong>%s</strong> is now private.";
#elif L==4
"El evento <strong>%s</strong> ahora es privado.";
#elif L==5
"L'&eacute;v&eacute;nement <strong>%s</strong> est maintenant priv&eacute;.";
#elif L==6
"El evento <strong>%s</strong> ahora es privado."; // Okoteve traducción
#elif L==7
"L'evento <strong>%s</strong> &egrave; ora privato.";
#elif L==8
"Wydarzenie <strong>%s</strong> jest obecnie prywatne.";
#elif L==9
"O evento <strong>%s</strong> &eacute; agora privado.";
#endif
const char *Txt_Event_X_is_now_visible = // Warning: it is very important to include %s in the following sentences
#if L==1
"L'esdevenimen <strong>%s</strong> ara est&agrave; visible.";
@ -10944,6 +10965,36 @@ const char *Txt_Event_X_is_now_visible = // Warning: it is very important to inc
"O evento <strong>%s</strong> &eacute; agora vis&iacute;vel.";
#endif
const char *Txt_Event_X_is_now_viewable_to_users_of_your_courses = // Warning: it is very important to include %s in the following sentences
#if L==1
"L'esdevenimen <strong>%s</strong> ara &eacute;s visible"
" per a usuaris de les seves assignatures.";
#elif L==2
"Der Ereignis <strong>%s</strong> ist jetzt sichtbar"
" f&uuml;r Benutzer Ihrer Kurse.";
#elif L==3
"Event <strong>%s</strong> is now viewable"
" to users of your courses.";
#elif L==4
"El evento <strong>%s</strong> ahora es visible"
" por usuarios de sus asignaturas.";
#elif L==5
"L'&eacute;v&eacute;nement <strong>%s</strong> est maintenant visible"
" pour les utilisateurs de vos mati&egrave;res.";
#elif L==6
"El evento <strong>%s</strong> ahora es visible"
" por usuarios de sus asignaturas."; // Okoteve traducción
#elif L==7
"L'evento <strong>%s</strong> &egrave; ora visibile"
" agli utenti dei corsi.";
#elif L==8
"Wydarzenie <strong>%s</strong> jest teraz widoczne"
" dla u&zdot;ytkownik&oacute;w swoich kursach.";
#elif L==9
"O evento <strong>%s</strong> &eacute; agora vis&iacute;vel"
" para os usu&aacute;rios de seus disciplinas.";
#endif
const char *Txt_Event_X_removed = // Warning: it is very important to include %s in the following sentences
#if L==1
"Esdeveniment <strong>%s</strong> eliminat.";