Version 16.169.2

This commit is contained in:
Antonio Cañas Vargas 2017-03-26 23:16:51 +02:00
parent 69d2d19d5c
commit 52e8216a7e
11 changed files with 1333 additions and 1437 deletions

File diff suppressed because it is too large Load Diff

View File

@ -143,16 +143,10 @@ static void Ban_PutFormToEditBanners (void)
void Ban_EditBanners (void)
{
extern const char *Txt_There_are_no_banners;
/***** Get list of banners *****/
Ban_GetListBanners ("SELECT BanCod,Hidden,ShortName,FullName,Img,WWW"
" FROM banners ORDER BY ShortName");
if (!Gbl.Banners.Num)
/***** Help message *****/
Lay_ShowAlert (Lay_INFO,Txt_There_are_no_banners);
/***** Put a form to create a new banner *****/
Ban_PutFormToCreateBanner ();

View File

@ -211,13 +211,16 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 16.169.1 (2017-03-26)"
#define Log_PLATFORM_VERSION "SWAD 16.169.2 (2017-03-26)"
#define CSS_FILE "swad16.166.css"
#define JS_FILE "swad16.144.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.169.3: Mar 26, 2017 Link to banners from institutional links. (? lines)
Version 16.169.2: Mar 26, 2017 Fix bug in institutional links.
Some messages removed in edition of banners, links, etc. (217570 lines)
Version 16.169.1: Mar 26, 2017 Changed help URLs related to degree types. (217661 lines)
Version 16.169: Mar 26, 2017 Action to view degree types removed from main menu. (217660 lines)
Version 16.168.1: Mar 26, 2017 Link to view degree types in degrees. (217694 lines)

View File

@ -1377,7 +1377,6 @@ static void Deg_ListOneDegreeForSeeing (struct Degree *Deg,unsigned NumDeg)
void Deg_EditDegrees (void)
{
extern const char *Txt_There_are_no_types_of_degree;
extern const char *Txt_You_must_create_at_least_one_type_of_degree_before_creating_degrees;
/***** Get list of degrees in the current centre *****/
Deg_GetListDegsOfCurrentCtr ();

View File

@ -224,8 +224,6 @@ static void Dpt_PutIconToEditDpts (void)
void Dpt_EditDepartments (void)
{
extern const char *Txt_There_are_no_departments;
/***** Check if institution is selected *****/
if (Gbl.CurrentIns.Ins.InsCod <= 0)
Lay_ShowErrorAndExit ("No institution selected."); // This should not happen
@ -238,10 +236,6 @@ void Dpt_EditDepartments (void)
/***** Get list of departments *****/
Dpt_GetListDepartments (Gbl.CurrentIns.Ins.InsCod);
if (!Gbl.Dpts.Num)
/***** Help message *****/
Lay_ShowAlert (Lay_INFO,Txt_There_are_no_departments);
/***** Put a form to create a new department *****/
Dpt_PutFormToCreateDepartment ();

View File

@ -84,7 +84,7 @@ void Hld_SeeHolidays (void)
extern const char *Txt_End_date;
extern const char *Txt_Holiday;
extern const char *Txt_All_places;
extern const char *Txt_There_are_no_holidays;
extern const char *Txt_No_holidays;
extern const char *Txt_Create_another_holiday;
extern const char *Txt_Create_holiday;
Hld_Order_t Order;
@ -175,7 +175,7 @@ void Hld_SeeHolidays (void)
fprintf (Gbl.F.Out,"</table>");
}
else // No holidays created in the current institution
Lay_ShowAlert (Lay_INFO,Txt_There_are_no_holidays);
Lay_ShowAlert (Lay_INFO,Txt_No_holidays);
/***** Button to create centre *****/
if (Gbl.Usrs.Me.LoggedRole >= Rol_INS_ADM) // Institution admin or system admin

View File

@ -80,21 +80,35 @@ void Lnk_SeeLinks (void)
{
extern const char *Hlp_SYSTEM_Links;
extern const char *Txt_Links;
extern const char *Txt_No_links;
extern const char *Txt_Create_another_link;
extern const char *Txt_Create_link;
/***** Get list of links *****/
Lnk_GetListLinks ();
/***** Write all the links *****/
if (Gbl.Links.Num)
{
Lay_StartRoundFrame (NULL,Txt_Links,
Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM ? Lnk_PutIconToEditLinks :
NULL,
Hlp_SYSTEM_Links);
Lay_StartRoundFrame (NULL,Txt_Links,
Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM ? Lnk_PutIconToEditLinks :
NULL,
Hlp_SYSTEM_Links);
if (Gbl.Links.Num) // There are links
Lnk_WriteListOfLinks ();
Lay_EndRoundFrame ();
else // No links created
Lay_ShowAlert (Lay_INFO,Txt_No_links);
/***** Button to create link *****/
if (Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM)
{
Act_FormStart (ActEdiLnk);
Lay_PutConfirmButton (Gbl.CurrentCtr.Ctr.Degs.Num ? Txt_Create_another_link :
Txt_Create_link);
Act_FormEnd ();
}
Lay_EndRoundFrame ();
/***** Free list of links *****/
Lnk_FreeListLinks ();
}
@ -180,15 +194,9 @@ static void Lnk_WriteListOfLinks (void)
void Lnk_EditLinks (void)
{
extern const char *Txt_There_are_no_links;
/***** Get list of links *****/
Lnk_GetListLinks ();
if (!Gbl.Links.Num)
/***** Help message *****/
Lay_ShowAlert (Lay_INFO,Txt_There_are_no_links);
/***** Put a form to create a new link *****/
Lnk_PutFormToCreateLink ();

View File

@ -191,15 +191,9 @@ static void Mai_PutIconToEditMailDomains (void)
void Mai_EditMailDomains (void)
{
extern const char *Txt_There_are_no_email_domains;
/***** Get list of mail domains *****/
Mai_GetListMailDomainsAllowedForNotif ();
if (!Gbl.Mails.Num)
/***** Help message *****/
Lay_ShowAlert (Lay_INFO,Txt_There_are_no_email_domains);
/***** Put a form to create a new mail *****/
Mai_PutFormToCreateMailDomain ();

View File

@ -245,15 +245,9 @@ static void Plc_PutIconToEditPlaces (void)
void Plc_EditPlaces (void)
{
extern const char *Txt_There_are_no_places;
/***** Get list of places *****/
Plc_GetListPlaces ();
if (!Gbl.Plcs.Num)
/***** Help message *****/
Lay_ShowAlert (Lay_INFO,Txt_There_are_no_places);
/***** Put a form to create a new place *****/
Plc_PutFormToCreatePlace ();

View File

@ -165,15 +165,9 @@ static void Plg_PutIconToEditPlugins (void)
void Plg_EditPlugins (void)
{
extern const char *Txt_There_are_no_plugins;
/***** Get list of plugins *****/
Plg_GetListPlugins ();
if (!Gbl.Plugins.Num)
/***** Help message *****/
Lay_ShowAlert (Lay_INFO,Txt_There_are_no_plugins);
/***** Put a form to create a new plugin *****/
Plg_PutFormToCreatePlugin ();

View File

@ -6197,6 +6197,27 @@ const char *Txt_Create_another_institution =
"Criar uma outra institu&ccedil;&atilde;o";
#endif
const char *Txt_Create_another_link =
#if L==1
"Crear un altre enlla&ccedil;";
#elif L==2
"Erstellen Sie einen anderen Link";
#elif L==3
"Create another link";
#elif L==4
"Crear otro enlace";
#elif L==5
"Cr&eacute;er un autre lien";
#elif L==6
"Crear otro enlace"; // Okoteve traducción
#elif L==7
"Crea un altro link";
#elif L==8
"Tworzenie inny link";
#elif L==9
"Criar um outro liga&ccedil;&atilde;o";
#endif
const char *Txt_Create_another_place =
#if L==1
"Crear un altre lloc";
@ -25097,6 +25118,27 @@ const char *Txt_No_groups_have_been_created_in_the_course_X_Therefore_ = // Warn
"Therefore, the specified users will be enrolled/removed in/from the course."; // Necessita de tradução
#endif
const char *Txt_No_holidays =
#if L==1
"No hay d&iacute;as festivos."; // Necessita traduccio
#elif L==2
"No holidays."; // Need Übersetzung
#elif L==3
"No holidays.";
#elif L==4
"No hay d&iacute;as festivos.";
#elif L==5
"TNo holidays."; // Besoin de traduction
#elif L==6
"No hay d&iacute;as festivos."; // Okoteve traducción
#elif L==7
"Non ci sono festivit&agrave;.";
#elif L==8
"No holidays."; // Potrzebujesz tlumaczenie
#elif L==9
"No holidays."; // Necessita de tradução
#endif
const char *Txt_No_image = // Without any image
#if L==1
"Sense imatge";
@ -25181,6 +25223,27 @@ const char *Txt_No_institutions =
"N&atilde;o h&aacute; institu&ccedil;&otilde;es.";
#endif
const char *Txt_No_links =
#if L==1
"No hi ha enlla&ccedil;os.";
#elif L==2
"Keine Links.";
#elif L==3
"No links.";
#elif L==4
"No hay enlaces.";
#elif L==5
"Il n'y a pas de liens.";
#elif L==6
"No hay enlaces."; // Okoteve traducción
#elif L==7
"Non ci sono link.";
#elif L==8
"Brak linki.";
#elif L==9
"N&atilde;o h&aacute; liga&ccedil;&otilde;es.";
#endif
const char *Txt_No_BR_msgs =
#if L==1
"N&ordm;<br />mens."; // Necessita traduccio
@ -46792,27 +46855,6 @@ const char *Txt_There_are_no_accesses_with_the_selected_search_criteria =
"There are no accesses with the selected search criteria."; // Necessita de tradução
#endif
const char *Txt_There_are_no_banners =
#if L==1
"No existen banners."; // Necessita traduccio
#elif L==2
"There are no banners."; // Need Übersetzung
#elif L==3
"There are no banners.";
#elif L==4
"No existen banners.";
#elif L==5
"There are no banners."; // Besoin de traduction
#elif L==6
"No existen banners."; // Okoteve traducción
#elif L==7
"Non ci sono banners.";
#elif L==8
"There are no banners."; // Potrzebujesz tlumaczenie
#elif L==9
"There are no banners."; // Necessita de tradução
#endif
const char *Txt_There_are_no_centres_with_requests_for_degrees_to_be_confirmed =
#if L==1
"No hi ha centres amb sol&middot;licituds de titulacions pendents de confirmar.";
@ -46897,132 +46939,6 @@ const char *Txt_There_are_no_institutions_with_requests_for_centres_to_be_confir
"There are no institutions with requests for centres to be confirmed."; // Necessita de tradução
#endif
const char *Txt_There_are_no_departments =
#if L==1
"No existen departamentos."; // Necessita traduccio
#elif L==2
"There are no departments."; // Need Übersetzung
#elif L==3
"There are no departments.";
#elif L==4
"No existen departamentos.";
#elif L==5
"There are no departments."; // Besoin de traduction
#elif L==6
"No existen departamentos."; // Okoteve traducción
#elif L==7
"Non ci sono dipartimenti.";
#elif L==8
"There are no departments."; // Potrzebujesz tlumaczenie
#elif L==9
"There are no departments."; // Necessita de tradução
#endif
const char *Txt_There_are_no_email_domains =
#if L==1
"No existen dominios de correo para notificaciones."; // Necessita traduccio
#elif L==2
"There are no email domains for notifications."; // Need Übersetzung
#elif L==3
"There are no email domains for notifications.";
#elif L==4
"No existen dominios de correo para notificaciones.";
#elif L==5
"There are no email domains for notifications."; // Besoin de traduction
#elif L==6
"No existen dominios de correo para notificaciones."; // Okoteve traducción
#elif L==7
"Non ci sono campi mail per le notifiche.";
#elif L==8
"There are no email domains for notifications."; // Potrzebujesz tlumaczenie
#elif L==9
"There are no email domains for notifications."; // Necessita de tradução
#endif
const char *Txt_There_are_no_holidays =
#if L==1
"No existen d&iacute;as festivos."; // Necessita traduccio
#elif L==2
"There are no holidays."; // Need Übersetzung
#elif L==3
"There are no holidays.";
#elif L==4
"No existen d&iacute;as festivos.";
#elif L==5
"There are no holidays."; // Besoin de traduction
#elif L==6
"No existen d&iacute;as festivos."; // Okoteve traducción
#elif L==7
"Non ci sono festivit&agrave;.";
#elif L==8
"There are no holidays."; // Potrzebujesz tlumaczenie
#elif L==9
"There are no holidays."; // Necessita de tradução
#endif
const char *Txt_There_are_no_links =
#if L==1
"No existen enlaces."; // Necessita traduccio
#elif L==2
"There are no links."; // Need Übersetzung
#elif L==3
"There are no links.";
#elif L==4
"No existen enlaces.";
#elif L==5
"There are no links."; // Besoin de traduction
#elif L==6
"No existen enlaces."; // Okoteve traducción
#elif L==7
"Non ci sono links.";
#elif L==8
"There are no links."; // Potrzebujesz tlumaczenie
#elif L==9
"There are no links."; // Necessita de tradução
#endif
const char *Txt_There_are_no_places =
#if L==1
"No existen lugares."; // Necessita traduccio
#elif L==2
"There are no places."; // Need Übersetzung
#elif L==3
"There are no places.";
#elif L==4
"No existen lugares.";
#elif L==5
"There are no places."; // Besoin de traduction
#elif L==6
"No existen lugares."; // Okoteve traducción
#elif L==7
"Non ci sono luoghi.";
#elif L==8
"There are no places."; // Potrzebujesz tlumaczenie
#elif L==9
"There are no places."; // Necessita de tradução
#endif
const char *Txt_There_are_no_plugins =
#if L==1
"No existen complementos."; // Necessita traduccio
#elif L==2
"There are no plugins."; // Need Übersetzung
#elif L==3
"There are no plugins.";
#elif L==4
"No existen complementos.";
#elif L==5
"There are no plugins."; // Besoin de traduction
#elif L==6
"No existen complementos."; // Okoteve traducción
#elif L==7
"Non ci sono plugin.";
#elif L==8
"There are no plugins."; // Potrzebujesz tlumaczenie
#elif L==9
"There are no plugins."; // Necessita de tradução
#endif
const char *Txt_There_are_no_record_fields_in_the_course_X = // Warning: it is very important to include %s in the following sentences
#if L==1
"No existen campos de fichas en la asignatura <strong>%s</strong>."; // Necessita traduccio