Mercurial > p > roundup > code
diff 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 |
line wrap: on
line diff
--- a/roundup/cgi/actions.py Mon Nov 21 18:02:19 2022 -0500 +++ b/roundup/cgi/actions.py Mon Nov 21 18:05:01 2022 -0500 @@ -1159,8 +1159,11 @@ tracker_name = self.db.config.TRACKER_NAME tracker_email = self.db.config.TRACKER_EMAIL if self.db.config['EMAIL_REGISTRATION_CONFIRMATION']: - subject = _('Complete your registration to %s -- key %s') % ( - tracker_name, otk) + subject = _( + 'Complete your registration to %(tracker_name)s -- key %(key)s') % { + 'tracker_name': tracker_name, + 'key': otk} + body = _("""To complete your registration of the user "%(name)s" with %(tracker)s, please do one of the following:
