Skip to content

wx no longer compplains of unsupported languages#8612

Merged
michaelDCurran merged 3 commits into
masterfrom
i8064
Aug 14, 2018
Merged

wx no longer compplains of unsupported languages#8612
michaelDCurran merged 3 commits into
masterfrom
i8064

Conversation

@michaelDCurran

Copy link
Copy Markdown
Member

Link to issue number:

Fixes #8064

Summary of the issue:

There are some languages NVDA has a translation for but WX itself does not. An example of this is Mongolian (mn).
When switching to one of these languages, WX shows a warning dialog on NvDA startup stating that the language is not supported by the OS.

Description of how this pull request fixes the issue:

Core now checks to see if wxPython actually supports the language (I.e. has a translation database for it), and only switches to the language if it does.

Testing performed:

Started NVDA in Mongolian: NVDA started, and the warning dialog did not appear. NVDA messages were translated, but there was no WX translation obviously.
Started NVDA in French: NVDA interface was translated in French and so too was wx's controls.

Known issues with pull request:

None.

Change log entry:

Bug fixes:

  • When NVDA is set to languages such as Kirgyz, Mongolian or Macedonian, it no longer shows a dialog on start-up warning that the language is not supported by the Operating System.

@michaelDCurran michaelDCurran requested a review from josephsl August 9, 2018 05:23
josephsl
josephsl previously approved these changes Aug 9, 2018

@josephsl josephsl left a comment

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.

Hi,

I see. I think we need to alert translators of this fact soon so they understand what's going on.

Thanks.

Comment thread source/core.py
# If we try to initialize this language, wx will show a warning dialog.
# Therefore treat this situation like wx not knowing the language at all.
if not locale.IsAvailable(wxLang.Language):
wxLang=None

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It might make sense to log this.

@michaelDCurran

michaelDCurran commented Aug 9, 2018 via email

Copy link
Copy Markdown
Member Author

@LeonarddeR

Copy link
Copy Markdown
Collaborator

Ok, I'm fine with that.

@michaelDCurran michaelDCurran merged commit f0b1c61 into master Aug 14, 2018
@nvaccessAuto nvaccessAuto added this to the 2018.4 milestone Aug 14, 2018
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.

Loading NVDA with specific languages shows "Locale not supported by OS" warning message box

4 participants