From 30b65028fe340d73cdcbfe7cd95a29844b4d0aef Mon Sep 17 00:00:00 2001 From: Alekhya Date: Wed, 5 Aug 2020 13:43:47 -0700 Subject: [PATCH] Fix Code Related PT Run Accessibility issues (#5610) * set the name automation properties for the result elements * Added name properties to search box * removed the name for the grid * localized the automation property names of the launcher control * Localized the automation name property for the result list * Uncommented out the Hide() function which was commented out to run Accessibility Insights * modified resources from static to dynamic * reverted access modifier to internal as we are no longer using this * updated csproj file --- .../launcher/PowerLauncher/Languages/da.xaml | 12 +++++++++++ .../launcher/PowerLauncher/Languages/de.xaml | 12 +++++++++++ .../launcher/PowerLauncher/Languages/en.xaml | 12 +++++++++++ .../launcher/PowerLauncher/Languages/fr.xaml | 12 +++++++++++ .../launcher/PowerLauncher/Languages/it.xaml | 12 +++++++++++ .../launcher/PowerLauncher/Languages/ja.xaml | 12 +++++++++++ .../launcher/PowerLauncher/Languages/ko.xaml | 12 +++++++++++ .../PowerLauncher/Languages/nb-NO.xaml | 12 +++++++++++ .../launcher/PowerLauncher/Languages/nl.xaml | 12 +++++++++++ .../launcher/PowerLauncher/Languages/pl.xaml | 12 +++++++++++ .../PowerLauncher/Languages/pt-br.xaml | 12 +++++++++++ .../launcher/PowerLauncher/Languages/ru.xaml | 12 +++++++++++ .../launcher/PowerLauncher/Languages/sk.xaml | 12 +++++++++++ .../launcher/PowerLauncher/Languages/sr.xaml | 12 +++++++++++ .../launcher/PowerLauncher/Languages/tr.xaml | 12 +++++++++++ .../PowerLauncher/Languages/uk-UA.xaml | 12 +++++++++++ .../PowerLauncher/Languages/zh-cn.xaml | 12 +++++++++++ .../PowerLauncher/Languages/zh-tw.xaml | 12 +++++++++++ .../PowerLauncher/LauncherControl.xaml | 2 ++ .../PowerLauncher/PowerLauncher.csproj | 15 ++++++++++++++ .../Properties/Resources.Designer.cs | 8 ++++---- .../launcher/PowerLauncher/ResultList.xaml | 20 ++++++++++--------- 22 files changed, 248 insertions(+), 13 deletions(-) diff --git a/src/modules/launcher/PowerLauncher/Languages/da.xaml b/src/modules/launcher/PowerLauncher/Languages/da.xaml index ea9c3b185a..7b699dfe44 100644 --- a/src/modules/launcher/PowerLauncher/Languages/da.xaml +++ b/src/modules/launcher/PowerLauncher/Languages/da.xaml @@ -128,4 +128,16 @@ Opdatereringsfiler Opdateringsbeskrivelse + + Application Icon + Context Menu Item + Context Menu Item Additional Information + Context Menu Icon + Context Menu Items Collection + Query + Results + Search Icon + Subtitle + Title + diff --git a/src/modules/launcher/PowerLauncher/Languages/de.xaml b/src/modules/launcher/PowerLauncher/Languages/de.xaml index 50cb9d7840..4f4fb863ca 100644 --- a/src/modules/launcher/PowerLauncher/Languages/de.xaml +++ b/src/modules/launcher/PowerLauncher/Languages/de.xaml @@ -127,5 +127,17 @@ Folgende Dateien werden aktualisiert Aktualisiere Dateien Aktualisierungbeschreibung + + + Application Icon + Context Menu Item + Context Menu Item Additional Information + Context Menu Icon + Context Menu Items Collection + Query + Results + Search Icon + Subtitle + Title \ No newline at end of file diff --git a/src/modules/launcher/PowerLauncher/Languages/en.xaml b/src/modules/launcher/PowerLauncher/Languages/en.xaml index 91924fc2dc..fca648f18e 100644 --- a/src/modules/launcher/PowerLauncher/Languages/en.xaml +++ b/src/modules/launcher/PowerLauncher/Languages/en.xaml @@ -142,4 +142,16 @@ Update files Update description + + Application Icon + Context Menu Item + Context Menu Item Additional Information + Context Menu Icon + Context Menu Items Collection + Query + Results + Search Icon + Subtitle + Title + \ No newline at end of file diff --git a/src/modules/launcher/PowerLauncher/Languages/fr.xaml b/src/modules/launcher/PowerLauncher/Languages/fr.xaml index 2f32b2529d..f2d3a2241c 100644 --- a/src/modules/launcher/PowerLauncher/Languages/fr.xaml +++ b/src/modules/launcher/PowerLauncher/Languages/fr.xaml @@ -133,5 +133,17 @@ Les fichiers suivants seront mis à jour Fichiers mis à jour Description de la mise à jour + + + Application Icon + Context Menu Item + Context Menu Item Additional Information + Context Menu Icon + Context Menu Items Collection + Query + Results + Search Icon + Subtitle + Title diff --git a/src/modules/launcher/PowerLauncher/Languages/it.xaml b/src/modules/launcher/PowerLauncher/Languages/it.xaml index 8348c2ba0e..406d94391a 100644 --- a/src/modules/launcher/PowerLauncher/Languages/it.xaml +++ b/src/modules/launcher/PowerLauncher/Languages/it.xaml @@ -137,4 +137,16 @@ File aggiornati Descrizione aggiornamento + + Application Icon + Context Menu Item + Context Menu Item Additional Information + Context Menu Icon + Context Menu Items Collection + Query + Results + Search Icon + Subtitle + Title + \ No newline at end of file diff --git a/src/modules/launcher/PowerLauncher/Languages/ja.xaml b/src/modules/launcher/PowerLauncher/Languages/ja.xaml index fe6c8327c6..587f817f41 100644 --- a/src/modules/launcher/PowerLauncher/Languages/ja.xaml +++ b/src/modules/launcher/PowerLauncher/Languages/ja.xaml @@ -139,5 +139,17 @@ 次のファイルがアップデートされます 更新ファイル一覧 アップデートの詳細 + + + Application Icon + Context Menu Item + Context Menu Item Additional Information + Context Menu Icon + Context Menu Items Collection + Query + Results + Search Icon + Subtitle + Title \ No newline at end of file diff --git a/src/modules/launcher/PowerLauncher/Languages/ko.xaml b/src/modules/launcher/PowerLauncher/Languages/ko.xaml index ec9144a5e3..18e7180485 100644 --- a/src/modules/launcher/PowerLauncher/Languages/ko.xaml +++ b/src/modules/launcher/PowerLauncher/Languages/ko.xaml @@ -132,4 +132,16 @@ 업데이트 파일 업데이트 설명 + + Application Icon + Context Menu Item + Context Menu Item Additional Information + Context Menu Icon + Context Menu Items Collection + Query + Results + Search Icon + Subtitle + Title + \ No newline at end of file diff --git a/src/modules/launcher/PowerLauncher/Languages/nb-NO.xaml b/src/modules/launcher/PowerLauncher/Languages/nb-NO.xaml index 0efb609b01..9ff5997e1b 100644 --- a/src/modules/launcher/PowerLauncher/Languages/nb-NO.xaml +++ b/src/modules/launcher/PowerLauncher/Languages/nb-NO.xaml @@ -137,4 +137,16 @@ Oppdateringsfiler Oppdateringsbeskrivelse + + Application Icon + Context Menu Item + Context Menu Item Additional Information + Context Menu Icon + Context Menu Items Collection + Query + Results + Search Icon + Subtitle + Title + diff --git a/src/modules/launcher/PowerLauncher/Languages/nl.xaml b/src/modules/launcher/PowerLauncher/Languages/nl.xaml index 14d4af9fa5..f47900ca90 100644 --- a/src/modules/launcher/PowerLauncher/Languages/nl.xaml +++ b/src/modules/launcher/PowerLauncher/Languages/nl.xaml @@ -128,4 +128,16 @@ Update bestanden Update beschrijving + + Application Icon + Context Menu Item + Context Menu Item Additional Information + Context Menu Icon + Context Menu Items Collection + Query + Results + Search Icon + Subtitle + Title + diff --git a/src/modules/launcher/PowerLauncher/Languages/pl.xaml b/src/modules/launcher/PowerLauncher/Languages/pl.xaml index ee763a89fe..6e7aa147ca 100644 --- a/src/modules/launcher/PowerLauncher/Languages/pl.xaml +++ b/src/modules/launcher/PowerLauncher/Languages/pl.xaml @@ -128,4 +128,16 @@ Aktualizuj pliki Opis aktualizacji + + Application Icon + Context Menu Item + Context Menu Item Additional Information + Context Menu Icon + Context Menu Items Collection + Query + Results + Search Icon + Subtitle + Title + \ No newline at end of file diff --git a/src/modules/launcher/PowerLauncher/Languages/pt-br.xaml b/src/modules/launcher/PowerLauncher/Languages/pt-br.xaml index af5445a361..91f20296a6 100644 --- a/src/modules/launcher/PowerLauncher/Languages/pt-br.xaml +++ b/src/modules/launcher/PowerLauncher/Languages/pt-br.xaml @@ -137,4 +137,16 @@ Atualizar arquivos Atualizar descrição + + Application Icon + Context Menu Item + Context Menu Item Additional Information + Context Menu Icon + Context Menu Items Collection + Query + Results + Search Icon + Subtitle + Title + \ No newline at end of file diff --git a/src/modules/launcher/PowerLauncher/Languages/ru.xaml b/src/modules/launcher/PowerLauncher/Languages/ru.xaml index 4c1fec75aa..14abbe08f6 100644 --- a/src/modules/launcher/PowerLauncher/Languages/ru.xaml +++ b/src/modules/launcher/PowerLauncher/Languages/ru.xaml @@ -127,5 +127,17 @@ Следующие файлы будут обновлены Обновить файлы Описание обновления + + + Application Icon + Context Menu Item + Context Menu Item Additional Information + Context Menu Icon + Context Menu Items Collection + Query + Results + Search Icon + Subtitle + Title \ No newline at end of file diff --git a/src/modules/launcher/PowerLauncher/Languages/sk.xaml b/src/modules/launcher/PowerLauncher/Languages/sk.xaml index 97e1165d76..81f8f4e773 100644 --- a/src/modules/launcher/PowerLauncher/Languages/sk.xaml +++ b/src/modules/launcher/PowerLauncher/Languages/sk.xaml @@ -138,4 +138,16 @@ Aktualizovať súbory Aktualizovať popis + + Application Icon + Context Menu Item + Context Menu Item Additional Information + Context Menu Icon + Context Menu Items Collection + Query + Results + Search Icon + Subtitle + Title + \ No newline at end of file diff --git a/src/modules/launcher/PowerLauncher/Languages/sr.xaml b/src/modules/launcher/PowerLauncher/Languages/sr.xaml index 8e2597dc83..234c4b1937 100644 --- a/src/modules/launcher/PowerLauncher/Languages/sr.xaml +++ b/src/modules/launcher/PowerLauncher/Languages/sr.xaml @@ -137,4 +137,16 @@ Ažuriraj datoteke Opis ažuriranja + + Application Icon + Context Menu Item + Context Menu Item Additional Information + Context Menu Icon + Context Menu Items Collection + Query + Results + Search Icon + Subtitle + Title + \ No newline at end of file diff --git a/src/modules/launcher/PowerLauncher/Languages/tr.xaml b/src/modules/launcher/PowerLauncher/Languages/tr.xaml index 9a353bbb97..2fe6602cc3 100644 --- a/src/modules/launcher/PowerLauncher/Languages/tr.xaml +++ b/src/modules/launcher/PowerLauncher/Languages/tr.xaml @@ -141,4 +141,16 @@ Güncellenecek dosyalar Güncelleme açıklaması + + Application Icon + Context Menu Item + Context Menu Item Additional Information + Context Menu Icon + Context Menu Items Collection + Query + Results + Search Icon + Subtitle + Title + \ No newline at end of file diff --git a/src/modules/launcher/PowerLauncher/Languages/uk-UA.xaml b/src/modules/launcher/PowerLauncher/Languages/uk-UA.xaml index c26a0c75d2..15263ad1b4 100644 --- a/src/modules/launcher/PowerLauncher/Languages/uk-UA.xaml +++ b/src/modules/launcher/PowerLauncher/Languages/uk-UA.xaml @@ -128,4 +128,16 @@ Оновити файли Опис оновлення + + Application Icon + Context Menu Item + Context Menu Item Additional Information + Context Menu Icon + Context Menu Items Collection + Query + Results + Search Icon + Subtitle + Title + \ No newline at end of file diff --git a/src/modules/launcher/PowerLauncher/Languages/zh-cn.xaml b/src/modules/launcher/PowerLauncher/Languages/zh-cn.xaml index c2428e329e..0351f419db 100644 --- a/src/modules/launcher/PowerLauncher/Languages/zh-cn.xaml +++ b/src/modules/launcher/PowerLauncher/Languages/zh-cn.xaml @@ -135,4 +135,16 @@ 更新文件 更新日志 + + Application Icon + Context Menu Item + Context Menu Item Additional Information + Context Menu Icon + Context Menu Items Collection + Query + Results + Search Icon + Subtitle + Title + \ No newline at end of file diff --git a/src/modules/launcher/PowerLauncher/Languages/zh-tw.xaml b/src/modules/launcher/PowerLauncher/Languages/zh-tw.xaml index 1b3030fa79..4d12820bc4 100644 --- a/src/modules/launcher/PowerLauncher/Languages/zh-tw.xaml +++ b/src/modules/launcher/PowerLauncher/Languages/zh-tw.xaml @@ -128,4 +128,16 @@ 更新檔案 更新日誌 + + Application Icon + Context Menu Item + Context Menu Item Additional Information + Context Menu Icon + Context Menu Items Collection + Query + Results + Search Icon + Subtitle + Title + diff --git a/src/modules/launcher/PowerLauncher/LauncherControl.xaml b/src/modules/launcher/PowerLauncher/LauncherControl.xaml index 2302388399..bf1a888948 100644 --- a/src/modules/launcher/PowerLauncher/LauncherControl.xaml +++ b/src/modules/launcher/PowerLauncher/LauncherControl.xaml @@ -92,6 +92,7 @@ --> + + + True + True + Resources.resx + + + + + + ResXFileCodeGenerator + Resources.Designer.cs + + + PreserveNewest diff --git a/src/modules/launcher/PowerLauncher/Properties/Resources.Designer.cs b/src/modules/launcher/PowerLauncher/Properties/Resources.Designer.cs index 26a9ddff90..be290c64e7 100644 --- a/src/modules/launcher/PowerLauncher/Properties/Resources.Designer.cs +++ b/src/modules/launcher/PowerLauncher/Properties/Resources.Designer.cs @@ -8,7 +8,7 @@ // //------------------------------------------------------------------------------ -namespace Wox.Properties { +namespace PowerLauncher.Properties { using System; @@ -39,7 +39,7 @@ namespace Wox.Properties { internal static global::System.Resources.ResourceManager ResourceManager { get { if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Wox.Properties.Resources", typeof(Resources).Assembly); + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("PowerLauncher.Properties.Resources", typeof(Resources).Assembly); resourceMan = temp; } return resourceMan; @@ -63,9 +63,9 @@ namespace Wox.Properties { /// /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). /// - internal static System.Drawing.Icon app { + internal static System.Drawing.Icon placeholderLauncher { get { - object obj = ResourceManager.GetObject("app", resourceCulture); + object obj = ResourceManager.GetObject("placeholderLauncher", resourceCulture); return ((System.Drawing.Icon)(obj)); } } diff --git a/src/modules/launcher/PowerLauncher/ResultList.xaml b/src/modules/launcher/PowerLauncher/ResultList.xaml index 4a60b64df7..187a0cc892 100644 --- a/src/modules/launcher/PowerLauncher/ResultList.xaml +++ b/src/modules/launcher/PowerLauncher/ResultList.xaml @@ -160,13 +160,14 @@ ScrollViewer.VerticalScrollBarVisibility="Auto" SelectionMode="Single" SelectedIndex="{Binding Results.SelectedIndex, Mode=TwoWay}" - ItemContainerStyle="{StaticResource ResultsListViewItemContainerStyle}"> + ItemContainerStyle="{StaticResource ResultsListViewItemContainerStyle}" + AutomationProperties.Name="{DynamicResource Results}"> - + - - - - + + + -