mirror of https://github.com/acanas/swad-core.git
Version 21.98: Jun 18, 2022 Some messages translated.
This commit is contained in:
parent
1360cf02f6
commit
ee3ab20ef3
|
@ -1542,7 +1542,6 @@ void Agd_RequestCreatOrEditEvent (void)
|
|||
|
||||
void Agd_ReceiveFormEvent (void)
|
||||
{
|
||||
extern const char *Txt_You_must_specify_the_title_of_the_event;
|
||||
extern const char *Txt_Created_new_event_X;
|
||||
extern const char *Txt_The_event_has_been_modified;
|
||||
struct Agd_Agenda Agenda;
|
||||
|
@ -1586,14 +1585,14 @@ void Agd_ReceiveFormEvent (void)
|
|||
if (!AgdEvent.Location[0]) // If there is no event
|
||||
{
|
||||
NewEventIsCorrect = false;
|
||||
Ale_ShowAlert (Ale_WARNING,Txt_You_must_specify_the_title_of_the_event);
|
||||
Ale_ShowAlertYouMustSpecifyTheTitle ();
|
||||
}
|
||||
|
||||
/***** Check if event is correct *****/
|
||||
if (!AgdEvent.Event[0]) // If there is no event
|
||||
{
|
||||
NewEventIsCorrect = false;
|
||||
Ale_ShowAlert (Ale_WARNING,Txt_You_must_specify_the_title_of_the_event);
|
||||
Ale_ShowAlertYouMustSpecifyTheTitle ();
|
||||
}
|
||||
|
||||
/***** Create a new event or update an existing one *****/
|
||||
|
|
48
swad_alert.c
48
swad_alert.c
|
@ -502,3 +502,51 @@ void Ale_ShowAlertYouCanNotLeaveFieldEmpty (void)
|
|||
|
||||
Ale_ShowAlert (Ale_WARNING,Txt_You_can_not_leave_the_field_empty);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/********************* Create alert when title is empty **********************/
|
||||
/*****************************************************************************/
|
||||
|
||||
void Ale_ShowAlertYouMustSpecifyTheTitle (void)
|
||||
{
|
||||
extern const char *Txt_You_must_specify_the_title;
|
||||
|
||||
Ale_CreateAlert (Ale_WARNING,NULL,
|
||||
Txt_You_must_specify_the_title);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/****************** Create alert when web address is empty *******************/
|
||||
/*****************************************************************************/
|
||||
|
||||
void Ale_ShowAlertYouMustSpecifyTheWebAddress (void)
|
||||
{
|
||||
extern const char *Txt_You_must_specify_the_web_address;
|
||||
|
||||
Ale_CreateAlert (Ale_WARNING,NULL,
|
||||
Txt_You_must_specify_the_web_address);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/************ Create alert when short name or full name are empty ************/
|
||||
/*****************************************************************************/
|
||||
|
||||
void Ale_ShowAlertYouMustSpecifyTheName (void)
|
||||
{
|
||||
extern const char *Txt_You_must_specify_the_name;
|
||||
|
||||
Ale_CreateAlert (Ale_WARNING,NULL,
|
||||
Txt_You_must_specify_the_name);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/************ Create alert when short name or full name are empty ************/
|
||||
/*****************************************************************************/
|
||||
|
||||
void Ale_ShowAlertYouMustSpecifyTheShortNameAndTheFullName (void)
|
||||
{
|
||||
extern const char *Txt_You_must_specify_the_short_name_and_the_full_name;
|
||||
|
||||
Ale_CreateAlert (Ale_WARNING,NULL,
|
||||
Txt_You_must_specify_the_short_name_and_the_full_name);
|
||||
}
|
||||
|
|
|
@ -86,5 +86,9 @@ void Ale_CreateAlertUserNotFoundOrYouDoNotHavePermission (void);
|
|||
void Ale_ShowAlertUserNotFoundOrYouDoNotHavePermission (void);
|
||||
void Ale_CreateAlertYouCanNotLeaveFieldEmpty (void);
|
||||
void Ale_ShowAlertYouCanNotLeaveFieldEmpty (void);
|
||||
void Ale_ShowAlertYouMustSpecifyTheTitle (void);
|
||||
void Ale_ShowAlertYouMustSpecifyTheWebAddress (void);
|
||||
void Ale_ShowAlertYouMustSpecifyTheName (void);
|
||||
void Ale_ShowAlertYouMustSpecifyTheShortNameAndTheFullName (void);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1312,7 +1312,6 @@ void Asg_ReceiveFormAssignment (void)
|
|||
{
|
||||
extern const char *Txt_Already_existed_an_assignment_with_the_title_X;
|
||||
extern const char *Txt_Already_existed_an_assignment_with_the_folder_X;
|
||||
extern const char *Txt_You_must_specify_the_title_of_the_assignment;
|
||||
extern const char *Txt_Created_new_assignment_X;
|
||||
extern const char *Txt_The_assignment_has_been_modified;
|
||||
extern const char *Txt_You_can_not_disable_file_uploading_once_folders_have_been_created;
|
||||
|
@ -1417,7 +1416,7 @@ void Asg_ReceiveFormAssignment (void)
|
|||
else // If there is not an assignment title
|
||||
{
|
||||
NewAssignmentIsCorrect = false;
|
||||
Ale_ShowAlert (Ale_WARNING,Txt_You_must_specify_the_title_of_the_assignment);
|
||||
Ale_ShowAlertYouMustSpecifyTheTitle ();
|
||||
}
|
||||
|
||||
/***** Create a new assignment or update an existing one *****/
|
||||
|
|
|
@ -1196,7 +1196,6 @@ static void Att_ShowLstGrpsToEditAttEvent (long AttCod)
|
|||
void Att_ReceiveFormAttEvent (void)
|
||||
{
|
||||
extern const char *Txt_Already_existed_an_event_with_the_title_X;
|
||||
extern const char *Txt_You_must_specify_the_title_of_the_event;
|
||||
extern const char *Txt_Created_new_event_X;
|
||||
extern const char *Txt_The_event_has_been_modified;
|
||||
struct Att_Event OldAtt;
|
||||
|
@ -1250,7 +1249,7 @@ void Att_ReceiveFormAttEvent (void)
|
|||
else // If there is not an attendance event title
|
||||
{
|
||||
ReceivedAttEventIsCorrect = false;
|
||||
Ale_ShowAlert (Ale_WARNING,Txt_You_must_specify_the_title_of_the_event);
|
||||
Ale_ShowAlertYouMustSpecifyTheTitle ();
|
||||
}
|
||||
|
||||
/***** Create a new attendance event or update an existing one *****/
|
||||
|
|
|
@ -958,9 +958,8 @@ void Ban_ReceiveFormNewBanner (void)
|
|||
{
|
||||
extern const char *Txt_The_banner_X_already_exists;
|
||||
extern const char *Txt_You_must_specify_the_image_of_the_new_banner;
|
||||
extern const char *Txt_You_must_specify_the_URL_of_the_new_banner;
|
||||
extern const char *Txt_You_must_specify_the_web_address;
|
||||
extern const char *Txt_Created_new_banner_X;
|
||||
extern const char *Txt_You_must_specify_the_short_name_and_the_full_name_of_the_new_banner;
|
||||
struct Ban_Banner Ban;
|
||||
|
||||
/***** Reset banner *****/
|
||||
|
@ -996,7 +995,7 @@ void Ban_ReceiveFormNewBanner (void)
|
|||
Txt_You_must_specify_the_image_of_the_new_banner);
|
||||
else if (!Ban.WWW[0])
|
||||
Ale_CreateAlert (Ale_WARNING,NULL,
|
||||
Txt_You_must_specify_the_URL_of_the_new_banner);
|
||||
Txt_You_must_specify_the_web_address);
|
||||
else // Add new banner to database
|
||||
{
|
||||
Ban_DB_CreateBanner (&Ban);
|
||||
|
@ -1005,8 +1004,7 @@ void Ban_ReceiveFormNewBanner (void)
|
|||
}
|
||||
}
|
||||
else // If there is not a banner name
|
||||
Ale_CreateAlert (Ale_WARNING,NULL,
|
||||
Txt_You_must_specify_the_short_name_and_the_full_name_of_the_new_banner);
|
||||
Ale_ShowAlertYouMustSpecifyTheShortNameAndTheFullName ();
|
||||
|
||||
/***** Set editing banner to use ot in a posterior function *****/
|
||||
Ban_SetEditingBanner (&Ban);
|
||||
|
|
|
@ -789,7 +789,6 @@ void Bld_ReceiveFormNewBuilding (void)
|
|||
{
|
||||
extern const char *Txt_The_building_X_already_exists;
|
||||
extern const char *Txt_Created_new_building_X;
|
||||
extern const char *Txt_You_must_specify_the_short_name_and_the_full_name_of_the_new_building;
|
||||
|
||||
/***** Building constructor *****/
|
||||
Bld_EditingBuildingConstructor ();
|
||||
|
@ -825,8 +824,7 @@ void Bld_ReceiveFormNewBuilding (void)
|
|||
}
|
||||
}
|
||||
else // If there is not a building name
|
||||
Ale_CreateAlert (Ale_WARNING,NULL,
|
||||
Txt_You_must_specify_the_short_name_and_the_full_name_of_the_new_building);
|
||||
Ale_ShowAlertYouMustSpecifyTheShortNameAndTheFullName ();
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
|
@ -1546,8 +1546,6 @@ static void Ctr_ReceiveFormRequestOrCreateCtr (Hie_Status_t Status)
|
|||
{
|
||||
extern const char *Txt_The_center_X_already_exists;
|
||||
extern const char *Txt_Created_new_center_X;
|
||||
extern const char *Txt_You_must_specify_the_web_address_of_the_new_center;
|
||||
extern const char *Txt_You_must_specify_the_short_name_and_the_full_name_of_the_new_center;
|
||||
|
||||
/***** Get parameters from form *****/
|
||||
/* Set center institution */
|
||||
|
@ -1587,12 +1585,10 @@ static void Ctr_ReceiveFormRequestOrCreateCtr (Hie_Status_t Status)
|
|||
}
|
||||
}
|
||||
else // If there is not a web
|
||||
Ale_CreateAlert (Ale_WARNING,NULL,
|
||||
Txt_You_must_specify_the_web_address_of_the_new_center);
|
||||
Ale_ShowAlertYouMustSpecifyTheWebAddress ();
|
||||
}
|
||||
else // If there is not a center name
|
||||
Ale_CreateAlert (Ale_WARNING,NULL,
|
||||
Txt_You_must_specify_the_short_name_and_the_full_name_of_the_new_center);
|
||||
Ale_ShowAlertYouMustSpecifyTheShortNameAndTheFullName ();
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
|
@ -606,10 +606,12 @@ TODO: Fix bug: error al enviar un mensaje a dos recipientes, error on duplicate
|
|||
|
||||
TODO: Attach pdf files in multimedia.
|
||||
*/
|
||||
#define Log_PLATFORM_VERSION "SWAD 21.97.5 (2022-06-15)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 21.98 (2022-06-18)"
|
||||
#define CSS_FILE "swad21.97.1.css"
|
||||
#define JS_FILE "swad21.97.4.js"
|
||||
/*
|
||||
Version 21.98: Jun 18, 2022 Some messages translated. (322489 lines)
|
||||
Version 21.97.6: Jun 15, 2022 Some messages translated. (323162 lines)
|
||||
Version 21.97.5: Jun 15, 2022 Some messages translated. (323161 lines)
|
||||
Version 21.97.4: Jun 08, 2022 Fixed bug in JavaScript when getting new timeline. (? lines)
|
||||
Version 21.97.3: Jun 07, 2022 Fixed bug in JavaScript when getting old timeline. (323163 lines)
|
||||
|
|
|
@ -1576,7 +1576,7 @@ void Cty_ReceiveFormNewCountry (void)
|
|||
extern const char *Txt_The_alphabetical_code_X_already_exists;
|
||||
extern const char *Lan_STR_LANG_ID[1 + Lan_NUM_LANGUAGES];
|
||||
extern const char *Txt_The_country_X_already_exists;
|
||||
extern const char *Txt_You_must_specify_the_name_of_the_new_country_in_all_languages;
|
||||
extern const char *Txt_You_must_specify_the_name;
|
||||
extern const char *Txt_Created_new_country_X;
|
||||
char ParamName[32];
|
||||
bool CreateCountry = true;
|
||||
|
@ -1651,7 +1651,7 @@ void Cty_ReceiveFormNewCountry (void)
|
|||
else // If there is not a country name
|
||||
{
|
||||
Ale_CreateAlert (Ale_WARNING,NULL,
|
||||
Txt_You_must_specify_the_name_of_the_new_country_in_all_languages);
|
||||
Txt_You_must_specify_the_name);
|
||||
CreateCountry = false;
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -1500,7 +1500,6 @@ static void Crs_ReceiveFormRequestOrCreateCrs (Hie_Status_t Status)
|
|||
{
|
||||
extern const char *Txt_The_course_X_already_exists;
|
||||
extern const char *Txt_Created_new_course_X;
|
||||
extern const char *Txt_You_must_specify_the_short_name_and_the_full_name_of_the_new_course;
|
||||
extern const char *Txt_The_year_X_is_not_allowed;
|
||||
extern const char *Txt_YEAR_OF_DEGREE[1 + Deg_MAX_YEARS_PER_DEGREE];
|
||||
|
||||
|
@ -1538,8 +1537,7 @@ static void Crs_ReceiveFormRequestOrCreateCrs (Hie_Status_t Status)
|
|||
}
|
||||
}
|
||||
else // If there is not a course name
|
||||
Ale_CreateAlert (Ale_WARNING,NULL,
|
||||
Txt_You_must_specify_the_short_name_and_the_full_name_of_the_new_course);
|
||||
Ale_ShowAlertYouMustSpecifyTheShortNameAndTheFullName ();
|
||||
}
|
||||
else // Year not valid
|
||||
Ale_CreateAlert (Ale_WARNING,NULL,
|
||||
|
|
|
@ -1089,8 +1089,6 @@ static void Deg_ReceiveFormRequestOrCreateDeg (Hie_Status_t Status)
|
|||
{
|
||||
extern const char *Txt_The_degree_X_already_exists;
|
||||
extern const char *Txt_Created_new_degree_X;
|
||||
extern const char *Txt_You_must_specify_the_web_address_of_the_new_degree;
|
||||
extern const char *Txt_You_must_specify_the_short_name_and_the_full_name_of_the_new_degree;
|
||||
|
||||
/***** Get parameters from form *****/
|
||||
/* Set degree center */
|
||||
|
@ -1131,12 +1129,10 @@ static void Deg_ReceiveFormRequestOrCreateDeg (Hie_Status_t Status)
|
|||
}
|
||||
}
|
||||
else // If there is not a degree logo or web
|
||||
Ale_CreateAlert (Ale_WARNING,NULL,
|
||||
Txt_You_must_specify_the_web_address_of_the_new_degree);
|
||||
Ale_ShowAlertYouMustSpecifyTheWebAddress ();
|
||||
}
|
||||
else // If there is not a degree name
|
||||
Ale_CreateAlert (Ale_WARNING,NULL,
|
||||
Txt_You_must_specify_the_short_name_and_the_full_name_of_the_new_degree);
|
||||
Ale_ShowAlertYouMustSpecifyTheShortNameAndTheFullName ();
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
|
@ -654,7 +654,7 @@ void DegTyp_ReceiveFormNewDegreeType (void)
|
|||
{
|
||||
extern const char *Txt_The_type_of_degree_X_already_exists;
|
||||
extern const char *Txt_Created_new_type_of_degree_X;
|
||||
extern const char *Txt_You_must_specify_the_name_of_the_new_type_of_degree;
|
||||
extern const char *Txt_You_must_specify_the_name;
|
||||
|
||||
/***** Degree type constructor *****/
|
||||
DegTyp_EditingDegreeTypeConstructor ();
|
||||
|
@ -680,7 +680,7 @@ void DegTyp_ReceiveFormNewDegreeType (void)
|
|||
}
|
||||
else // If there is not a degree type name
|
||||
Ale_CreateAlert (Ale_WARNING,NULL,
|
||||
Txt_You_must_specify_the_name_of_the_new_type_of_degree);
|
||||
Txt_You_must_specify_the_name);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
|
@ -911,8 +911,6 @@ void Dpt_ReceiveFormNewDpt (void)
|
|||
{
|
||||
extern const char *Txt_The_department_X_already_exists;
|
||||
extern const char *Txt_Created_new_department_X;
|
||||
extern const char *Txt_You_must_specify_the_web_address_of_the_new_department;
|
||||
extern const char *Txt_You_must_specify_the_short_name_and_the_full_name_of_the_new_department;
|
||||
|
||||
/***** Department constructor *****/
|
||||
Dpt_EditingDepartmentConstructor ();
|
||||
|
@ -953,12 +951,10 @@ void Dpt_ReceiveFormNewDpt (void)
|
|||
}
|
||||
}
|
||||
else // If there is not a web
|
||||
Ale_CreateAlert (Ale_WARNING,NULL,
|
||||
Txt_You_must_specify_the_web_address_of_the_new_department);
|
||||
Ale_ShowAlertYouMustSpecifyTheWebAddress ();
|
||||
}
|
||||
else // If there is not a department name
|
||||
Ale_CreateAlert (Ale_WARNING,NULL,
|
||||
Txt_You_must_specify_the_short_name_and_the_full_name_of_the_new_department);
|
||||
Ale_ShowAlertYouMustSpecifyTheShortNameAndTheFullName ();
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
|
@ -1508,7 +1508,6 @@ static void Exa_ReceiveExamFieldsFromForm (struct Exa_Exam *Exam,
|
|||
static bool Exa_CheckExamFieldsReceivedFromForm (const struct Exa_Exam *Exam)
|
||||
{
|
||||
extern const char *Txt_Already_existed_an_exam_with_the_title_X;
|
||||
extern const char *Txt_You_must_specify_the_title_of_the_exam;
|
||||
bool NewExamIsCorrect;
|
||||
|
||||
/***** Check if title is correct *****/
|
||||
|
@ -1527,7 +1526,7 @@ static bool Exa_CheckExamFieldsReceivedFromForm (const struct Exa_Exam *Exam)
|
|||
else // If there is not an exam title
|
||||
{
|
||||
NewExamIsCorrect = false;
|
||||
Ale_ShowAlert (Ale_WARNING,Txt_You_must_specify_the_title_of_the_exam);
|
||||
Ale_ShowAlertYouMustSpecifyTheTitle ();
|
||||
}
|
||||
|
||||
return NewExamIsCorrect;
|
||||
|
|
|
@ -346,7 +346,6 @@ static bool ExaSet_CheckSetTitleReceivedFromForm (const struct ExaSet_Set *Set,
|
|||
const char NewTitle[ExaSet_MAX_BYTES_TITLE + 1])
|
||||
{
|
||||
extern const char *Txt_Already_existed_a_set_of_questions_in_this_exam_with_the_title_X;
|
||||
extern const char *Txt_You_must_specify_the_title_of_the_set_of_questions;
|
||||
bool NewTitleIsCorrect;
|
||||
|
||||
/***** Check if title is correct *****/
|
||||
|
@ -369,7 +368,7 @@ static bool ExaSet_CheckSetTitleReceivedFromForm (const struct ExaSet_Set *Set,
|
|||
else // If there is not a set title
|
||||
{
|
||||
NewTitleIsCorrect = false;
|
||||
Ale_ShowAlert (Ale_WARNING,Txt_You_must_specify_the_title_of_the_set_of_questions);
|
||||
Ale_ShowAlertYouMustSpecifyTheTitle ();
|
||||
}
|
||||
|
||||
return NewTitleIsCorrect;
|
||||
|
|
|
@ -1491,7 +1491,6 @@ static void Gam_ReceiveGameFieldsFromForm (struct Gam_Game *Game,
|
|||
static bool Gam_CheckGameFieldsReceivedFromForm (const struct Gam_Game *Game)
|
||||
{
|
||||
extern const char *Txt_Already_existed_a_game_with_the_title_X;
|
||||
extern const char *Txt_You_must_specify_the_title_of_the_game;
|
||||
bool NewGameIsCorrect;
|
||||
|
||||
/***** Check if title is correct *****/
|
||||
|
@ -1509,7 +1508,7 @@ static bool Gam_CheckGameFieldsReceivedFromForm (const struct Gam_Game *Game)
|
|||
else // If there is not a game title
|
||||
{
|
||||
NewGameIsCorrect = false;
|
||||
Ale_ShowAlert (Ale_WARNING,Txt_You_must_specify_the_title_of_the_game);
|
||||
Ale_ShowAlertYouMustSpecifyTheTitle ();
|
||||
}
|
||||
|
||||
return NewGameIsCorrect;
|
||||
|
|
|
@ -3238,7 +3238,7 @@ void Grp_ReceiveFormNewGrpTyp (void)
|
|||
{
|
||||
extern const char *Txt_The_type_of_group_X_already_exists;
|
||||
extern const char *Txt_Created_new_type_of_group_X;
|
||||
extern const char *Txt_You_must_specify_the_name_of_the_new_type_of_group;
|
||||
extern const char *Txt_You_must_specify_the_name;
|
||||
Ale_AlertType_t AlertType;
|
||||
char AlertTxt[256 + Grp_MAX_BYTES_GROUP_TYPE_NAME];
|
||||
|
||||
|
@ -3279,7 +3279,7 @@ void Grp_ReceiveFormNewGrpTyp (void)
|
|||
else // If there is not a group type name
|
||||
{
|
||||
AlertType = Ale_WARNING;
|
||||
Str_Copy (AlertTxt,Txt_You_must_specify_the_name_of_the_new_type_of_group,
|
||||
Str_Copy (AlertTxt,Txt_You_must_specify_the_name,
|
||||
sizeof (AlertTxt) - 1);
|
||||
}
|
||||
|
||||
|
@ -3310,7 +3310,7 @@ void Grp_ReceiveFormNewGrp (void)
|
|||
{
|
||||
extern const char *Txt_The_group_X_already_exists;
|
||||
extern const char *Txt_Created_new_group_X;
|
||||
extern const char *Txt_You_must_specify_the_name_of_the_new_group;
|
||||
extern const char *Txt_You_must_specify_the_name;
|
||||
Ale_AlertType_t AlertType;
|
||||
char AlertTxt[256 + Grp_MAX_BYTES_GROUP_NAME];
|
||||
|
||||
|
@ -3355,7 +3355,7 @@ void Grp_ReceiveFormNewGrp (void)
|
|||
else // If there is not a group name
|
||||
{
|
||||
AlertType = Ale_ERROR;
|
||||
Str_Copy (AlertTxt,Txt_You_must_specify_the_name_of_the_new_group,
|
||||
Str_Copy (AlertTxt,Txt_You_must_specify_the_name,
|
||||
sizeof (AlertTxt) - 1);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1030,7 +1030,7 @@ static void Hld_PutHeadHolidays (void)
|
|||
void Hld_ReceiveFormNewHoliday (void)
|
||||
{
|
||||
extern const char *Txt_Created_new_holiday_X;
|
||||
extern const char *Txt_You_must_specify_the_name_of_the_new_holiday;
|
||||
extern const char *Txt_You_must_specify_the_name;
|
||||
|
||||
/***** Holiday constructor *****/
|
||||
Hld_EditingHolidayConstructor ();
|
||||
|
@ -1088,7 +1088,7 @@ void Hld_ReceiveFormNewHoliday (void)
|
|||
else // If there is not a holiday name
|
||||
/* Error message */
|
||||
Ale_CreateAlert (Ale_WARNING,NULL,
|
||||
Txt_You_must_specify_the_name_of_the_new_holiday);
|
||||
Txt_You_must_specify_the_name);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
|
@ -1610,8 +1610,6 @@ static void Ins_ReceiveFormRequestOrCreateIns (Hie_Status_t Status)
|
|||
{
|
||||
extern const char *Txt_The_institution_X_already_exists;
|
||||
extern const char *Txt_Created_new_institution_X;
|
||||
extern const char *Txt_You_must_specify_the_web_address_of_the_new_institution;
|
||||
extern const char *Txt_You_must_specify_the_short_name_and_the_full_name_of_the_new_institution;
|
||||
|
||||
/***** Get parameters from form *****/
|
||||
/* Set institution country */
|
||||
|
@ -1651,12 +1649,10 @@ static void Ins_ReceiveFormRequestOrCreateIns (Hie_Status_t Status)
|
|||
}
|
||||
}
|
||||
else // If there is not a web
|
||||
Ale_CreateAlert (Ale_WARNING,NULL,
|
||||
Txt_You_must_specify_the_web_address_of_the_new_institution);
|
||||
Ale_ShowAlertYouMustSpecifyTheWebAddress ();
|
||||
}
|
||||
else // If there is not a institution name
|
||||
Ale_CreateAlert (Ale_WARNING,NULL,
|
||||
Txt_You_must_specify_the_short_name_and_the_full_name_of_the_new_institution);
|
||||
Ale_ShowAlertYouMustSpecifyTheShortNameAndTheFullName ();
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
|
@ -746,9 +746,8 @@ static void Lnk_PutHeadLinks (void)
|
|||
void Lnk_ReceiveFormNewLink (void)
|
||||
{
|
||||
extern const char *Txt_The_link_X_already_exists;
|
||||
extern const char *Txt_You_must_specify_the_URL_of_the_new_link;
|
||||
extern const char *Txt_You_must_specify_the_web_address;
|
||||
extern const char *Txt_Created_new_link_X;
|
||||
extern const char *Txt_You_must_specify_the_short_name_and_the_full_name_of_the_new_link;
|
||||
|
||||
/***** Link constructor *****/
|
||||
Lnk_EditingLinkConstructor ();
|
||||
|
@ -777,7 +776,7 @@ void Lnk_ReceiveFormNewLink (void)
|
|||
Lnk_EditingLnk->FullName);
|
||||
else if (!Lnk_EditingLnk->WWW[0])
|
||||
Ale_CreateAlert (Ale_WARNING,NULL,
|
||||
Txt_You_must_specify_the_URL_of_the_new_link);
|
||||
Txt_You_must_specify_the_web_address);
|
||||
else // Add new link to database
|
||||
{
|
||||
Lnk_DB_CreateLink (Lnk_EditingLnk);
|
||||
|
@ -787,8 +786,7 @@ void Lnk_ReceiveFormNewLink (void)
|
|||
}
|
||||
}
|
||||
else // If there is not a link name
|
||||
Ale_CreateAlert (Ale_WARNING,NULL,
|
||||
Txt_You_must_specify_the_short_name_and_the_full_name_of_the_new_link);
|
||||
Ale_ShowAlertYouMustSpecifyTheShortNameAndTheFullName ();
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
|
@ -719,7 +719,6 @@ void Mai_ReceiveFormNewMailDomain (void)
|
|||
{
|
||||
extern const char *Txt_The_email_domain_X_already_exists;
|
||||
extern const char *Txt_Created_new_email_domain_X;
|
||||
extern const char *Txt_You_must_specify_the_short_name_and_the_full_name_of_the_new_email_domain;
|
||||
|
||||
/***** Mail domain constructor *****/
|
||||
Mai_EditingMailDomainConstructor ();
|
||||
|
@ -751,8 +750,7 @@ void Mai_ReceiveFormNewMailDomain (void)
|
|||
}
|
||||
}
|
||||
else // If there is not a mail name
|
||||
Ale_CreateAlert (Ale_WARNING,NULL,
|
||||
Txt_You_must_specify_the_short_name_and_the_full_name_of_the_new_email_domain);
|
||||
Ale_ShowAlertYouMustSpecifyTheShortNameAndTheFullName ();
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
|
@ -790,7 +790,6 @@ void Plc_ReceiveFormNewPlace (void)
|
|||
{
|
||||
extern const char *Txt_The_place_X_already_exists;
|
||||
extern const char *Txt_Created_new_place_X;
|
||||
extern const char *Txt_You_must_specify_the_short_name_and_the_full_name_of_the_new_place;
|
||||
|
||||
/***** Place constructor *****/
|
||||
Plc_EditingPlaceConstructor ();
|
||||
|
@ -822,8 +821,7 @@ void Plc_ReceiveFormNewPlace (void)
|
|||
}
|
||||
}
|
||||
else // If there is not a place name
|
||||
Ale_CreateAlert (Ale_WARNING,NULL,
|
||||
Txt_You_must_specify_the_short_name_and_the_full_name_of_the_new_place);
|
||||
Ale_ShowAlertYouMustSpecifyTheShortNameAndTheFullName ();
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
|
@ -904,7 +904,7 @@ void Plg_ReceiveFormNewPlg (void)
|
|||
extern const char *Txt_The_plugin_X_already_exists;
|
||||
extern const char *Txt_Created_new_plugin_X;
|
||||
extern const char *Txt_You_must_specify_the_logo_the_application_key_the_URL_and_the_IP_address_of_the_new_plugin;
|
||||
extern const char *Txt_You_must_specify_the_name_and_the_description_of_the_new_plugin;
|
||||
extern const char *Txt_You_must_specify_the_name;
|
||||
|
||||
/***** Plugin constructor *****/
|
||||
Plg_EditingPluginConstructor ();
|
||||
|
@ -954,7 +954,7 @@ void Plg_ReceiveFormNewPlg (void)
|
|||
}
|
||||
else // If there is not a plugin name
|
||||
Ale_CreateAlert (Ale_WARNING,NULL,
|
||||
Txt_You_must_specify_the_name_and_the_description_of_the_new_plugin);
|
||||
Txt_You_must_specify_the_name);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
|
@ -3566,7 +3566,6 @@ void Prj_FreeMemProject (struct Prj_Project *Prj)
|
|||
|
||||
void Prj_ReceiveFormProject (void)
|
||||
{
|
||||
extern const char *Txt_You_must_specify_the_title_of_the_project;
|
||||
extern const char *Txt_Created_new_project_X;
|
||||
extern const char *Txt_The_project_has_been_modified;
|
||||
struct Prj_Projects Projects;
|
||||
|
@ -3638,7 +3637,7 @@ void Prj_ReceiveFormProject (void)
|
|||
if (!Prj.Title[0]) // If there is not a project title
|
||||
{
|
||||
NewProjectIsCorrect = false;
|
||||
Ale_ShowAlert (Ale_WARNING,Txt_You_must_specify_the_title_of_the_project);
|
||||
Ale_ShowAlertYouMustSpecifyTheTitle ();
|
||||
}
|
||||
|
||||
/***** Create a new project or update an existing one *****/
|
||||
|
|
|
@ -2909,7 +2909,7 @@ void Qst_GetQstFromForm (struct Qst_Question *Question)
|
|||
bool Qst_CheckIfQstFormatIsCorrectAndCountNumOptions (struct Qst_Question *Question)
|
||||
{
|
||||
extern const char *Txt_You_must_type_at_least_one_tag_for_the_question;
|
||||
extern const char *Txt_You_must_type_the_stem_of_the_question;
|
||||
extern const char *Txt_You_must_type_the_question_stem;
|
||||
extern const char *Txt_You_must_select_a_T_F_answer;
|
||||
extern const char *Txt_You_can_not_leave_empty_intermediate_answers;
|
||||
extern const char *Txt_You_must_type_at_least_the_first_two_answers;
|
||||
|
@ -2936,7 +2936,7 @@ bool Qst_CheckIfQstFormatIsCorrectAndCountNumOptions (struct Qst_Question *Quest
|
|||
/***** A question must have a stem *****/
|
||||
if (!Question->Stem[0])
|
||||
{
|
||||
Ale_ShowAlert (Ale_WARNING,Txt_You_must_type_the_stem_of_the_question);
|
||||
Ale_ShowAlert (Ale_WARNING,Txt_You_must_type_the_question_stem);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -427,7 +427,6 @@ static void Rec_WriteHeadingRecordFields (void)
|
|||
void Rec_ReceiveFormField (void)
|
||||
{
|
||||
extern const char *Txt_The_record_field_X_already_exists;
|
||||
extern const char *Txt_You_must_specify_the_name_of_the_new_record_field;
|
||||
|
||||
/***** Get parameters from the form *****/
|
||||
/* Get the name of the field */
|
||||
|
@ -458,7 +457,7 @@ void Rec_ReceiveFormField (void)
|
|||
Rec_CreateRecordField ();
|
||||
}
|
||||
else // If there is not name
|
||||
Ale_ShowAlert (Ale_ERROR,Txt_You_must_specify_the_name_of_the_new_record_field);
|
||||
Ale_ShowAlertYouMustSpecifyTheName ();
|
||||
|
||||
/***** Show the form again *****/
|
||||
Rec_ReqEditRecordFields ();
|
||||
|
|
|
@ -1380,7 +1380,6 @@ void Roo_ReceiveFormNewRoom (void)
|
|||
{
|
||||
extern const char *Txt_The_room_X_already_exists;
|
||||
extern const char *Txt_Created_new_room_X;
|
||||
extern const char *Txt_You_must_specify_the_short_name_and_the_full_name_of_the_new_room;
|
||||
|
||||
/***** Room constructor *****/
|
||||
Roo_EditingRoomConstructor ();
|
||||
|
@ -1428,8 +1427,7 @@ void Roo_ReceiveFormNewRoom (void)
|
|||
}
|
||||
}
|
||||
else // If there is not a room name
|
||||
Ale_CreateAlert (Ale_WARNING,NULL,
|
||||
Txt_You_must_specify_the_short_name_and_the_full_name_of_the_new_room);
|
||||
Ale_ShowAlertYouMustSpecifyTheShortNameAndTheFullName ();
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
|
@ -1987,7 +1987,6 @@ static void Svy_ShowLstGrpsToEditSurvey (long SvyCod)
|
|||
void Svy_ReceiveFormSurvey (void)
|
||||
{
|
||||
extern const char *Txt_Already_existed_a_survey_with_the_title_X;
|
||||
extern const char *Txt_You_must_specify_the_title_of_the_survey;
|
||||
struct Svy_Surveys Surveys;
|
||||
struct Svy_Survey OldSvy;
|
||||
struct Svy_Survey NewSvy;
|
||||
|
@ -2102,7 +2101,7 @@ void Svy_ReceiveFormSurvey (void)
|
|||
else // If there is not a survey title
|
||||
{
|
||||
NewSurveyIsCorrect = false;
|
||||
Ale_ShowAlert (Ale_WARNING,Txt_You_must_specify_the_title_of_the_survey);
|
||||
Ale_ShowAlertYouMustSpecifyTheTitle ();
|
||||
}
|
||||
|
||||
/***** Create a new survey or update an existing one *****/
|
||||
|
@ -2585,7 +2584,7 @@ static void Svy_FreeTextChoiceAnswer (struct Svy_Question *SvyQst,unsigned NumAn
|
|||
|
||||
void Svy_ReceiveQst (void)
|
||||
{
|
||||
extern const char *Txt_You_must_type_the_stem_of_the_question;
|
||||
extern const char *Txt_You_must_type_the_question_stem;
|
||||
extern const char *Txt_You_can_not_leave_empty_intermediate_answers;
|
||||
extern const char *Txt_You_must_type_at_least_the_first_two_answers;
|
||||
extern const char *Txt_The_survey_has_been_modified;
|
||||
|
@ -2672,7 +2671,7 @@ void Svy_ReceiveQst (void)
|
|||
}
|
||||
else
|
||||
{
|
||||
Ale_ShowAlert (Ale_WARNING,Txt_You_must_type_the_stem_of_the_question);
|
||||
Ale_ShowAlert (Ale_WARNING,Txt_You_must_type_the_question_stem);
|
||||
Error = true;
|
||||
}
|
||||
|
||||
|
|
919
swad_text.c
919
swad_text.c
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue