Mercurial > p > roundup > code
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 7061:f57729136aee | 7062:062a54eeb0a1 |
|---|---|
| 49 _('Enter directory path to create demo tracker [%s]: ') % home) | 49 _('Enter directory path to create demo tracker [%s]: ') % home) |
| 50 if not home: | 50 if not home: |
| 51 home = DEFAULT_HOME | 51 home = DEFAULT_HOME |
| 52 templates = admin.AdminTool().listTemplates().keys() | 52 templates = admin.AdminTool().listTemplates().keys() |
| 53 template = my_input( | 53 template = my_input( |
| 54 _('Enter tracker template to use (one of (%s)) [%s]: ') % | 54 _('Enter tracker template to use (one of (%(template_list)s)) [%(d\ |
| 55 (','.join(templates), template)) | 55 efault_template)s]: ') % |
| 56 { 'template_list': ','.join(templates), | |
| 57 'default_template': template}) | |
| 56 if not template: | 58 if not template: |
| 57 template = DEFAULT_TEMPLATE | 59 template = DEFAULT_TEMPLATE |
| 58 # install | 60 # install |
| 59 demo.install_demo(home, backend, | 61 demo.install_demo(home, backend, |
| 60 admin.AdminTool().listTemplates()[template]['path']) | 62 admin.AdminTool().listTemplates()[template]['path']) |
