Version 15.40.7

This commit is contained in:
Antonio Cañas Vargas 2015-11-20 16:39:08 +01:00
parent a52373a117
commit 8c294883af
3 changed files with 42 additions and 6 deletions

View File

@ -111,11 +111,12 @@
/****************************** Public constants *****************************/ /****************************** Public constants *****************************/
/*****************************************************************************/ /*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 15.40.6 (2015/11/19)" #define Log_PLATFORM_VERSION "SWAD 15.40.7 (2015/11/20)"
// Number of lines (includes comments but not blank lines) has been got with the following command: // 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 // nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1
/* /*
Version 15.40.7: Nov 20, 2015 New help button to register students in courses without them. (187319 lines)
Version 15.40.6: Nov 20, 2015 New button to register students in courses without them. Version 15.40.6: Nov 20, 2015 New button to register students in courses without them.
New buttons to create institution, centre, degree and course. (187285 lines) New buttons to create institution, centre, degree and course. (187285 lines)
Version 15.40.5: Nov 19, 2015 Code refactoring in degrees. (187274 lines) Version 15.40.5: Nov 19, 2015 Code refactoring in degrees. (187274 lines)

View File

@ -74,8 +74,8 @@ void Hlp_ShowHelpWhatWouldYouLikeToDo (void)
extern const char *Txt_You_can_search_for_courses_select_them_and_request_your_enrollment_in_them; extern const char *Txt_You_can_search_for_courses_select_them_and_request_your_enrollment_in_them;
extern const char *Txt_If_you_can_not_find_your_institution_your_centre_your_degree_or_your_courses_you_can_create_them; extern const char *Txt_If_you_can_not_find_your_institution_your_centre_your_degree_or_your_courses_you_can_create_them;
extern const char *Txt_What_would_you_like_to_do; extern const char *Txt_What_would_you_like_to_do;
extern const char *Txt_Upload_my_picture; extern const char *Txt_Register_students_in_the_course_X;
extern const char *Txt_Upload_photo; extern const char *Txt_Register_students;
extern const char *Txt_Go_to_one_of_my_courses; extern const char *Txt_Go_to_one_of_my_courses;
extern const char *Txt_My_courses; extern const char *Txt_My_courses;
extern const char *Txt_Sign_up; extern const char *Txt_Sign_up;
@ -97,6 +97,8 @@ void Hlp_ShowHelpWhatWouldYouLikeToDo (void)
extern const char *Txt_Select_another_country; extern const char *Txt_Select_another_country;
extern const char *Txt_Select_one_country; extern const char *Txt_Select_one_country;
extern const char *Txt_Countries; extern const char *Txt_Countries;
extern const char *Txt_Upload_my_picture;
extern const char *Txt_Upload_photo;
extern const char *Txt_Log_in; extern const char *Txt_Log_in;
extern const char *Txt_New_on_PLATFORM_Sign_up; extern const char *Txt_New_on_PLATFORM_Sign_up;
extern const char *Txt_Create_account; extern const char *Txt_Create_account;
@ -118,13 +120,25 @@ void Hlp_ShowHelpWhatWouldYouLikeToDo (void)
if (Gbl.Usrs.Me.Logged) // I am logged if (Gbl.Usrs.Me.Logged) // I am logged
{ {
if (Gbl.Usrs.Me.MyCourses.Num) // I am enrolled in some courses if (Gbl.Usrs.Me.MyCourses.Num) // I am enrolled in some courses
{ {
if (Gbl.CurrentCrs.Crs.CrsCod > 0 && // Course selected
!Gbl.CurrentCrs.Crs.NumStds && // Current course has no students
Gbl.Usrs.Me.UsrDat.RoleInCurrentCrsDB == Rol_TEACHER) // I am a teacher in current course
{
/* Request students enrollment */
sprintf (Gbl.Title,Txt_Register_students_in_the_course_X,
Gbl.CurrentCrs.Crs.ShortName);
Hlp_ShowRowHelpWhatWouldYouLikeToDo (Gbl.Title,
ActReqEnrSevStd,
"BT_CONFIRM",Txt_Register_students);
}
if (Gbl.CurrentAct != ActMyCrs) // I am not seeing the action to list my courses if (Gbl.CurrentAct != ActMyCrs) // I am not seeing the action to list my courses
/* Request list my courses */ /* Request list my courses */
Hlp_ShowRowHelpWhatWouldYouLikeToDo (Txt_Go_to_one_of_my_courses, Hlp_ShowRowHelpWhatWouldYouLikeToDo (Txt_Go_to_one_of_my_courses,
ActMyCrs, ActMyCrs,
"BT_CONFIRM",Txt_My_courses); "BT_CONFIRM",Txt_My_courses);
} }
if (Gbl.CurrentDeg.Deg.DegCod > 0) // Degree selected if (Gbl.CurrentDeg.Deg.DegCod > 0) // Degree selected

View File

@ -28318,6 +28318,27 @@ const char *Txt_Register_students =
"Registrar estudantes"; "Registrar estudantes";
#endif #endif
const char *Txt_Register_students_in_the_course_X = // Warning: it is very important to include %s in the following sentences
#if L==0
"Inscriure estudiants en l'assignatura <strong>%s</strong>";
#elif L==1
"Anmeldung Studenten im Kurs <strong>%s</strong>";
#elif L==2
"Register students in the course <strong>%s</strong>";
#elif L==3
"Inscribir estudiantes en la asignatura <strong>%s</strong>";
#elif L==4
"Inscrire &eacute;tudiants dans la mati&egrave;re <strong>%s</strong>";
#elif L==5
"Inscribir estudiantes en la asignatura <strong>%s</strong>"; // Okoteve traducción
#elif L==6
"Registrare studenti nel corso <strong>%s</strong>";
#elif L==7
"Rejestracja student&oacute;w w kurs <strong>%s</strong>";
#elif L==8
"Registrar estudantes na disciplina <strong>%s</strong>";
#endif
const char *Txt_Register_the_users_indicated_in_step_1 = const char *Txt_Register_the_users_indicated_in_step_1 =
#if L==0 #if L==0
"A&ntilde;adir (inscribir los usuarios indicados en el paso 1)"; // Necessita traduccio "A&ntilde;adir (inscribir los usuarios indicados en el paso 1)"; // Necessita traduccio