Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
General Settings/Language: sort items based on descriptions (#8143)
* Language handler: allow presentational view of available languages to be obtained. Re #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. * Settings dialog/General/Language: enable presentational view of languages. Re #7284. * GUI/settings dialog: update copyright years * Docstring: language handler module description * Language handler: only add language descriptions if this is for presentation purposes. Re #7284. Reduece confusion further by omitting language codes from language description texts. * Language handler: clarify module docstring * Language handler: readability changes for variable namess. the nanes 'd', 'i', and 'l' are so generic. Thus rename them to 'displayNames', 'entry', and 'locales'. * Language handler: clarify comment * Language handler: add ISO 639 codes in order to reduce confusion for users. Re #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.
- Loading branch information