Skip to content

Commit

Permalink
fix: don't display translation widget for non logged-in users (#9205)
Browse files Browse the repository at this point in the history
Users don't understand it, and use it as a free form
  • Loading branch information
raphael0202 authored Oct 26, 2023
1 parent 0385087 commit a4eb678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/web/common/site_layout.tt.html
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ <h3 class="title-5 text-medium">[% lang('footer_discover_the_project') %]</h3>

[% 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 %]
<script
type="text/javascript"
src="https://crowdin.com/js/crowdjet/crowdjet.js">
Expand Down

0 comments on commit a4eb678

Please sign in to comment.