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

2019-05-09 Thread Allie Fitter
Allie Fitter added the comment: Just as context, my use case for this is interpolating translated strings into HTML. html = f'''\ {_("Some Title")} {_("Some longer text")} ''' -- ___ Python tracker <

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

2019-03-15 Thread Allie Fitter
New submission from Allie Fitter : pygettext can't see gettext functions calls when they're inside of an fstring: foo.py from gettext import gettext as _ foo = f'{_("foo bar baz")}' Running `pygettext3.7 -kgt -d message -D -v -o locales/message.pot foo.py` results i