Skip to content

Commit

Permalink
renamed the global _() NVDA translation function to exclude strings t…
Browse files Browse the repository at this point in the history
…ranslated with it from showing up in the .pot file
  • Loading branch information
hamadatrichine committed Apr 17, 2024
1 parent 97a5c8a commit 7fbfbe7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addon/globalPlugins/screenWrapping/wrappingQuickNav.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from tones import beep
from . import wrappingAlerts


defaultTranslator = _

def getCurrentPos(treeInterceptor):
posDelta = treeInterceptor.makeTextInfo(textInfos.POSITION_FIRST)
Expand Down Expand Up @@ -60,7 +60,7 @@ def quickNavWrapping(treeInterceptor, gesture, itemType, direction, errorMessage
try:
item = next(iterFactory(direction, treeInterceptor.selection))
except NotImplementedError:
message(_("Not supported in this document"))
message(defaultTranslator("Not supported in this document"))
return
except StopIteration:
if direction == "next":
Expand Down

0 comments on commit 7fbfbe7

Please sign in to comment.