Skip to content

Commit 3263d9a

Browse files
committed
Fix internationalized strings with multiple unlabeled % replacements.
Get rid of warnings from gettext about untranslatable strings.
1 parent 3f2682c commit 3263d9a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

roundup/cgi/actions.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,8 +1159,11 @@ def handle(self):
11591159
tracker_name = self.db.config.TRACKER_NAME
11601160
tracker_email = self.db.config.TRACKER_EMAIL
11611161
if self.db.config['EMAIL_REGISTRATION_CONFIRMATION']:
1162-
subject = _('Complete your registration to %s -- key %s') % (
1163-
tracker_name, otk)
1162+
subject = _(
1163+
'Complete your registration to %(tracker_name)s -- key %(key)s') % {
1164+
'tracker_name': tracker_name,
1165+
'key': otk}
1166+
11641167
body = _("""To complete your registration of the user "%(name)s" with
11651168
%(tracker)s, please do one of the following:
11661169

0 commit comments

Comments
 (0)