Skip to content

Commit

Permalink
Add-on handler/pgettext: remove pgettext namespace definition. Re nva…
Browse files Browse the repository at this point in the history
…ccess#9207.

As gettext.pgettext is present, there is no need to manually assign NVDA's own pgettext function to built-in namespace for add-ons. Therefore remove this assignment.
  • Loading branch information
josephsl committed Mar 1, 2021
1 parent 12ae5a8 commit 991de43
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions source/addonHandler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,6 @@ def initTranslation():
try:
callerFrame = inspect.currentframe().f_back
callerFrame.f_globals['_'] = translations.gettext
# Install our pgettext function.
callerFrame.f_globals['pgettext'] = languageHandler.makePgettext(translations)
finally:
del callerFrame # Avoid reference problems with frames (per python docs)

Expand Down

0 comments on commit 991de43

Please sign in to comment.