Skip to content

Improve Magnifier error messages#19475

Merged
seanbudd merged 3 commits into
nvaccess:masterfrom
CyrilleB79:magError
Jan 21, 2026
Merged

Improve Magnifier error messages#19475
seanbudd merged 3 commits into
nvaccess:masterfrom
CyrilleB79:magError

Conversation

@CyrilleB79
Copy link
Copy Markdown
Contributor

Link to issue number:

None

Summary of the issue:

When trying to execute Magnifier commands while Magnifier is not active, there is no error message and an error is logged because pgettext context argument has been put at a wrong position.

Description of user facing changes:

  • Executing Magnifier commands when Magnifier is not active now report a message as expected.
  • The reported messages have been improved to be more similar to other NVDA messages when an action cannot be performed.

Description of developer facing changes:

N/A

Description of development approach:

  • Fix pgettext call
  • Reworded error messages

Testing strategy:

Manuel tests of all Magnifier commands.

The full screen scheck has not been tested since for now, no other mode is available.

Known issues with pull request:

N/A

Code Review Checklist:

  • Documentation:
    • Change log entry
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English
  • API is compatible with existing add-ons.
  • Security precautions taken.

@CyrilleB79
Copy link
Copy Markdown
Contributor Author

@Boumtchack feel free to comment here.

@CyrilleB79
Copy link
Copy Markdown
Contributor Author

Test failure is unrelated.

@CyrilleB79 CyrilleB79 marked this pull request as ready for review January 20, 2026 11:22
@CyrilleB79 CyrilleB79 requested a review from a team as a code owner January 20, 2026 11:22
@Boumtchack
Copy link
Copy Markdown
Contributor

I've added more gestures regarding to padding so I guess it'll add up to what you wanted to change.

I think I'll adapt my code to what you are doing here if it's validated

Copy link
Copy Markdown
Member

@seanbudd seanbudd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @CyrilleB79 these changes look good to me

Comment thread source/_magnifier/commands.py Outdated
Comment thread source/_magnifier/commands.py Outdated
@seanbudd seanbudd enabled auto-merge (squash) January 21, 2026 05:03
@seanbudd seanbudd merged commit 0a4b8d7 into nvaccess:master Jan 21, 2026
39 checks passed
@github-actions github-actions Bot added this to the 2026.2 milestone Jan 21, 2026
@CyrilleB79 CyrilleB79 deleted the magError branch February 4, 2026 11:31
tareh7z pushed a commit to tareh7z/nvda that referenced this pull request Feb 16, 2026
Summary of the issue:

When trying to execute Magnifier commands while Magnifier is not active, there is no error message and an error is logged because pgettext context argument has been put at a wrong position.
Description of user facing changes:

    Executing Magnifier commands when Magnifier is not active now report a message as expected.
    The reported messages have been improved to be more similar to other NVDA messages when an action cannot be performed.

Description of developer facing changes:

N/A
Description of development approach:

    Fix pgettext call
    Reworded error messages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants