Lazily mark Gravatar requirement intent as safe

Review Request #9975 — Created May 23, 2018 and submitted

Information

Review Board
release-3.0.x
6c5efcf...

Reviewers

Previously we were calling mark_safe on the reult of ugettext_lazy
in the GravatarConsentRequirement, 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.


 
chipx86
  1. Ship It!
  2. 
      
brennie
Review request changed
Status:
Completed
Change Summary:
Pushed to release-3.0.x (a036946)