From a4eb678fe1701a1dffb702921460fb6e9b824391 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Bournhonesque?= Date: Thu, 26 Oct 2023 16:49:25 +0200 Subject: [PATCH] fix: don't display translation widget for non logged-in users (#9205) Users don't understand it, and use it as a free form --- templates/web/common/site_layout.tt.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/web/common/site_layout.tt.html b/templates/web/common/site_layout.tt.html index 5733a6696ecd2..c2c771c86c9dd 100644 --- a/templates/web/common/site_layout.tt.html +++ b/templates/web/common/site_layout.tt.html @@ -473,7 +473,7 @@

[% lang('footer_discover_the_project') %]

[% SET crowdin_languages = ["aa","ar","ber","br","co","fa","ga","hy","iu","kk","lb","me","mr","ne","no","ry","sd","sl","sq","st","tg","tr","tzl","val","wa","zea","zu","ach","as","bg","bs","crs","eo","fi","gd","hi","id","ja","km","ku","lo","mg","ms","nr","pa","qu","sa","sg","sma","sr","sv","th","ts","ug","ve","wo","zh","af","ast","bm","ca","cs","el","fil","gl","hr","ii","jv","kmr","kw","mi","mt","pl","rm","sat","sh","sn","sr_CS","sw","ti","tt","uk","vec","xh","ak","az","bn","ce","cv","et","fo","gu","ht","is","ka","kmr_TR","ky","lt","ml","my","oc","ro","sc","si","so","sr_RS","ta","tl","tw","ur","vi","yi","am","be","bo","chr","cy","eu","ha","hu","kab","kn","la","lv","mn","nb","nn","ru","sco","sk","son","ss","te","tn","ty","uz","vls","yo"] %] -[% IF crowdin_languages.grep("^$lc$").size %] +[% IF crowdin_languages.grep("^$lc$").size and user_id.defined %]