Skip to content

Commit c32a92f

Browse files
committed
Fix internationalized strings with multiple unlabeled % replacements.
Get rid of warnings from gettext about untranslatable strings.
1 parent 201f5fd commit c32a92f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

roundup/scripts/roundup_demo.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ def run():
5151
home = DEFAULT_HOME
5252
templates = admin.AdminTool().listTemplates().keys()
5353
template = my_input(
54-
_('Enter tracker template to use (one of (%s)) [%s]: ') %
55-
(','.join(templates), template))
54+
_('Enter tracker template to use (one of (%(template_list)s)) [%(d\
55+
efault_template)s]: ') %
56+
{ 'template_list': ','.join(templates),
57+
'default_template': template})
5658
if not template:
5759
template = DEFAULT_TEMPLATE
5860
# install

0 commit comments

Comments
 (0)