mirror of https://github.com/acanas/swad-core.git
Version 18.2.6
This commit is contained in:
parent
a11f562d2f
commit
8ace83206f
|
@ -3145,7 +3145,7 @@ struct Act_Actions Act_Actions[Act_NUM_ACTIONS] =
|
|||
/* ActReqRemMyPho */{1577,-1,TabUnk,ActReqEdiRecSha ,0x3F8,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Pho_ReqRemoveMyPhoto ,NULL},
|
||||
/* ActRemMyPho */{ 428,-1,TabUnk,ActReqEdiRecSha ,0x3F8,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,Act_CONT_NORM,Act_BRW_1ST_TAB,Pho_RemoveMyPhoto1 ,Pho_RemoveMyPhoto2 ,NULL},
|
||||
|
||||
/* ActEdiPri */{1403,-1,TabUnk,ActEdiPrf ,0x3F8,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Pri_EditMyPrivacy ,NULL},
|
||||
/* ActEdiPri */{1403,-1,TabUnk,ActEdiPrf ,0x3F8,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Pre_EditPrefs ,NULL},
|
||||
/* ActChgPriPho */{ 774,-1,TabUnk,ActEdiPrf ,0x3F8,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Pho_ChangePhotoVisibility ,NULL},
|
||||
/* ActChgPriPrf */{1404,-1,TabUnk,ActEdiPrf ,0x3F8,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Prf_ChangeProfileVisibility ,NULL},
|
||||
|
||||
|
|
|
@ -355,10 +355,11 @@ En OpenSWAD:
|
|||
ps2pdf source.ps destination.pdf
|
||||
*/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 18.2.5 (2018-10-08)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 18.2.6 (2018-10-09)"
|
||||
#define CSS_FILE "swad18.2.2.css"
|
||||
#define JS_FILE "swad17.17.1.js"
|
||||
/*
|
||||
Version 18.2.6: Oct 09, 2018 Changes in edition of preferences about privacy. (234905 lines)
|
||||
Version 18.2.5: Oct 08, 2018 Changes in edition of user's shared record card. (234943 lines)
|
||||
Version 18.2.4: Oct 08, 2018 Changes in edition of user's photo. (234953 lines)
|
||||
Version 18.2.3: Oct 08, 2018 Changes in edition of webs/social networks. (234952 lines)
|
||||
|
|
|
@ -44,6 +44,7 @@
|
|||
#include "swad_logo.h"
|
||||
#include "swad_parameter.h"
|
||||
#include "swad_photo.h"
|
||||
#include "swad_preference.h"
|
||||
#include "swad_privacy.h"
|
||||
#include "swad_table.h"
|
||||
#include "swad_theme.h"
|
||||
|
@ -1293,7 +1294,6 @@ void Pho_ShowUsrPhoto (const struct UsrData *UsrDat,const char *PhotoURL,
|
|||
void Pho_ChangePhotoVisibility (void)
|
||||
{
|
||||
extern const char *Pri_VisibilityDB[Pri_NUM_OPTIONS_PRIVACY];
|
||||
extern const char *Txt_The_visibility_of_your_photo_has_changed;
|
||||
char Query[128];
|
||||
|
||||
/***** Get param with public/private photo *****/
|
||||
|
@ -1306,11 +1306,8 @@ void Pho_ChangePhotoVisibility (void)
|
|||
Gbl.Usrs.Me.UsrDat.UsrCod);
|
||||
DB_QueryUPDATE (Query,"can not update your preference about photo visibility");
|
||||
|
||||
/***** Show alert *****/
|
||||
Ale_ShowAlert (Ale_SUCCESS,Txt_The_visibility_of_your_photo_has_changed);
|
||||
|
||||
/***** Show form again *****/
|
||||
Pri_EditMyPrivacy ();
|
||||
Pre_EditPrefs ();
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
|
@ -58,6 +58,8 @@ const char *Pri_VisibilityDB[Pri_NUM_OPTIONS_PRIVACY] =
|
|||
/***************************** Private constants *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Pri_PRIVACY_ID "privacy"
|
||||
|
||||
/*****************************************************************************/
|
||||
/***************************** Private prototypes ****************************/
|
||||
/*****************************************************************************/
|
||||
|
@ -78,7 +80,7 @@ void Pri_PutLinkToChangeMyPrivacy (void)
|
|||
extern const char *Txt_Privacy;
|
||||
|
||||
/***** Link to edit my privacy *****/
|
||||
Lay_PutContextualLink (ActEdiPri,NULL,NULL,
|
||||
Lay_PutContextualLink (ActEdiPri,Pri_PRIVACY_ID,NULL,
|
||||
"lock64x64.png",
|
||||
Txt_Privacy,NULL,
|
||||
NULL);
|
||||
|
@ -97,6 +99,9 @@ void Pri_EditMyPrivacy (void)
|
|||
extern const char *Txt_Public_profile;
|
||||
extern const char *Txt_Timeline;
|
||||
|
||||
/***** Start section with preferences on privacy *****/
|
||||
Lay_StartSection (Pri_PRIVACY_ID);
|
||||
|
||||
/***** If any of my preferences about privacy is unknown *****/
|
||||
if (Gbl.Usrs.Me.UsrDat.PhotoVisibility == Pri_VISIBILITY_UNKNOWN ||
|
||||
Gbl.Usrs.Me.UsrDat.ProfileVisibility == Pri_VISIBILITY_UNKNOWN)
|
||||
|
@ -132,6 +137,9 @@ void Pri_EditMyPrivacy (void)
|
|||
|
||||
/***** End table and box *****/
|
||||
Box_EndBoxTable ();
|
||||
|
||||
/***** End section with preferences on privacy *****/
|
||||
Lay_EndSection ();
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
@ -168,7 +176,7 @@ static void Pri_PutFormVisibility (const char *TxtLabel,
|
|||
|
||||
/***** Form with list of options *****/
|
||||
if (Action != ActUnk)
|
||||
Act_FormStart (Action);
|
||||
Act_FormStartAnchor (Action,Pri_PRIVACY_ID);
|
||||
fprintf (Gbl.F.Out,"<ul class=\"LIST_LEFT\">");
|
||||
for (Visibility = Pri_VISIBILITY_USER;
|
||||
Visibility <= Pri_VISIBILITY_WORLD;
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
#include "swad_nickname.h"
|
||||
#include "swad_notification.h"
|
||||
#include "swad_parameter.h"
|
||||
#include "swad_preference.h"
|
||||
#include "swad_privacy.h"
|
||||
#include "swad_profile.h"
|
||||
#include "swad_role.h"
|
||||
|
@ -326,7 +327,6 @@ bool Prf_ShowUserProfile (struct UsrData *UsrDat)
|
|||
void Prf_ChangeProfileVisibility (void)
|
||||
{
|
||||
extern const char *Pri_VisibilityDB[Pri_NUM_OPTIONS_PRIVACY];
|
||||
extern const char *Txt_The_visibility_of_your_public_profile_has_changed;
|
||||
char Query[128];
|
||||
|
||||
/***** Get param with public/private photo *****/
|
||||
|
@ -339,11 +339,8 @@ void Prf_ChangeProfileVisibility (void)
|
|||
Gbl.Usrs.Me.UsrDat.UsrCod);
|
||||
DB_QueryUPDATE (Query,"can not update your preference about public profile visibility");
|
||||
|
||||
/***** Show alert *****/
|
||||
Ale_ShowAlert (Ale_SUCCESS,Txt_The_visibility_of_your_public_profile_has_changed);
|
||||
|
||||
/***** Show form again *****/
|
||||
Pri_EditMyPrivacy ();
|
||||
Pre_EditPrefs ();
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
42
swad_text.c
42
swad_text.c
|
@ -48973,48 +48973,6 @@ const char *Txt_The_visibility_of_the_record_field_X_has_not_changed = // Warnin
|
|||
"The visibility of the record field <strong>%s</strong> has not changed."; // Necessita de tradução
|
||||
#endif
|
||||
|
||||
const char *Txt_The_visibility_of_your_photo_has_changed =
|
||||
#if L==1
|
||||
"La visibilidad de su foto ha cambiado."; // Necessita traduccio
|
||||
#elif L==2
|
||||
"The visibility of your photo has changed."; // Need Übersetzung
|
||||
#elif L==3
|
||||
"The visibility of your photo has changed.";
|
||||
#elif L==4
|
||||
"La visibilidad de su foto ha cambiado.";
|
||||
#elif L==5
|
||||
"The visibility of your photo has changed."; // Besoin de traduction
|
||||
#elif L==6
|
||||
"La visibilidad de su foto ha cambiado."; // Okoteve traducción
|
||||
#elif L==7
|
||||
"The visibility of your photo has changed."; // Bisogno di traduzione
|
||||
#elif L==8
|
||||
"The visibility of your photo has changed."; // Potrzebujesz tlumaczenie
|
||||
#elif L==9
|
||||
"The visibility of your photo has changed."; // Necessita de tradução
|
||||
#endif
|
||||
|
||||
const char *Txt_The_visibility_of_your_public_profile_has_changed =
|
||||
#if L==1
|
||||
"La visibilidad de su perfil público ha cambiado."; // Necessita traduccio
|
||||
#elif L==2
|
||||
"The visibility of your public profile has changed."; // Need Übersetzung
|
||||
#elif L==3
|
||||
"The visibility of your public profile has changed.";
|
||||
#elif L==4
|
||||
"La visibilidad de su perfil público ha cambiado.";
|
||||
#elif L==5
|
||||
"The visibility of your public profile has changed."; // Besoin de traduction
|
||||
#elif L==6
|
||||
"La visibilidad de su perfil público ha cambiado."; // Okoteve traducción
|
||||
#elif L==7
|
||||
"The visibility of your public profile has changed."; // Bisogno di traduzione
|
||||
#elif L==8
|
||||
"The visibility of your public profile has changed."; // Potrzebujesz tlumaczenie
|
||||
#elif L==9
|
||||
"The visibility of your public profile has changed."; // Necessita de tradução
|
||||
#endif
|
||||
|
||||
const char *Txt_The_whole_course =
|
||||
#if L==1
|
||||
"Toda la asignatura"; // Necessita traduccio
|
||||
|
|
Loading…
Reference in New Issue