nvda
178f19df - Fix log warning on translation init for languages without translations (PR #13169)

Commit
4 years ago
Fix log warning on translation init for languages without translations (PR #13169) Summary: When starting NVDA with language set to English and logging for debug warnings were written to the log: DEBUGWARNING - languageHandler.setLanguage (16:40:00.332) - MainThread (4856): couldn't set the translation service locale to en English doesn't require translation in NVDA, this is expected and there is no point in logging in this case. Fixes: Hard code languages codes without translations. No warning logged when using gettext for one of these languages. Cleaned up the code that sets the locale of the current thread. Failure previously would be logged only when SetThreadLocale would raise IOError. This was a mistake, its return value should be inspected.
Author
Parents
Loading