Skip to content

Commit

Permalink
Add-on store bugfix: the channel is now translated in Other details f…
Browse files Browse the repository at this point in the history
…ield (#16058)

Summary of the issue:
In the Other details field of the Add-on Store, the name of the channel is always in English, no matter the language of the GUI.

Description of user facing changes
The name of the channel is now translated.

Description of development approach
Use the displayString of the enum.
  • Loading branch information
CyrilleB79 authored Jan 19, 2024
1 parent 3c7504e commit 3012d65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/gui/addonStoreGui/controls/details.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# A part of NonVisual Desktop Access (NVDA)
# Copyright (C) 2022-2023 NV Access Limited, Cyrille Bougot
# Copyright (C) 2022-2024 NV Access Limited, Cyrille Bougot
# This file is covered by the GNU General Public License.
# See the file COPYING for more details.

Expand Down Expand Up @@ -273,7 +273,7 @@ def _refresh(self):
self._appendDetailsLabelValue(
# Translators: Label for an extra detail field for the selected add-on. In the add-on store dialog.
pgettext("addonStore", "Channel:"),
details.channel
details.channel.displayString
)

incompatibleReason = details.getIncompatibleReason()
Expand Down

0 comments on commit 3012d65

Please sign in to comment.