mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-10 10:45:23 +02:00
Version 16.107.9
This commit is contained in:
parent
309aa1a72c
commit
b9ccb352bb
|
@ -189,13 +189,15 @@
|
|||
/****************************** Public constants *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 16.107.7 (2016-12-27)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 16.107.9 (2016-12-27)"
|
||||
#define CSS_FILE "swad16.106.5.css"
|
||||
#define JS_FILE "swad16.101.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.107.9: Dec 27, 2016 Changes in edition of new notice. (211607 lines)
|
||||
Version 16.107.8: Dec 27, 2016 Changes in behaviour of labels in forms. (211598 lines)
|
||||
Version 16.107.7: Dec 27, 2016 Code refactoring in forums. (211594 lines)
|
||||
Version 16.107.6: Dec 27, 2016 Changes in behaviour of labels in forms. (211593 lines)
|
||||
Version 16.107.5: Dec 26, 2016 Changes in behaviour of labels in forms. (211540 lines)
|
||||
|
|
|
@ -422,38 +422,42 @@ static void Msg_WriteFormUsrsIDsOrNicksOtherRecipients (void)
|
|||
extern const char *Txt_Other_recipients;
|
||||
extern const char *Txt_Recipients;
|
||||
extern const char *Txt_nicks_emails_or_IDs_separated_by_commas;
|
||||
char Nickname[Nck_MAX_LENGTH_NICKNAME_WITHOUT_ARROBA+1]; // old version because is a nickname retrieved from database. TODO: change in 2013
|
||||
bool PutColspan;
|
||||
char Nickname[Nck_MAX_LENGTH_NICKNAME_WITHOUT_ARROBA+1];
|
||||
unsigned Colspan;
|
||||
|
||||
PutColspan = Gbl.CurrentCrs.Crs.CrsCod > 0 && // If there is a course selected
|
||||
bool StdsAndTchsWritten = Gbl.CurrentCrs.Crs.CrsCod > 0 && // If there is a course selected
|
||||
(Gbl.Usrs.Me.IBelongToCurrentCrs || // I belong to it
|
||||
Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM);
|
||||
if (PutColspan)
|
||||
|
||||
/***** How many columns? *****/
|
||||
if (StdsAndTchsWritten)
|
||||
Colspan = Usr_GetColumnsForSelectUsrs ();
|
||||
else
|
||||
Colspan = 1;
|
||||
|
||||
/***** Title *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<th");
|
||||
if (Colspan > 1)
|
||||
fprintf (Gbl.F.Out," colspan=\"%u\"",Colspan);
|
||||
fprintf (Gbl.F.Out," class=\"LEFT_MIDDLE LIGHT_BLUE\">"
|
||||
"<label for=\"OtherRecipients\">%s:</label>"
|
||||
"</th>"
|
||||
"</tr>",
|
||||
StdsAndTchsWritten ? Txt_Other_recipients :
|
||||
Txt_Recipients);
|
||||
|
||||
/***** Textarea with users' @nicknames, emails or IDs *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<th class=\"LEFT_MIDDLE LIGHT_BLUE\"");
|
||||
if (PutColspan)
|
||||
fprintf (Gbl.F.Out," colspan=\"%u\">%s:",
|
||||
Colspan,Txt_Other_recipients);
|
||||
else
|
||||
fprintf (Gbl.F.Out," >%s:",
|
||||
Txt_Recipients);
|
||||
fprintf (Gbl.F.Out,"</th>"
|
||||
"</tr>"
|
||||
"<tr>"
|
||||
"<td");
|
||||
if (PutColspan)
|
||||
if (Colspan > 1)
|
||||
fprintf (Gbl.F.Out," colspan=\"%u\"",Colspan);
|
||||
fprintf (Gbl.F.Out," class=\"LEFT_MIDDLE\">"
|
||||
"<textarea name=\"OtherRecipients\" cols=\"72\" rows=\"2\""
|
||||
" placeholder=\"%s…\">",
|
||||
"<textarea id=\"OtherRecipients\" name=\"OtherRecipients\""
|
||||
" cols=\"72\" rows=\"2\""
|
||||
" placeholder=\"%s\">",
|
||||
Txt_nicks_emails_or_IDs_separated_by_commas);
|
||||
if (Gbl.Usrs.ListOtherRecipients[0])
|
||||
fprintf (Gbl.F.Out,"%s",Gbl.Usrs.ListOtherRecipients);
|
||||
// else if (Gbl.Msg.Reply.IsReply) // If this is a reply message
|
||||
else if (Gbl.Usrs.Other.UsrDat.UsrCod > 0) // If there is a recipient
|
||||
// and there's no list of explicit recipients,
|
||||
// write @nickname of original sender
|
||||
|
|
|
@ -89,14 +89,12 @@ static long Not_GetParamNotCod (void);
|
|||
void Not_ShowFormNotice (void)
|
||||
{
|
||||
extern const char *Hlp_MESSAGES_Notices;
|
||||
extern const char *The_ClassForm[The_NUM_THEMES];
|
||||
extern const char *Txt_The_notice_you_enter_here_will_appear_as_a_yellow_note_;
|
||||
extern const char *Txt_The_notice_will_appear_as_a_yellow_note_;
|
||||
extern const char *Txt_New_notice;
|
||||
extern const char *Txt_MSG_Message;
|
||||
extern const char *Txt_Create_notice;
|
||||
|
||||
/***** Help message *****/
|
||||
sprintf (Gbl.Message,Txt_The_notice_you_enter_here_will_appear_as_a_yellow_note_,
|
||||
sprintf (Gbl.Message,Txt_The_notice_will_appear_as_a_yellow_note_,
|
||||
Gbl.CurrentCrs.Crs.FullName);
|
||||
Lay_ShowAlert (Lay_INFO,Gbl.Message);
|
||||
|
||||
|
@ -104,23 +102,15 @@ void Not_ShowFormNotice (void)
|
|||
Act_FormStart (ActRcvNot);
|
||||
|
||||
/***** Start frame *****/
|
||||
Lay_StartRoundFrameTable (NULL,Txt_New_notice,NULL,Hlp_MESSAGES_Notices,2);
|
||||
Lay_StartRoundFrame (NULL,Txt_New_notice,NULL,Hlp_MESSAGES_Notices);
|
||||
|
||||
/***** Message body *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s RIGHT_TOP\">"
|
||||
"%s: "
|
||||
"</td>"
|
||||
"<td class=\"LEFT_TOP\">"
|
||||
"<textarea name=\"Content\" cols=\"30\" rows=\"10\">"
|
||||
"</textarea>"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
The_ClassForm[Gbl.Prefs.Theme],
|
||||
Txt_MSG_Message);
|
||||
fprintf (Gbl.F.Out,"<textarea name=\"Content\" cols=\"30\" rows=\"10\""
|
||||
" autofocus=\"autofocus\" required=\"required\">"
|
||||
"</textarea>");
|
||||
|
||||
/***** Button to create notice and end frame *****/
|
||||
Lay_EndRoundFrameTableWithButton (Lay_CREATE_BUTTON,Txt_Create_notice);
|
||||
Lay_EndRoundFrameWithButton (Lay_CREATE_BUTTON,Txt_Create_notice);
|
||||
|
||||
/***** End form *****/
|
||||
Act_FormEnd ();
|
||||
|
|
152
swad_text.c
152
swad_text.c
|
@ -44399,88 +44399,106 @@ const char *Txt_The_nickname_entered_X_is_not_valid_ = // Warning: it is very im
|
|||
" a digit (0-9) or "_"."; // Necessita de tradução
|
||||
#endif
|
||||
|
||||
const char *Txt_The_notice_you_enter_here_will_appear_as_a_yellow_note_ = // Warning: it is very important to include %s in the following sentences
|
||||
const char *Txt_The_notice_will_appear_as_a_yellow_note_ =
|
||||
#if L==1
|
||||
"El aviso que escriba aquí aparecerá en forma de nota amarilla"
|
||||
" a la izquierda de la página y será <strong>visible por todo el mundo</strong>"
|
||||
" (no solo por los usuarios de la asignatura %s).<br />"
|
||||
"<strong>El mensaje debe ser breve</strong>."
|
||||
" Si desea crear un aviso extenso o de acceso exclusivo para sus estudiantes,"
|
||||
" puede usar el foro de la asignatura,"
|
||||
" enviar un mensaje a todos a través del sistema de mensajería interna,"
|
||||
" o incluso crear un archivo con el texto y añadirlo a la zona de documentos."; // Necessita traduccio
|
||||
"L'avís apareixerà en forma de nota groga"
|
||||
" a l'esquerra de la pàgina"
|
||||
" i serà <strong>visible per tot el món</strong>"
|
||||
" (no només pels usuaris de l'assignatura).<br />"
|
||||
"<strong>El missatge ha de ser breu.</strong>"
|
||||
" Per crear un avís extens"
|
||||
" o d'accés exclusiu per a estudiants,"
|
||||
" pot utilitzar el fòrum de l'assignatura,"
|
||||
" enviar un missatge a tots,"
|
||||
" o pujar un arxiu amb el text a la zona de documents.";
|
||||
#elif L==2
|
||||
"The notice you enter here will appear as a yellow note"
|
||||
" in the left of the page and will be visible <strong>worldwide</strong>"
|
||||
" (not just by users of the course %s).<br />"
|
||||
"<strong>The message should be short</strong>."
|
||||
" If you want to create a long notice or a notice with exclusive access to your students,"
|
||||
" you can use the forum of the course,"
|
||||
" or send a message to all through the internal messaging system,"
|
||||
" or even create a file with the text and upload it to the documents area."; // Need Übersetzung
|
||||
"Die Ankündigung wird als ein gelber Hinweis"
|
||||
" auf der linken Seite der Seite erscheinen"
|
||||
" und wird <strong>weltweit</strong>"
|
||||
" (nicht nur von den Benutzern des Kurses) sichtbar sein.<br />"
|
||||
"<strong>Die Nachricht sollte kurz sein</strong>."
|
||||
" Wenn Sie eine lange Ankündigung"
|
||||
" oder einen Hinweis mit exklusivem Zugang für Studenten erstellen möchten,"
|
||||
" können Sie das Forum des Kurses nutzen,"
|
||||
" eine Nachricht an alle senden"
|
||||
" oder eine Datei mit dem Text in den Dokumentenbereich hochladen.";
|
||||
#elif L==3
|
||||
"The notice you enter here will appear as a yellow note"
|
||||
" in the left of the page and will be visible <strong>worldwide</strong>"
|
||||
" (not just by users of the course %s).<br />"
|
||||
"The notice will appear as a yellow note"
|
||||
" in the left of the page"
|
||||
" and will be <strong>visible worldwide</strong>"
|
||||
" (not just by users of the course).<br />"
|
||||
"<strong>The message should be short</strong>."
|
||||
" If you want to create a long notice or a notice with exclusive access to your students,"
|
||||
" If you want to create a long notice"
|
||||
" or a notice with exclusive access for students,"
|
||||
" you can use the forum of the course,"
|
||||
" or send a message to all through the internal messaging system,"
|
||||
" or even create a file with the text and upload it to the documents area.";
|
||||
" send a message to all,"
|
||||
" or upload a file with the text to the documents area.";
|
||||
#elif L==4
|
||||
"El aviso que escriba aquí aparecerá en forma de nota amarilla"
|
||||
" a la izquierda de la página y será <strong>visible por todo el mundo</strong>"
|
||||
" (no solo por los usuarios de la asignatura %s).<br />"
|
||||
"El aviso aparecerá en forma de nota amarilla"
|
||||
" a la izquierda de la página"
|
||||
" y será <strong>visible por todo el mundo</strong>"
|
||||
" (no solo por los usuarios de la asignatura).<br />"
|
||||
"<strong>El mensaje debe ser breve</strong>."
|
||||
" Si desea crear un aviso extenso o de acceso exclusivo para sus estudiantes,"
|
||||
" Si desea crear un aviso extenso"
|
||||
" o de acceso exclusivo para estudiantes,"
|
||||
" puede usar el foro de la asignatura,"
|
||||
" enviar un mensaje a todos a través del sistema de mensajería interna,"
|
||||
" o incluso crear un archivo con el texto y añadirlo a la zona de documentos.";
|
||||
" enviar un mensaje a todos,"
|
||||
" o subir un archivo con el texto a la zona de documentos.";
|
||||
#elif L==5
|
||||
"The notice you enter here will appear as a yellow note"
|
||||
" in the left of the page and will be visible <strong>worldwide</strong>"
|
||||
" (not just by users of the course %s).<br />"
|
||||
"<strong>The message should be short</strong>."
|
||||
" If you want to create a long notice or a notice with exclusive access to your students,"
|
||||
" you can use the forum of the course,"
|
||||
" or send a message to all through the internal messaging system,"
|
||||
" or even create a file with the text and upload it to the documents area."; // Besoin de traduction
|
||||
"L'avis apparaîtra comme une note jaune"
|
||||
" à gauche de la page"
|
||||
" et sera <strong>visible dans le monde entier</strong>"
|
||||
" (pas seulement par les utilisateurs du cours).<br />"
|
||||
"<strong>Le message doit être court</strong>."
|
||||
" Si vous souhaitez créer un avis long"
|
||||
" ou un avis avec un accès exclusif pour les étudiants,"
|
||||
" vous pouvez utiliser le forum du cours,"
|
||||
" envoyer un message à tous"
|
||||
" ou télécharger un fichier avec le texte dans la zone des documents.";
|
||||
#elif L==6
|
||||
"El aviso que escriba aquí aparecerá en forma de nota amarilla"
|
||||
" a la izquierda de la página y será <strong>visible por todo el mundo</strong>"
|
||||
" (no solo por los usuarios de la asignatura %s).<br />"
|
||||
"El aviso aparecerá en forma de nota amarilla"
|
||||
" a la izquierda de la página"
|
||||
" y será <strong>visible por todo el mundo</strong>"
|
||||
" (no solo por los usuarios de la asignatura).<br />"
|
||||
"<strong>El mensaje debe ser breve</strong>."
|
||||
" Si desea crear un aviso extenso o de acceso exclusivo para sus estudiantes,"
|
||||
" Si desea crear un aviso extenso"
|
||||
" o de acceso exclusivo para estudiantes,"
|
||||
" puede usar el foro de la asignatura,"
|
||||
" enviar un mensaje a todos a través del sistema de mensajería interna,"
|
||||
" o incluso crear un archivo con el texto y añadirlo a la zona de documentos."; // Okoteve traducción
|
||||
" enviar un mensaje a todos,"
|
||||
" o subir un archivo con el texto a la zona de documentos."; // Okoteve traducción
|
||||
#elif L==7
|
||||
"L'avviso che hai inserito qui apparirà come una nota in giallo"
|
||||
" sulla parte sinistra della pagina è sarà <strong>visibile a tutti</strong>"
|
||||
" (non solo da utenti del corso %s).<br />"
|
||||
"<strong>Il messaggio dovrà essere breve</strong>."
|
||||
" Se vuoi creare un avviso lungo o un avviso con accesso esclusivo per i tuoi studenti,"
|
||||
" potrai usare il forum del corso,"
|
||||
" o inviare un messaggio a tutti attraverso il sistema di messaggistica interno,"
|
||||
" o sempre creare un file con il testo e caricarlo nell'area documenti.";
|
||||
"L'avviso verrà visualizzato come una nota di colore giallo"
|
||||
" nella parte sinistra della pagina"
|
||||
" e sarà <strong>visibile in tutto il mondo</strong>"
|
||||
" (non solo dagli utenti del corso).<br />"
|
||||
"<strong>Il messaggio deve essere breve</strong>."
|
||||
" Se si desidera creare un lungo avviso"
|
||||
" o una comunicazione con accesso esclusivo per gli studenti,"
|
||||
" è possibile utilizzare il forum del corso,"
|
||||
" inviare un messaggio a tutti,"
|
||||
" o caricare un file con il testo all'area documenti.";
|
||||
#elif L==8
|
||||
"The notice you enter here will appear as a yellow note"
|
||||
" in the left of the page and will be visible <strong>worldwide</strong>"
|
||||
" (not just by users of the course %s).<br />"
|
||||
"<strong>The message should be short</strong>."
|
||||
" If you want to create a long notice or a notice with exclusive access to your students,"
|
||||
" you can use the forum of the course,"
|
||||
" or send a message to all through the internal messaging system,"
|
||||
" or even create a file with the text and upload it to the documents area."; // Potrzebujesz tlumaczenie
|
||||
"Ogłoszenie pojawi się jako żółty notatki"
|
||||
" w lewej strony"
|
||||
" i będzie <strong>widoczny na całym świecie</strong>"
|
||||
" (nie tylko przez użytkowników oczywiście).<br />"
|
||||
"<strong>Wiadomość powinna być krótka</strong>."
|
||||
" Jeśli chcesz stworzyć długą zawiadomienie"
|
||||
" lub zawiadomienie z wyłącznego dostępu dla studentów,"
|
||||
" można korzystać z forum kursu,"
|
||||
" wysłać wiadomość do wszystkich,"
|
||||
" lub przesłać plik z tekstem do obszaru dokumentów.";
|
||||
#elif L==9
|
||||
"The notice you enter here will appear as a yellow note"
|
||||
" in the left of the page and will be visible <strong>worldwide</strong>"
|
||||
" (not just by users of the course %s).<br />"
|
||||
"<strong>The message should be short</strong>."
|
||||
" If you want to create a long notice or a notice with exclusive access to your students,"
|
||||
" you can use the forum of the course,"
|
||||
" or send a message to all through the internal messaging system,"
|
||||
" or even create a file with the text and upload it to the documents area."; // Necessita de tradução
|
||||
"O aviso aparecerá como uma nota amarela"
|
||||
" à esquerda da página"
|
||||
" e será <strong>visível em todo o mundo</strong>"
|
||||
" (não apenas pelos usuários do curso).<br />"
|
||||
"<strong>A mensagem deve ser curta</strong>."
|
||||
" Se você quiser criar um aviso longo"
|
||||
" ou um aviso com acesso exclusivo para os alunos,"
|
||||
" você pode usar o fórum do curso,"
|
||||
" enviar uma mensagem para todos"
|
||||
" ou enviar um arquivo com o texto para a área de documentos.";
|
||||
#endif
|
||||
|
||||
const char *Txt_The_new_web_address_is_X = // Warning: it is very important to include %s in the following sentences
|
||||
|
|
Loading…
Reference in New Issue
Block a user