[issue36310] pygettext3.7 Does Not Recognize gettext Calls Within fstrings

Allie Fitter report at bugs.python.org
Thu May 9 14:23:00 EDT 2019


Allie Fitter <fitterj at gmail.com> added the comment:

Just as context, my use case for this is interpolating translated strings into HTML.

    html = f'''\
    <h1>{_("Some Title")}</h1>
    <p>{_("Some longer text")}</p>
    '''

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36310>
_______________________________________


More information about the Python-bugs-list mailing list