Skip to content

Fix-up of #15864: pluralize battery time reporting string#16011

Merged
seanbudd merged 2 commits into
nvaccess:betafrom
CyrilleB79:pluralBatteryTime
Jan 7, 2024
Merged

Fix-up of #15864: pluralize battery time reporting string#16011
seanbudd merged 2 commits into
nvaccess:betafrom
CyrilleB79:pluralBatteryTime

Conversation

@CyrilleB79

Copy link
Copy Markdown
Contributor

Note: PR opened against beta since translation freeze has not yet happened and since translators are currently dealing with a lot of pluralization of strings during 2024.1 dev cycle.

Link to issue number:

Fix-up of #15864.

Reported in this thread of the translators mailing list.

Summary of the issue:

When pluralizing a lot of string in #15864, the one dedicated to battery time reporting was forgotten.

Description of user facing changes

Battery time estimation will be reported with correct plural forms.

Description of development approach

Split up the string in subparts and use ngettext for hours and for minutes.

Testing strategy:

Manual test of various hour/minute combinations, forcing systemPowerStatus.BatteryLifeTime in the code.

Known issues with pull request:

None

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.

@seanbudd

seanbudd commented Jan 7, 2024

Copy link
Copy Markdown
Member

is this ready for review / to be merged?

@CyrilleB79 CyrilleB79 marked this pull request as ready for review January 7, 2024 23:02
@CyrilleB79 CyrilleB79 requested a review from a team as a code owner January 7, 2024 23:02
@CyrilleB79 CyrilleB79 requested review from gerald-hartig and removed request for a team January 7, 2024 23:02
@CyrilleB79

Copy link
Copy Markdown
Contributor Author

Yes, ready on my side.
I was just waiting for appVeyor but you may convert this PR to draft again in case of issue.

@seanbudd seanbudd merged commit ad0fe83 into nvaccess:beta Jan 7, 2024
@nvaccessAuto nvaccessAuto added this to the 2024.2 milestone Jan 7, 2024
@seanbudd seanbudd modified the milestones: 2024.2, 2024.1 Jan 10, 2024
@CyrilleB79 CyrilleB79 deleted the pluralBatteryTime branch January 13, 2024 23:17
Adriani90 pushed a commit to Adriani90/nvda that referenced this pull request Mar 13, 2024
…access#16011)

Fix-up of nvaccess#15864.

Reported in this thread of the translators mailing list.

Summary of the issue:
When pluralizing a lot of string in nvaccess#15864, the one dedicated to battery time reporting was forgotten.

Description of user facing changes
Battery time estimation will be reported with correct plural forms.

Description of development approach
Split up the string in subparts and use ngettext for hours and for minutes.
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