Version 16.145

This commit is contained in:
Antonio Cañas Vargas 2017-03-02 21:05:09 +01:00
parent 1f3e6c9e15
commit 761360136a
7 changed files with 3257 additions and 264 deletions

View File

@ -70,48 +70,49 @@ CFLAGS = -Wall -Wextra -mtune=native -O2 -s
all: swad_ca swad_de swad_en swad_es swad_fr swad_gn swad_it swad_pl swad_pt
swad_ca: $(OBJS) $(SOAPOBJS) $(SHAOBJS)
$(CC) $(CFLAGS) -c -D L=1 swad_help_URL.c
$(CC) $(CFLAGS) -c -D L=1 swad_text.c
$(CC) $(CFLAGS) -o $@ $(OBJS) swad_text.o $(SOAPOBJS) $(SHAOBJS) $(LIBS)
$(CC) $(CFLAGS) -o $@ $(OBJS) swad_help_URL.o swad_text.o $(SOAPOBJS) $(SHAOBJS) $(LIBS)
chmod a+x $@
swad_de: $(OBJS) $(SOAPOBJS)
$(CC) $(CFLAGS) -c -D L=2 swad_text.c
$(CC) $(CFLAGS) -o $@ $(OBJS) swad_text.o $(SOAPOBJS) $(SHAOBJS) $(LIBS)
$(CC) $(CFLAGS) -c -D L=2 swad_help_URL.c swad_text.c
$(CC) $(CFLAGS) -o $@ $(OBJS) swad_help_URL.o swad_text.o $(SOAPOBJS) $(SHAOBJS) $(LIBS)
chmod a+x $@
swad_en: $(OBJS) $(SOAPOBJS)
$(CC) $(CFLAGS) -c -D L=3 swad_text.c
$(CC) $(CFLAGS) -o $@ $(OBJS) swad_text.o $(SOAPOBJS) $(SHAOBJS) $(LIBS)
$(CC) $(CFLAGS) -c -D L=3 swad_help_URL.c swad_text.c
$(CC) $(CFLAGS) -o $@ $(OBJS) swad_help_URL.o swad_text.o $(SOAPOBJS) $(SHAOBJS) $(LIBS)
chmod a+x $@
swad_es: $(OBJS) $(SOAPOBJS)
$(CC) $(CFLAGS) -c -D L=4 swad_text.c
$(CC) $(CFLAGS) -o $@ $(OBJS) swad_text.o $(SOAPOBJS) $(SHAOBJS) $(LIBS)
$(CC) $(CFLAGS) -c -D L=4 swad_help_URL.c swad_text.c
$(CC) $(CFLAGS) -o $@ $(OBJS) swad_help_URL.o swad_text.o $(SOAPOBJS) $(SHAOBJS) $(LIBS)
chmod a+x $@
swad_fr: $(OBJS) $(SOAPOBJS)
$(CC) $(CFLAGS) -c -D L=5 swad_text.c
$(CC) $(CFLAGS) -o $@ $(OBJS) swad_text.o $(SOAPOBJS) $(SHAOBJS) $(LIBS)
$(CC) $(CFLAGS) -c -D L=5 swad_help_URL.c swad_text.c
$(CC) $(CFLAGS) -o $@ $(OBJS) swad_help_URL.o swad_text.o $(SOAPOBJS) $(SHAOBJS) $(LIBS)
chmod a+x $@
swad_gn: $(OBJS) $(SOAPOBJS)
$(CC) $(CFLAGS) -c -D L=6 swad_text.c
$(CC) $(CFLAGS) -o $@ $(OBJS) swad_text.o $(SOAPOBJS) $(SHAOBJS) $(LIBS)
$(CC) $(CFLAGS) -c -D L=6 swad_help_URL.c swad_text.c
$(CC) $(CFLAGS) -o $@ $(OBJS) swad_help_URL.o swad_text.o $(SOAPOBJS) $(SHAOBJS) $(LIBS)
chmod a+x $@
swad_it: $(OBJS) $(SOAPOBJS)
$(CC) $(CFLAGS) -c -D L=7 swad_text.c
$(CC) $(CFLAGS) -o $@ $(OBJS) swad_text.o $(SOAPOBJS) $(SHAOBJS) $(LIBS)
$(CC) $(CFLAGS) -c -D L=7 swad_help_URL.c swad_text.c
$(CC) $(CFLAGS) -o $@ $(OBJS) swad_help_URL.o swad_text.o $(SOAPOBJS) $(SHAOBJS) $(LIBS)
chmod a+x $@
swad_pl: $(OBJS) $(SOAPOBJS)
$(CC) $(CFLAGS) -c -D L=8 swad_text.c
$(CC) $(CFLAGS) -o $@ $(OBJS) swad_text.o $(SOAPOBJS) $(SHAOBJS) $(LIBS)
$(CC) $(CFLAGS) -c -D L=8 swad_help_URL.c swad_text.c
$(CC) $(CFLAGS) -o $@ $(OBJS) swad_help_URL.o swad_text.o $(SOAPOBJS) $(SHAOBJS) $(LIBS)
chmod a+x $@
swad_pt: $(OBJS) $(SOAPOBJS)
$(CC) $(CFLAGS) -c -D L=9 swad_text.c
$(CC) $(CFLAGS) -o $@ $(OBJS) swad_text.o $(SOAPOBJS) $(SHAOBJS) $(LIBS)
$(CC) $(CFLAGS) -c -D L=9 swad_help_URL.c swad_text.c
$(CC) $(CFLAGS) -o $@ $(OBJS) swad_help_URL.o swad_text.o $(SOAPOBJS) $(SHAOBJS) $(LIBS)
chmod a+x $@
.PHONY: clean

View File

@ -197,13 +197,15 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 16.144.6 (2017-03-02)"
#define Log_PLATFORM_VERSION "SWAD 16.145 (2017-03-02)"
#define CSS_FILE "swad16.144.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.145: Mar 02, 2017 Support for languages in help.
New module swad_help_URL.c (216336 lines)
Version 16.144.6: Mar 02, 2017 Code refactoring in user's photo caption. (213439 lines)
Version 16.144.5: Mar 02, 2017 Label with the user's institution under her/his enlarged photo. (213441 lines)
Version 16.144.4: Mar 01, 2017 Fixed bug in link to another user's QR code from record card. (213338 lines)

View File

@ -37,248 +37,6 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define WIKI "https://github.com/acanas/swad-core/wiki/"
const char *Hlp_Search = WIKI "Search";
//const char *Hlp_Calendar = WIKI "ASSESSMENT.Calendar";
const char *Hlp_Calendar = WIKI "Calendar";
/***** SYSTEM tab *****/
const char *Hlp_SYSTEM_Countries = WIKI "SYSTEM.Countries";
const char *Hlp_SYSTEM_Pending = WIKI "SYSTEM.Pending";
const char *Hlp_SYSTEM_Old = WIKI "SYSTEM.Old";
const char *Hlp_SYSTEM_Studies = WIKI "SYSTEM.Studies";
const char *Hlp_SYSTEM_Studies_edit = WIKI "SYSTEM.Studies#edit";
const char *Hlp_SYSTEM_Domains = WIKI "SYSTEM.Domains";
const char *Hlp_SYSTEM_Domains_edit = WIKI "SYSTEM.Domains#edit";
const char *Hlp_SYSTEM_Banners = WIKI "SYSTEM.Banners";
const char *Hlp_SYSTEM_Banners_edit = WIKI "SYSTEM.Banners#edit";
const char *Hlp_SYSTEM_Links = WIKI "SYSTEM.Links";
const char *Hlp_SYSTEM_Links_edit = WIKI "SYSTEM.Links#edit";
/***** COUNTRY tab *****/
const char *Hlp_COUNTRY_Information = WIKI "COUNTRY.Information";
const char *Hlp_COUNTRY_Institutions = WIKI "COUNTRY.Institutions";
/***** INSTITUTION tab *****/
const char *Hlp_INSTITUTION_Information = WIKI "INSTITUTION.Information";
const char *Hlp_INSTITUTION_Centres = WIKI "INSTITUTION.Centres";
const char *Hlp_INSTITUTION_Departments = WIKI "INSTITUTION.Departments";
const char *Hlp_INSTITUTION_Departments_edit = WIKI "INSTITUTION.Departments#edit";
const char *Hlp_INSTITUTION_Places = WIKI "INSTITUTION.Places";
const char *Hlp_INSTITUTION_Places_edit = WIKI "INSTITUTION.Places#edit";
const char *Hlp_INSTITUTION_Holidays = WIKI "INSTITUTION.Holidays";
const char *Hlp_INSTITUTION_Holidays_edit = WIKI "INSTITUTION.Holidays#edit";
/***** CENTRE tab *****/
const char *Hlp_CENTRE_Information = WIKI "CENTRE.Information";
const char *Hlp_CENTRE_Degrees = WIKI "CENTRE.Degrees";
/***** DEGREE tab *****/
const char *Hlp_DEGREE_Information = WIKI "DEGREE.Information";
const char *Hlp_DEGREE_Courses = WIKI "DEGREE.Courses";
/***** COURSE tab *****/
const char *Hlp_COURSE_Information = WIKI "COURSE.Information";
const char *Hlp_COURSE_Information_textual_information = WIKI "COURSE.Information#textual-information";
const char *Hlp_COURSE_Information_edit = WIKI "COURSE.Information#edit";
const char *Hlp_COURSE_Guide = WIKI "COURSE.Guide";
const char *Hlp_COURSE_Guide_edit = WIKI "COURSE.Guide#edit";
const char *Hlp_COURSE_Syllabus = WIKI "COURSE.Syllabus";
const char *Hlp_COURSE_Syllabus_edit = WIKI "COURSE.Syllabus#edit";
const char *Hlp_COURSE_Timetable = WIKI "COURSE.Timetable";
const char *Hlp_COURSE_Bibliography = WIKI "COURSE.Bibliography";
const char *Hlp_COURSE_Bibliography_edit = WIKI "COURSE.Bibliography#edit";
const char *Hlp_COURSE_FAQ = WIKI "COURSE.FAQ";
const char *Hlp_COURSE_FAQ_edit = WIKI "COURSE.FAQ#edit";
const char *Hlp_COURSE_Links = WIKI "COURSE.Links";
const char *Hlp_COURSE_Links_edit = WIKI "COURSE.Links#edit";
/***** ASSESSMENT tab *****/
const char *Hlp_ASSESSMENT_System = WIKI "ASSESSMENT.System";
const char *Hlp_ASSESSMENT_System_edit = WIKI "ASSESSMENT.System#edit";
const char *Hlp_ASSESSMENT_Assignments = WIKI "ASSESSMENT.Assignments";
const char *Hlp_ASSESSMENT_Assignments_new_assignment = WIKI "ASSESSMENT.Assignments#new-assignment";
const char *Hlp_ASSESSMENT_Assignments_edit_assignment = WIKI "ASSESSMENT.Assignments#edit-assignment";
const char *Hlp_ASSESSMENT_Tests = WIKI "ASSESSMENT.Tests";
const char *Hlp_ASSESSMENT_Tests_test_results = WIKI "ASSESSMENT.Tests#test-results";
const char *Hlp_ASSESSMENT_Announcements = WIKI "ASSESSMENT.Announcements";
const char *Hlp_ASSESSMENT_Announcements_new_announcement = WIKI "ASSESSMENT.Announcements#new-announcement";
const char *Hlp_ASSESSMENT_Announcements_edit_announcement = WIKI "ASSESSMENT.Announcements#edit-announcement";
/***** FILES tab *****/
const char *Hlp_FILES_Documents = WIKI "FILES.Documents";
const char *Hlp_FILES_Private = WIKI "FILES.Private";
const char *Hlp_FILES_Shared = WIKI "FILES.Shared";
const char *Hlp_FILES_Homework_for_students = WIKI "FILES.Homework#for-students";
const char *Hlp_FILES_Homework_for_teachers = WIKI "FILES.Homework#for-teachers";
const char *Hlp_FILES_Marks = WIKI "FILES.Marks";
/***** USERS tab *****/
const char *Hlp_USERS_Groups = WIKI "USERS.Groups";
const char *Hlp_USERS_Students = WIKI "USERS.Students";
const char *Hlp_USERS_Students_shared_record_card = WIKI "USERS.Students#shared-record-card";
const char *Hlp_USERS_Students_course_record_card = WIKI "USERS.Students#course-record-card";
const char *Hlp_USERS_Administration_administer_one_user = WIKI "USERS.Administration#administer-one-user";
const char *Hlp_USERS_Administration_administer_multiple_users = WIKI "USERS.Administration#administer-multiple-users";
const char *Hlp_USERS_Administration_remove_all_students = WIKI "USERS.Administration#remove-all-students";
const char *Hlp_USERS_Teachers = WIKI "USERS.Teachers";
const char *Hlp_USERS_Teachers_shared_record_card = WIKI "USERS.Teachers#shared-record-card";
const char *Hlp_USERS_Teachers_timetable = WIKI "USERS.Teachers#timetable";
const char *Hlp_USERS_Administrators = WIKI "USERS.Administrators";
const char *Hlp_USERS_Guests = WIKI "USERS.Guests";
const char *Hlp_USERS_Duplicates_possibly_duplicate_users = WIKI "USERS.Duplicates#possibly-duplicate-users";
const char *Hlp_USERS_Duplicates_possibly_similar_users = WIKI "USERS.Duplicates#similar-users";
const char *Hlp_USERS_Attendance = WIKI "USERS.Attendance";
const char *Hlp_USERS_Attendance_new_event = WIKI "USERS.Attendance#new-event";
const char *Hlp_USERS_Attendance_edit_event = WIKI "USERS.Attendance#edit-event";
const char *Hlp_USERS_Attendance_attendance_list = WIKI "USERS.Attendance#attendance-list";
const char *Hlp_USERS_Signup = WIKI "USERS.Sign up";
const char *Hlp_USERS_Requests = WIKI "USERS.Requests";
const char *Hlp_USERS_Connected = WIKI "USERS.Connected";
const char *Hlp_USERS_Connected_last_clicks = WIKI "USERS.Connected#last-clicks";
/***** SOCIAL tab *****/
const char *Hlp_SOCIAL_Timeline = WIKI "SOCIAL.Timeline";
const char *Hlp_SOCIAL_Profiles_view_public_profile = WIKI "SOCIAL.Profiles#view-public-profile";
const char *Hlp_SOCIAL_Profiles_who_to_follow = WIKI "SOCIAL.Profiles#who-to-follow";
const char *Hlp_SOCIAL_Forums = WIKI "SOCIAL.Forums";
/***** MESSAGES tab *****/
const char *Hlp_MESSAGES_Notifications = WIKI "MESSAGES.Notifications";
const char *Hlp_MESSAGES_Announcements = WIKI "MESSAGES.Announcements";
const char *Hlp_MESSAGES_Notices = WIKI "MESSAGES.Notices";
const char *Hlp_MESSAGES_Write = WIKI "MESSAGES.Write";
const char *Hlp_MESSAGES_Received = WIKI "MESSAGES.Received";
const char *Hlp_MESSAGES_Received_filter = WIKI "MESSAGES.Received#filter";
const char *Hlp_MESSAGES_Sent = WIKI "MESSAGES.Sent";
const char *Hlp_MESSAGES_Sent_filter = WIKI "MESSAGES.Sent#filter";
const char *Hlp_MESSAGES_Email = WIKI "MESSAGES.Email";
/***** STATS tab *****/
const char *Hlp_STATS_Surveys = WIKI "STATS.Surveys";
const char *Hlp_STATS_Surveys_new_survey = WIKI "STATS.Surveys#new-survey";
const char *Hlp_STATS_Surveys_edit_survey = WIKI "STATS.Surveys#edit-survey";
const char *Hlp_STATS_Surveys_questions = WIKI "STATS.Surveys#questions";
const char *Hlp_STATS_Figures = WIKI "STATS.Figures";
const char *Hlp_STATS_Figures_users = WIKI "STATS.Figures#users";
const char *Hlp_STATS_Figures_ranking = WIKI "STATS.Figures#ranking";
const char *Hlp_STATS_Figures_hierarchy = WIKI "STATS.Figures#hierarchy";
const char *Hlp_STATS_Figures_institutions = WIKI "STATS.Figures#institutions";
const char *Hlp_STATS_Figures_folders_and_files = WIKI "STATS.Figures#folders-and-files";
const char *Hlp_STATS_Figures_open_educational_resources_oer = WIKI "STATS.Figures#open-educational-resources-oer";
const char *Hlp_STATS_Figures_assignments = WIKI "STATS.Figures#assignments";
const char *Hlp_STATS_Figures_tests = WIKI "STATS.Figures#tests";
const char *Hlp_STATS_Figures_public_activity = WIKI "STATS.Figures#public-activity";
const char *Hlp_STATS_Figures_followed_followers = WIKI "STATS.Figures#followed--followers";
const char *Hlp_STATS_Figures_forums = WIKI "STATS.Figures#forums";
const char *Hlp_STATS_Figures_notifications = WIKI "STATS.Figures#notifications";
const char *Hlp_STATS_Figures_notices = WIKI "STATS.Figures#notices";
const char *Hlp_STATS_Figures_messages = WIKI "STATS.Figures#messages";
const char *Hlp_STATS_Figures_surveys = WIKI "STATS.Figures#surveys";
const char *Hlp_STATS_Figures_webs_social_networks = WIKI "STATS.Figures#webs--social-networks";
const char *Hlp_STATS_Figures_language = WIKI "STATS.Figures#language";
const char *Hlp_STATS_Figures_icons = WIKI "STATS.Figures#icons";
const char *Hlp_STATS_Figures_menu = WIKI "STATS.Figures#menu";
const char *Hlp_STATS_Figures_calendar = WIKI "STATS.Figures#calendar";
const char *Hlp_STATS_Figures_theme = WIKI "STATS.Figures#theme";
const char *Hlp_STATS_Figures_columns = WIKI "STATS.Figures#columns";
const char *Hlp_STATS_Figures_privacy = WIKI "STATS.Figures#privacy";
const char *Hlp_STATS_Degrees = WIKI "STATS.Degrees";
const char *Hlp_STATS_Indicators = WIKI "STATS.Indicators";
const char *Hlp_STATS_Visits_global_visits = WIKI "STATS.Visits#global-visits";
const char *Hlp_STATS_Visits_visits_to_course = WIKI "STATS.Visits#visits-to-course";
const char *Hlp_STATS_Report = WIKI "STATS.Report";
const char *Hlp_STATS_Frequent = WIKI "STATS.Frequent";
/***** PROFILE tab *****/
const char *Hlp_PROFILE_Log_in = WIKI "PROFILE.Log%20in";
const char *Hlp_PROFILE_Sign_up = WIKI "PROFILE.Sign%20up";
const char *Hlp_PROFILE_Account = WIKI "PROFILE.Account";
const char *Hlp_PROFILE_Account_email = WIKI "PROFILE.Account#email";
const char *Hlp_PROFILE_Session_role = WIKI "PROFILE.Session#role";
const char *Hlp_PROFILE_Password = WIKI "PROFILE.Password";
const char *Hlp_PROFILE_Courses = WIKI "PROFILE.Courses";
const char *Hlp_PROFILE_Timetable = WIKI "PROFILE.Timetable";
const char *Hlp_PROFILE_Agenda = WIKI "PROFILE.Agenda";
const char *Hlp_PROFILE_Agenda_new_event = WIKI "PROFILE.Agenda#new-event";
const char *Hlp_PROFILE_Agenda_edit_event = WIKI "PROFILE.Agenda#edit-event";
const char *Hlp_PROFILE_Agenda_public_agenda = WIKI "PROFILE.Agenda#public-agenda";
const char *Hlp_PROFILE_Record = WIKI "PROFILE.Record";
const char *Hlp_PROFILE_Institution = WIKI "PROFILE.Institution";
const char *Hlp_PROFILE_Webs = WIKI "PROFILE.Webs";
const char *Hlp_PROFILE_Photo = WIKI "PROFILE.Photo";
const char *Hlp_PROFILE_Preferences_language = WIKI "PROFILE.Preferences#language";
const char *Hlp_PROFILE_Preferences_calendar = WIKI "PROFILE.Preferences#calendar";
const char *Hlp_PROFILE_Preferences_icons = WIKI "PROFILE.Preferences#icons";
const char *Hlp_PROFILE_Preferences_theme = WIKI "PROFILE.Preferences#theme";
const char *Hlp_PROFILE_Preferences_menu = WIKI "PROFILE.Preferences#menu";
const char *Hlp_PROFILE_Preferences_columns = WIKI "PROFILE.Preferences#columns";
const char *Hlp_PROFILE_Preferences_privacy = WIKI "PROFILE.Preferences#privacy";
const char *Hlp_PROFILE_Preferences_notifications = WIKI "PROFILE.Preferences#notifications";
const char *Hlp_PROFILE_Briefcase = WIKI "PROFILE.Briefcase";
/*****************************************************************************/
/***************************** Private constants *****************************/
/*****************************************************************************/

View File

@ -27,12 +27,12 @@
/********************************** Headers **********************************/
/*****************************************************************************/
// #include "swad_user.h"
/*****************************************************************************/
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Hlp_WIKI "https://github.com/acanas/swad-core/wiki/"
/*****************************************************************************/
/******************************** Public types *******************************/
/*****************************************************************************/

3227
swad_help_URL.c Normal file

File diff suppressed because it is too large Load Diff

View File

@ -38,6 +38,7 @@
#include "swad_exam.h"
#include "swad_follow.h"
#include "swad_global.h"
#include "swad_help.h"
#include "swad_hierarchy.h"
#include "swad_logo.h"
#include "swad_MFU.h"
@ -1405,7 +1406,7 @@ static void Lay_StartRoundFrameInternal (const char *Width,const char *Title,
}
if (HelpLink)
fprintf (Gbl.F.Out,"<div class=\"FRAME_ICO_RIGHT\">"
"<a href=\"%s\" target=\"_blank\">"
"<a href=\"%s%s\" target=\"_blank\">"
"<div class=\"CONTEXT_OPT HLP_HIGHLIGHT\">"
"<img src=\"%s/help64x64.png\""
" alt=\"%s\" title=\"%s\""
@ -1413,7 +1414,7 @@ static void Lay_StartRoundFrameInternal (const char *Width,const char *Title,
"</div>"
"</a>"
"</div>",
HelpLink,
Hlp_WIKI,HelpLink,
Gbl.Prefs.IconsURL,
Txt_Help,Txt_Help);
fprintf (Gbl.F.Out,"</div>");

View File

@ -94,6 +94,10 @@
/******************************** Constants **********************************/
/*****************************************************************************/
#ifndef L
#define L 3 // English
#endif
const char *Txt_NEW_LINE = "\r\n"; // End of line in a file. If we put only \n the file does not look good in some Windows text editors
// The HTML entity for "ß" is &szlig; It stands for "S-Z ligature", because this symbol comes from the ligature of a Gothic S and a Z.