id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 28647 Add support for python-brace-format for variables within {% blocktrans %} Aidas Bendoraitis nobody "Currently with `gettext()` function you can use both, older-style python format `%(variable)s` and newer style python-brace-format `{variable}`, for example: {{{ gettext('Hello, %(addressee)s!') % {'addressee': 'World'} gettext('Hello, {addressee}!').format(addressee='World') }}} Unfortunately, `{% blocktrans %}` always produces the old-style format with the `%` sign. I think, it would make sense to add a parameter to the `{% blocktrans %}` tag by which you could define the python string format you want to produce. According to my experience with not-so-technical translators, `%(variable)s` format in the `django.po` files is more confusing than `{variable}`." New feature new Internationalization 1.11 Normal Claude Paroz Maciej Olko Someday/Maybe 0 0 0 0 0 0