From a0fb74a07ea930b60997d2e060b84a19d2b19281 Mon Sep 17 00:00:00 2001 From: Jonas Sourlier Date: Wed, 25 Jan 2023 10:50:01 +0100 Subject: [PATCH] work on accessibility --- SafeExamBrowser.I18n.Contracts/TextKey.cs | 4 ++++ SafeExamBrowser.I18n/Data/de.xml | 14 +++++++++++++- SafeExamBrowser.I18n/Data/en.xml | 14 +++++++++++++- SafeExamBrowser.I18n/Data/fr.xml | 14 +++++++++++++- SafeExamBrowser.I18n/Data/it.xml | 14 +++++++++++++- SafeExamBrowser.I18n/Data/zh.xml | 14 +++++++++++++- .../Windows/BrowserWindow.xaml | 2 +- .../Windows/BrowserWindow.xaml.cs | 4 ++++ 8 files changed, 74 insertions(+), 6 deletions(-) diff --git a/SafeExamBrowser.I18n.Contracts/TextKey.cs b/SafeExamBrowser.I18n.Contracts/TextKey.cs index b45a251b..da2ce5a7 100644 --- a/SafeExamBrowser.I18n.Contracts/TextKey.cs +++ b/SafeExamBrowser.I18n.Contracts/TextKey.cs @@ -26,6 +26,7 @@ namespace SafeExamBrowser.I18n.Contracts Browser_PrintNotAllowed, Browser_Tooltip, BrowserWindow_BackwardButton, + BrowserWindow_CloseButton, BrowserWindow_DeveloperConsoleMenuItem, BrowserWindow_Downloading, BrowserWindow_DownloadCancelled, @@ -37,6 +38,9 @@ namespace SafeExamBrowser.I18n.Contracts BrowserWindow_HomeButton, BrowserWindow_MenuButton, BrowserWindow_ReloadButton, + BrowserWindow_SearchNext, + BrowserWindow_SearchPrevious, + BrowserWindow_SearchTextBox, BrowserWindow_UrlTextBox, BrowserWindow_ZoomLevelReset, BrowserWindow_ZoomMenuItem, diff --git a/SafeExamBrowser.I18n/Data/de.xml b/SafeExamBrowser.I18n/Data/de.xml index 2e56014f..f5449e50 100644 --- a/SafeExamBrowser.I18n/Data/de.xml +++ b/SafeExamBrowser.I18n/Data/de.xml @@ -31,7 +31,7 @@ Drucken ist nicht erlaubt gemäss der aktiven Konfiguration. - Browser Applikation + Geöffnete Websites Entwickler-Konsole @@ -69,6 +69,9 @@ Menü + + Schliessen + URL eingeben @@ -84,6 +87,15 @@ Zoom verkleinern + + Text eingeben zum Suchen + + + Nächstes Suchresultat + + + Vorheriges Suchresultat + Build diff --git a/SafeExamBrowser.I18n/Data/en.xml b/SafeExamBrowser.I18n/Data/en.xml index c4c35e5d..df82cb90 100644 --- a/SafeExamBrowser.I18n/Data/en.xml +++ b/SafeExamBrowser.I18n/Data/en.xml @@ -31,7 +31,7 @@ Printing is not allowed according to the current configuration. - Browser Application + Open Webpages Developer Console @@ -69,6 +69,9 @@ Menu + + Close + Enter URL @@ -84,6 +87,15 @@ Decrease Page Zoom + + Enter text to search + + + Next search result + + + Previous search result + Build diff --git a/SafeExamBrowser.I18n/Data/fr.xml b/SafeExamBrowser.I18n/Data/fr.xml index a630e7cd..f0d73ffa 100644 --- a/SafeExamBrowser.I18n/Data/fr.xml +++ b/SafeExamBrowser.I18n/Data/fr.xml @@ -34,7 +34,7 @@ Application du navigateur - Console de développement + Sites web ouverts Chargement… @@ -69,6 +69,9 @@ Menu + + Fermer + Entrer l'URL @@ -84,6 +87,15 @@ Diminuer zoom + + Saisir du texte pour rechercher + + + Résultat de recherche prochain + + + Résultat de recherche précédent + Build diff --git a/SafeExamBrowser.I18n/Data/it.xml b/SafeExamBrowser.I18n/Data/it.xml index c916323b..20fc8a4e 100644 --- a/SafeExamBrowser.I18n/Data/it.xml +++ b/SafeExamBrowser.I18n/Data/it.xml @@ -34,7 +34,7 @@ Applicazione browser - Console di sviluppo + Siti web aperti Download in corso ... @@ -69,6 +69,9 @@ Menu + + Chiudere + Inserisci URL @@ -84,6 +87,15 @@ Diminuire zoom + + Immettere il testo da cercare + + + Risultato della ricerca successiva + + + Risultato della ricerca precedente + Build diff --git a/SafeExamBrowser.I18n/Data/zh.xml b/SafeExamBrowser.I18n/Data/zh.xml index 72cec036..f6f972ca 100644 --- a/SafeExamBrowser.I18n/Data/zh.xml +++ b/SafeExamBrowser.I18n/Data/zh.xml @@ -34,7 +34,7 @@ 根据当前配置不允许打印。 - 浏览器应用程序 + 开放网站 开发者控制台 @@ -66,6 +66,9 @@ 菜单 + + 关闭 + 输入网址 @@ -81,6 +84,15 @@ 减少页面缩放 + + 输入文本进行搜索 + + + 下一个搜索结果 + + + 前一个搜索结果 + 生成 diff --git a/SafeExamBrowser.UserInterface.Desktop/Windows/BrowserWindow.xaml b/SafeExamBrowser.UserInterface.Desktop/Windows/BrowserWindow.xaml index cd4b266d..a7a7753b 100644 --- a/SafeExamBrowser.UserInterface.Desktop/Windows/BrowserWindow.xaml +++ b/SafeExamBrowser.UserInterface.Desktop/Windows/BrowserWindow.xaml @@ -80,7 +80,7 @@ - diff --git a/SafeExamBrowser.UserInterface.Desktop/Windows/BrowserWindow.xaml.cs b/SafeExamBrowser.UserInterface.Desktop/Windows/BrowserWindow.xaml.cs index 1ce456c3..8cea8688 100644 --- a/SafeExamBrowser.UserInterface.Desktop/Windows/BrowserWindow.xaml.cs +++ b/SafeExamBrowser.UserInterface.Desktop/Windows/BrowserWindow.xaml.cs @@ -654,6 +654,10 @@ if (typeof __SEB_focusElement === 'undefined') { HomeButton.SetValue(System.Windows.Automation.AutomationProperties.NameProperty, text.Get(TextKey.BrowserWindow_HomeButton)); MenuButton.SetValue(System.Windows.Automation.AutomationProperties.NameProperty, text.Get(TextKey.BrowserWindow_MenuButton)); UrlTextBox.SetValue(System.Windows.Automation.AutomationProperties.NameProperty, text.Get(TextKey.BrowserWindow_UrlTextBox)); + FindTextBox.SetValue(System.Windows.Automation.AutomationProperties.NameProperty, text.Get(TextKey.BrowserWindow_SearchTextBox)); + FindPreviousButton.SetValue(System.Windows.Automation.AutomationProperties.NameProperty, text.Get(TextKey.BrowserWindow_SearchPrevious)); + FindNextButton.SetValue(System.Windows.Automation.AutomationProperties.NameProperty, text.Get(TextKey.BrowserWindow_SearchNext)); + FindbarCloseButton.SetValue(System.Windows.Automation.AutomationProperties.NameProperty, text.Get(TextKey.BrowserWindow_CloseButton)); } } }