Lazily mark Gravatar requirement intent as safe
Review Request #9975 — Created May 23, 2018 and submitted — Latest diff uploaded
Previously we were calling
mark_safe
on the reult ofugettext_lazy
in theGravatarConsentRequirement
, which causes the string to be
translated at that time. This would result in every user (regardless of
language) receiving the string in whatever the site-wide langauge is,
which is not ideal.We now use
mark_safe_lazy
so that translation occurs when it is
rendered in a template.