From b5cb69121e517929c337bb6ef074ff16d4d86409 Mon Sep 17 00:00:00 2001 From: acanas Date: Tue, 6 Jun 2023 22:59:34 +0200 Subject: [PATCH] Version 22.120.1: Jun 06, 2023 Translation of messages about cookies. --- swad_changelog.h | 3 ++- swad_cookie.c | 28 ++++++++++++++++------ swad_text.c | 62 +++++++++++++++++++++++++++++++++++++++++------- 3 files changed, 77 insertions(+), 16 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index 979cfc32..7d8e8be8 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -629,10 +629,11 @@ TODO: Emilce Barrera Mesa: Podr TODO: Emilce Barrera Mesa: Mis estudiantes presentan muchas dificultades a la hora de poner la foto porque la plataforma es muy exigente respecto al fondo de la imagen. */ -#define Log_PLATFORM_VERSION "SWAD 22.120 (2023-06-06)" +#define Log_PLATFORM_VERSION "SWAD 22.120.1 (2023-06-06)" #define CSS_FILE "swad22.120.css" #define JS_FILE "swad22.49.js" /* + Version 22.120.1: Jun 06, 2023 Translation of messages about cookies. (337620 lines) Version 22.120: Jun 06, 2023 Code refactoring related to hidden-visible. (337561 lines) Version 22.119: Jun 06, 2023 Code refactoring related to hidden-visible. (337588 lines) Version 22.118.13:May 31, 2023 Code refactoring in forums. (337417 lines) diff --git a/swad_cookie.c b/swad_cookie.c index 29329805..7c05ae91 100644 --- a/swad_cookie.c +++ b/swad_cookie.c @@ -142,20 +142,34 @@ void Coo_ChangeMyPrefsCookies (void) void Coo_GetAndShowNumUsrsPerCookies (void) { extern const char *Hlp_ANALYTICS_Figures_cookies; + extern const char *Txt_Do_not_accept_third_party_cookies; + extern const char *Txt_Accept_third_party_cookies; extern const char *Txt_FIGURE_TYPES[Fig_NUM_FIGURES]; extern const char *Txt_Cookies; extern const char *Txt_Number_of_users; extern const char *Txt_PERCENT_of_users; - static const struct + static struct { - char InDB; - char *Icon; + const char InDB; + const char *Icon; Ico_Color_t Color; - char *Title; + const char **Title; } Accepted[2] = { - [false] = {'N',"times.svg",Ico_RED ,"Don't accept third party cookies"}, // TODO: Need translation!!!! - [true ] = {'Y',"check.svg",Ico_GREEN,"Accept third party cookies"} // TODO: Need translation!!!! + [false] = + { + .InDB = 'N', + .Icon = "times.svg", + .Color = Ico_RED, + .Title = &Txt_Do_not_accept_third_party_cookies + }, + [true ] = + { + .InDB = 'Y', + .Icon = "check.svg", + .Color = Ico_GREEN, + .Title = &Txt_Accept_third_party_cookies + } }; unsigned i; char *SubQuery; @@ -199,7 +213,7 @@ void Coo_GetAndShowNumUsrsPerCookies (void) HTM_TD_Begin ("class=\"CM\""); Ico_PutIcon (Accepted[i].Icon,Accepted[i].Color, - Accepted[i].Title,"ICOx16"); + *Accepted[i].Title,"ICOx16"); HTM_TD_End (); HTM_TD_Begin ("class=\"RM DAT_%s\"",The_GetSuffix ()); diff --git a/swad_text.c b/swad_text.c index 26fcfd79..c3c3452b 100644 --- a/swad_text.c +++ b/swad_text.c @@ -565,6 +565,29 @@ const char *Txt_Absents = "Devamsız"; #endif +const char *Txt_Accept_third_party_cookies = +#if L==1 // ca + "Accepta cookies de tercers"; +#elif L==2 // de + "Akzeptieren Sie Cookies von Drittanbietern"; +#elif L==3 // en + "Accept third-party cookies"; +#elif L==4 // es + "Aceptar cookies de terceros"; +#elif L==5 // fr + "Accepter les cookies de tiers"; +#elif L==6 // gn + "Emoneĩ umi cookie mbohapýha tapicha rehegua"; +#elif L==7 // it + "Accettare i cookie di terze parti"; +#elif L==8 // pl + "Zaakceptuj pliki cookie stron trzecich"; +#elif L==9 // pt + "Aceitar cookies de terceiros"; +#elif L==10 // tr + "Üçüncü taraf tanımlama bilgilerini kabul et"; +#endif + const char *Txt_Accept_third_party_cookies_to_view_multimedia_content_from_other_websites = #if L==1 // ca "Accepta cookies de tercers" @@ -582,20 +605,20 @@ const char *Txt_Accept_third_party_cookies_to_view_multimedia_content_from_other "Accepter les cookies de tiers" " pour afficher le contenu multimédia d'autres sites Web"; #elif L==6 // gn - "Aceptar cookies de terceros" - " para ver contenido multimedia de otros sitios web"; // Okoteve traducción + "Eacepta umi cookie mbohapýha rehegua" + " ehecha ha>ilde;ua contenido multimedia ambue página web-gui"; #elif L==7 // it - "Accetta i cookie di terze parti" + "Accettare i cookie di terze parti" " per visualizzare contenuti multimediali da altri siti Web"; #elif L==8 // pl - "Akceptuj pliki cookie innych firm," - " aby wyświetlać treści multimedialne z innych stron internetowych"; + "Zaakceptuj pliki cookie stron trzecich," + " aby przeglądać treści multimedialne z innych stron internetowych"; #elif L==9 // pt - "Aceite cookies de terceiros" + "Aceitar cookies de terceiros" " para visualizar conteúdo multimídia de outros sites"; #elif L==10 // tr - "Accept third-party cookies" - " to view multimedia content from other websites"; // Çeviri lazim! + "Diğer web sitelerinden multimedya içeriğini görüntülemek için" + " üçüncü taraf tanımlama bilgilerini kabul edin"; #endif const char *Txt_accessible_for_reading_and_writing_by_administrators_of_the_center = @@ -9088,6 +9111,29 @@ const char *Txt_distributed_by = "distributed by"; // Çeviri lazim! #endif +const char *Txt_Do_not_accept_third_party_cookies = +#if L==1 // ca + "No accepteu cookies de tercers"; +#elif L==2 // de + "Akzeptieren Sie keine Cookies von Drittanbietern"; +#elif L==3 // en + "Do no accept third-party cookies"; +#elif L==4 // es + "No aceptar cookies de terceros"; +#elif L==5 // fr + "Ne pas accepter les cookies tiers"; +#elif L==6 // gn + "Ani reacepta umi cookie mbohapýha tapicha rehegua"; +#elif L==7 // it + "Non accettare i cookie di terze parti"; +#elif L==8 // pl + "Nie akceptuj plików cookie stron trzecich"; +#elif L==9 // pt + "Não aceitar cookies de terceiros"; +#elif L==10 // tr + "Üçüncü taraf tanımlama bilgilerini kabul etmeyin"; +#endif + const char *Txt_Do_not_show_again = #if L==1 // ca "No mostrar de nou";