-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LocalizedControlTypeReasonable fails with German locale #1572
Comments
“Bild” is image in German, so this appears to be a false positive . |
This issue has been marked as ready for team triage; we will triage it in our weekly review and update the issue. Thank you for contributing to Accessibility Insights! |
Some more info here: Neither Axe.Windows nor AIWin currently support running with non-English localized resources, so in this case the rule is comparing the German-localized name to the English-localized name and not finding a match. We could potentially alter the rule to exclude scenarios where the locale language doesn't match the process language, but we'd need to work out the details of how this works, how to document it, etc. |
This issue requires additional investigation by the Accessibility Insights team. When the issue is ready to be triaged again, we will update the issue with the investigation result and add "status: ready for triage". Thank you for contributing to Accessibility Insights! |
We've identified 2 options here: Either:
|
This issue requires additional investigation by the Accessibility Insights team. When the issue is ready to be triaged again, we will update the issue with the investigation result and add "status: ready for triage". Thank you for contributing to Accessibility Insights! |
Plan is to disable this rule if running on a non-English language setting |
#### Details microsoft/accessibility-insights-windows#1572 called out the fact that the `LocalizedControlTypeReasonable` rule uses English language strings to validate localized names. The chosen solution was to change the `Condition` so that this rule only applies on English language systems. This PR adds a new `Condition` called `IsEnglish` that takes advantage of .NET's built-in support of 3 letter language codes as defined in the ISO 639-2 spec. For our purposes, we disable the rule for anything other than "eng". The check is case-insensitive, which probably isn't strictly necessary, but seemed like the safest bet. Tested by setting my Windows language to French and verifying that `SystemPropertiesTests.OverriddenCultureName_ResetsToDefault` reports as inconclusive. It also revealed the need for adjustments to `MonsterTest` when run on non-English systems. ##### Motivation Address microsoft/accessibility-insights-windows#1572, avoid noise for Visual Customers running on non-English systems. ##### Context <!-- Are there any parts that you've intentionally left out-of-scope for a later PR to handle? --> <!-- Were there any alternative approaches you considered? What tradeoffs did you consider? --> My first iteration used the `CultureInfo.Name` property, which follows a format like **en-us**. This worked reasonably well, but using the three-letter language standard made the code a little it simpler. #### Pull request checklist <!-- If a checklist item is not applicable to this change, write "n/a" in the checkbox --> - [x] Addresses an existing issue: microsoft/accessibility-insights-windows#1572
This has been addressed in Axe.Windows 2.1.2, which was picked up in #1620. It will be in the next Canary release |
@ollypsilon, this is fixed in our Canary release available at at https://github.com/microsoft/accessibility-insights-windows/releases/tag/v1.1.2334.01. It will soon ship to Production. |
Per our policy, closing the issue as it's available in Canary. |
The following accessibility issue needs investigation.
App: MSACCESS
Element path: Bild 'Mit Access verknüpfte Tabelle'
Issue Details: The LocalizedControlType should be reasonable based on the element's ControlTypeId. Section 508 502.3.1
How To Fix: Set a meaningful LocalizedControlType UI Automation property for this element.
This accessibility issue was found using Accessibility Insights for Windows, a tool that helps debug and find accessibility issues earlier. Get more information and download this tool at https://aka.ms/AccessibilityInsights.
Beside automatic issue text above here's the element's details:
The text was updated successfully, but these errors were encountered: