Skip to content

Conversation

@josephsl
Copy link
Contributor

Link to issue number:

#8488, #8489, #8490

Summary of the issue:

Updates language handler to use kernel32 function, remove LCID's supported on Windows 7 and later as they are included by default, add Kurdish language support.

Description of how this pull request fixes the issue:

Updates language handler:

  • Uses kernel32.dll function for obtaining LCID's.
  • Removes our definition of certain LCID's as Windows 7 ships with them.
  • Adds Kurdish family of languages.

Testing performed:

Tested on Windows 7, 8.1 and 10, along with adding Kurdish locale files.

Known issues with pull request:

None

Change log entry:

None (for now as Kurdish language files are not really ready yet).

Thanks.

josephsl added 3 commits July 8, 2018 12:43
…g kernel32.dll's LocaleNameToLCID function. Re nvaccess#8488.

Because NVDA no longer supports Windows XP, it is now safe to call kernel32.dll's LocaleNameToLCID function directly in language handler. This function is used for obtaining language descriptions and from Windows OneCore synthesizer for perfomring language switch command (Windows 10 only).
…, add Kurdish family.

The following languages have LCID's defined in Windows 7 and later: Amharic (am), Arabic (ar), Nepali (ne), Latin Serbian (sr). Aragonese is kept because no LCID is defined.
Added Kurdish family: Central (ckb), Northern (kmr). The general code, 'ku', is defined in Windows 10 for Central Kurdish, and two letter country code does not work at this stage. This also means the docstring for language description retriever has been changed to say that three-letter language codes are also accepted.
@michaelDCurran
Copy link
Member

michaelDCurran commented Jul 23, 2018 via email

@josephsl
Copy link
Contributor Author

Hi,

Yes:

  1. Nepali: supported on Windows 7.
  2. Latin Serbian: supported on Windows 7.
  3. Arabic: supported on Windows 7.
  4. Aragonese: see Language handler: Aragonese (an) reported as "unknown language" or "Afar" #6259.

I believe those are the LCID's that were not supported on older releases. If I recall correctly, these were added specifically for Windows XP users way back in 2013.

Thanks.

@josephsl
Copy link
Contributor Author

Hi,

Forgot to add Amharic, which is also supported on Windows 7.

Thanks.

@michaelDCurran michaelDCurran merged commit d92a5be into nvaccess:master Jul 23, 2018
@nvaccessAuto nvaccessAuto added this to the 2018.3 milestone Jul 23, 2018
@LeonarddeR
Copy link
Collaborator

@josephsl: Could you please close the associated issues by hand that can be closed because of the merge of this pr?

@josephsl
Copy link
Contributor Author

josephsl commented Jul 23, 2018 via email

@Brian1Gaff
Copy link

Brian1Gaff commented Jul 23, 2018 via email

@josephsl josephsl deleted the 2018langDescriptions branch July 19, 2020 22:15
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.

5 participants