diff roundup/scripts/roundup_demo.py @ 7062:062a54eeb0a1

Fix internationalized strings with multiple unlabeled % replacements. Get rid of warnings from gettext about untranslatable strings.
author John Rouillard <rouilj@ieee.org>
date Tue, 22 Nov 2022 16:32:07 -0500
parents d09a1d6a3bd9
children 7b9bddda9d2d
line wrap: on
line diff
--- a/roundup/scripts/roundup_demo.py	Tue Nov 22 14:12:07 2022 -0500
+++ b/roundup/scripts/roundup_demo.py	Tue Nov 22 16:32:07 2022 -0500
@@ -51,8 +51,10 @@
             home = DEFAULT_HOME
         templates = admin.AdminTool().listTemplates().keys()
         template = my_input(
-            _('Enter tracker template to use (one of (%s)) [%s]: ') %
-            (','.join(templates), template))
+            _('Enter tracker template to use (one of (%(template_list)s)) [%(d\
+efault_template)s]: ') %
+            { 'template_list': ','.join(templates),
+              'default_template': template})
         if not template:
             template = DEFAULT_TEMPLATE
         # install

Roundup Issue Tracker: http://roundup-tracker.org/