Skip to content

Language handler: Aragonese is no longer displayed as 'unknown language' in General Settings/language combo box. re #6259#6261

Merged
jcsteh merged 3 commits into
nvaccess:masterfrom
josephsl:i6259
Oct 18, 2016
Merged

Language handler: Aragonese is no longer displayed as 'unknown language' in General Settings/language combo box. re #6259#6261
jcsteh merged 3 commits into
nvaccess:masterfrom
josephsl:i6259

Conversation

@josephsl

@josephsl josephsl commented Aug 12, 2016

Copy link
Copy Markdown
Contributor

According to MSDN, LCID 0x1000 (4096) is treated as a custom locale by users. This affected how Aragonese entry is presented in General Settings/language combo box (in Windows 10, it shows up as 'unknown language'). Thus take care of this case.
Also took this time to add needed copyright headers (based on git log archive).

Suggested what's new entry:
Category: bug fixes
When viewing list of languages in general settings dialog, certain language entries (for example, Aragonese) are displayed correctly when NVDA is running on Windows 10. (#6259)

Fixes #6259.

…ge'. re nvaccess#6259

According to MSDN, LCID 0x1000 (4096) is treated as a custom locale by users. This affected how Aragonese entry is presented in General Settings/language combo box (in Windows 10, it shows up as 'unknown language'). Thus take care of this case.
Also took this time to add needed copyright headers (based on git log archive).
Comment thread source/languageHandler.py Outdated
if LCID!=0:
# #6259: LCID 0x1000 denotes custom locale in Windows 10, thus returns "unknown language" or an odd description (observed for Aragonese).
# See https://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.lcid(v=vs.110).aspx.
if LCID not in (0, 4096):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please change 4096 to 0x1000, as the intent is clearer this way. Thanks!

Reviewed by Jamie Teh (NV Access): use hex for clarity.
jcsteh added a commit that referenced this pull request Sep 22, 2016
@jcsteh jcsteh merged commit 9caafa1 into nvaccess:master Oct 18, 2016
@nvaccessAuto nvaccessAuto added this to the 2016.4 milestone Oct 18, 2016
@josephsl josephsl deleted the i6259 branch August 10, 2020 04:19
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.

Language handler: Aragonese (an) reported as "unknown language" or "Afar"

3 participants