Skip to content

Commit

Permalink
Language handler: add ISO 639 codes in order to reduce confusion for …
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
josephsl committed Apr 12, 2018
1 parent 359ceec commit 13633aa
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions source/languageHandler.py
Expand Up @@ -115,11 +115,7 @@ def getAvailableLanguages(presentational=False):
displayNames = []
for entry in locales:
desc=getLanguageDescription(entry)
if desc and presentational:
# #7284: present language description and ISO 639 code.
displayNames.append(desc)
else:
displayNames.append("%s, %s"%(desc,entry) if desc else entry)
displayNames.append("%s, %s"%(desc,entry) if desc else entry)
#Prepare a zipped view of language codes and descriptions.
# #7284: especially for sorting by description.
langs = zip(locales,displayNames)
Expand Down

0 comments on commit 13633aa

Please sign in to comment.