def msg(self, _): from liberapay.i18n.base import to_age domain, reason, ts, details = self.args if reason == 'bounce': return _( "The email domain {domain} was blacklisted on {date} because " "it was bouncing back all messages. Please contact us if that " "is no longer true and you want us to remove this domain from " "the blacklist.", domain=domain, date=ts.date()) elif reason == 'complaint': return _( "The email domain {domain} is blacklisted because of a complaint " "received {timespan_ago}. Please contact us if this domain is " "yours and you want us to remove it from the blacklist.", domain=domain, timespan_ago=to_age(ts)) elif reason == 'throwaway': return _( "The email domain {domain} was blacklisted on {date} because " "it provided disposable addresses. Please contact us if that " "is no longer true and you want us to remove this domain from " "the blacklist.", domain=domain, date=ts.date()) else: return _( "The email domain {domain} is blacklisted. Please contact us if " "you want us to remove it from the blacklist.", domain=domain)
def lazy_body(self, _): from liberapay.i18n.base import to_age error = self.email_error if error.reason == 'bounce': return _( "The email address {email_address} is blacklisted because an " "attempt to send a message to it failed {timespan_ago}.", email_address=error.email_address, timespan_ago=to_age(error.ts)) else: return _( "The email address {email_address} is blacklisted because of a " "complaint received {timespan_ago}. Please send an email " "from that address to [email protected] if you want us to " "remove it from the blacklist.", email_address=error.email_address, timespan_ago=to_age(error.ts))
def msg(_): if remaining == 0 and reset: return _( "You've consumed your quota of requests, you can try again {in_N_minutes}.", in_N_minutes=to_age(reset)) else: return _( "You're making requests too fast, please try again later." )
def msg(self, _): from liberapay.i18n.base import to_age address, reason, ts = self.args if reason == 'bounce': return _( "The email address {email_address} is blacklisted because an " "attempt to send a message to it failed {timespan_ago}. Please " "send an email from that address to [email protected] if " "you want us to remove it from the blacklist.", email_address=address, timespan_ago=to_age(ts) ) else: return _( "The email address {email_address} is blacklisted because of a " "complaint received {timespan_ago}. Please send an email " "from that address to [email protected] if you want us to " "remove it from the blacklist.", email_address=address, timespan_ago=to_age(ts) )