Skip to content

General Settings/Language: sort items based on descriptions#8143

Merged
michaelDCurran merged 10 commits into
nvaccess:masterfrom
josephsl:i7284sortedLangsList
Jun 13, 2018
Merged

General Settings/Language: sort items based on descriptions#8143
michaelDCurran merged 10 commits into
nvaccess:masterfrom
josephsl:i7284sortedLangsList

Conversation

@josephsl

@josephsl josephsl commented Apr 4, 2018

Copy link
Copy Markdown
Contributor

Link to issue number:

Fixes #7284

Summary of the issue:

Items in general settings/language are sorted by language codes.

Description of how this pull request fixes the issue:

Users may not realize the languages list in General settings/Language combo box are sorted by ISO 639-1 codes. Thus improve user experience by sorting items by descriptions instead, and when possible, just display human-readable language names (not codes).

Testing performed:

Tested on Windows 10 Version 1803 (17133) with languages set to English and Korean.

Known issues with pull request:

None

Change log entry:

Changes: the list of available languages in General Settings dialog is now sorted based on language names instead of ISO 639 codes. (#7284)

josephsl added 5 commits April 3, 2018 22:26
… be obtained. Re nvaccess#7284.

When going through General settings/Language combo box, users might be puzzled as to why items in there are listed in random order. This is because entries are sorte according to ISO 639-1 code. To improve user experience, sort this alphabetically according to description.
This is done through a new keyword argument in languageHandler.getAvailableLanguages function. Wuth presentational argument set, language tuples will be sorted based on description text.
…ntation purposes. Re nvaccess#7284.

Reduece confusion further by omitting language codes from language description texts.
@LeonarddeR

LeonarddeR commented Apr 5, 2018

Copy link
Copy Markdown
Collaborator

@josephsl commented on 4 apr. 2018 17:50 CEST:

and when possible, just display human-readable language names (not codes).

I tend to disagree here. When I somehow end up at a Korean system running NVDA, all the language names will be in Korean. As I don't know Korean, I will need the ISO code to find the appropriate language.

I haven't tested the code yet, but I assume that the "user default" option is still the last one in the list?

@Brian1Gaff

Brian1Gaff commented Apr 5, 2018 via email

Copy link
Copy Markdown

@josephsl

josephsl commented Apr 5, 2018 via email

Copy link
Copy Markdown
Contributor Author

@michaelDCurran

Copy link
Copy Markdown
Member

I agree with @LeonarddeR here: please keep the language code in the description.

the nanes 'd', 'i', and 'l' are so generic. Thus rename them to 'displayNames', 'entry', and 'locales'.
…users. Re nvaccess#7284.

Reviewed by Mick Curran (NV Access) and others: suppose a user changes to another language by accident, a language he or she cannot understand, especially changes the Windows display language by accident. So how can they return to a language they know? This cannot be done with absence of ISO 639 language codes.
Comment thread source/languageHandler.py
#See the file COPYING for more details.

"""Language and localization support.
This module assists in NVDA going global through language services such as converting Windows locale ID's to friendly names and presenting available languages.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What do you mean with going global here?

Comment thread source/languageHandler.py
return desc

def getAvailableLanguages():
def getAvailableLanguages(presentational=False):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think alphabetize or sort might be a clearer keyword argument instead of presentational. Furthermore, someone might be interested in getting a sorted list of languages for non presentational purposes.

@josephsl

josephsl commented Apr 30, 2018 via email

Copy link
Copy Markdown
Contributor Author

@josephsl

josephsl commented Apr 30, 2018 via email

Copy link
Copy Markdown
Contributor Author

michaelDCurran added a commit that referenced this pull request May 15, 2018
@michaelDCurran michaelDCurran merged commit 302f2af into nvaccess:master Jun 13, 2018
@nvaccessAuto nvaccessAuto added this to the 2018.3 milestone Jun 13, 2018
@josephsl josephsl deleted the i7284sortedLangsList branch June 16, 2018 07:49
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.

Sort items in Language (requires restart to fully take effect) combo box alphabetically by the expanded language names

5 participants