Mercurial > p > roundup > code
comparison roundup/cgi/actions.py @ 7057:9fe29682dca2
Fix internationalized strings with multiple unlabeled % replacements.
Get rid of warnings from gettext about untranslatable strings.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 21 Nov 2022 18:05:01 -0500 |
| parents | 075d8c6626b0 |
| children | cfdcaf8b5936 |
comparison
equal
deleted
inserted
replaced
| 7056:9b4bd9bc9bdc | 7057:9fe29682dca2 |
|---|---|
| 1157 | 1157 |
| 1158 # send the email | 1158 # send the email |
| 1159 tracker_name = self.db.config.TRACKER_NAME | 1159 tracker_name = self.db.config.TRACKER_NAME |
| 1160 tracker_email = self.db.config.TRACKER_EMAIL | 1160 tracker_email = self.db.config.TRACKER_EMAIL |
| 1161 if self.db.config['EMAIL_REGISTRATION_CONFIRMATION']: | 1161 if self.db.config['EMAIL_REGISTRATION_CONFIRMATION']: |
| 1162 subject = _('Complete your registration to %s -- key %s') % ( | 1162 subject = _( |
| 1163 tracker_name, otk) | 1163 'Complete your registration to %(tracker_name)s -- key %(key)s') % { |
| 1164 'tracker_name': tracker_name, | |
| 1165 'key': otk} | |
| 1166 | |
| 1164 body = _("""To complete your registration of the user "%(name)s" with | 1167 body = _("""To complete your registration of the user "%(name)s" with |
| 1165 %(tracker)s, please do one of the following: | 1168 %(tracker)s, please do one of the following: |
| 1166 | 1169 |
| 1167 - send a reply to %(tracker_email)s and maintain the subject line as is (the | 1170 - send a reply to %(tracker_email)s and maintain the subject line as is (the |
| 1168 reply's additional "Re:" is ok), | 1171 reply's additional "Re:" is ok), |
