nvda
d92a5be8 - Language handler: use kernel32.dll function, add Kurdish language support (#8538)

Commit
7 years ago
Language handler: use kernel32.dll function, add Kurdish language support (#8538) * Language handler: simplify localeNameToWindowsLCID function by calling kernel32.dll's LocaleNameToLCID function. Re #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). * Language handler: remove languages with LCID's in Windows 7 and later, 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.
Author
Committer
Parents
Loading