bpo-36310: Allow ``pygettext.py`` to detect calls to ``gettext`` in f-strings. by Jackenmen · Pull Request #19875 · python/cpython

@Jackenmen

@blurb-it

@Jackenmen Jackenmen changed the title bpo-36310: pygettext.py - Add support for use of gettext in f-strings bpo-36310: Allow pygettext.py to detect calls to gettext in f-strings.

May 3, 2020

isidentical

Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>

@Jackenmen

isidentical

@Jackenmen

@Jackenmen

@Jackenmen

@Jackenmen

isidentical

@Jackenmen

Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>

@Jackenmen

@Jackenmen

@Jackenmen Jackenmen deleted the pygettext_add_fstrings_support branch

November 9, 2020 22:52

adorilson pushed a commit to adorilson/cpython that referenced this pull request

Mar 13, 2021
pythonGH-19875)

Adds support to Tools/i18n/pygettext.py for gettext calls in f-strings. This process is done by parsing the f-strings, processing each value, and flagging the ones which contain a gettext call.

Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>