work on accessibility

This commit is contained in:
Jonas Sourlier 2023-01-25 10:50:01 +01:00
parent 14ef0a2b2a
commit a0fb74a07e
8 changed files with 74 additions and 6 deletions

View file

@ -26,6 +26,7 @@ namespace SafeExamBrowser.I18n.Contracts
Browser_PrintNotAllowed, Browser_PrintNotAllowed,
Browser_Tooltip, Browser_Tooltip,
BrowserWindow_BackwardButton, BrowserWindow_BackwardButton,
BrowserWindow_CloseButton,
BrowserWindow_DeveloperConsoleMenuItem, BrowserWindow_DeveloperConsoleMenuItem,
BrowserWindow_Downloading, BrowserWindow_Downloading,
BrowserWindow_DownloadCancelled, BrowserWindow_DownloadCancelled,
@ -37,6 +38,9 @@ namespace SafeExamBrowser.I18n.Contracts
BrowserWindow_HomeButton, BrowserWindow_HomeButton,
BrowserWindow_MenuButton, BrowserWindow_MenuButton,
BrowserWindow_ReloadButton, BrowserWindow_ReloadButton,
BrowserWindow_SearchNext,
BrowserWindow_SearchPrevious,
BrowserWindow_SearchTextBox,
BrowserWindow_UrlTextBox, BrowserWindow_UrlTextBox,
BrowserWindow_ZoomLevelReset, BrowserWindow_ZoomLevelReset,
BrowserWindow_ZoomMenuItem, BrowserWindow_ZoomMenuItem,

View file

@ -31,7 +31,7 @@
Drucken ist nicht erlaubt gemäss der aktiven Konfiguration. Drucken ist nicht erlaubt gemäss der aktiven Konfiguration.
</Entry> </Entry>
<Entry key="Browser_Tooltip"> <Entry key="Browser_Tooltip">
Browser Applikation Geöffnete Websites
</Entry> </Entry>
<Entry key="BrowserWindow_DeveloperConsoleMenuItem"> <Entry key="BrowserWindow_DeveloperConsoleMenuItem">
Entwickler-Konsole Entwickler-Konsole
@ -69,6 +69,9 @@
<Entry key="BrowserWindow_MenuButton"> <Entry key="BrowserWindow_MenuButton">
Menü Menü
</Entry> </Entry>
<Entry key="BrowserWindow_CloseButton">
Schliessen
</Entry>
<Entry key="BrowserWindow_UrlTextBox"> <Entry key="BrowserWindow_UrlTextBox">
URL eingeben URL eingeben
</Entry> </Entry>
@ -84,6 +87,15 @@
<Entry key="BrowserWindow_ZoomMenuMinus"> <Entry key="BrowserWindow_ZoomMenuMinus">
Zoom verkleinern Zoom verkleinern
</Entry> </Entry>
<Entry key="BrowserWindow_SearchTextBox">
Text eingeben zum Suchen
</Entry>
<Entry key="BrowserWindow_SearchNext">
Nächstes Suchresultat
</Entry>
<Entry key="BrowserWindow_SearchPrevious">
Vorheriges Suchresultat
</Entry>
<Entry key="Build"> <Entry key="Build">
Build Build
</Entry> </Entry>

View file

@ -31,7 +31,7 @@
Printing is not allowed according to the current configuration. Printing is not allowed according to the current configuration.
</Entry> </Entry>
<Entry key="Browser_Tooltip"> <Entry key="Browser_Tooltip">
Browser Application Open Webpages
</Entry> </Entry>
<Entry key="BrowserWindow_DeveloperConsoleMenuItem"> <Entry key="BrowserWindow_DeveloperConsoleMenuItem">
Developer Console Developer Console
@ -69,6 +69,9 @@
<Entry key="BrowserWindow_MenuButton"> <Entry key="BrowserWindow_MenuButton">
Menu Menu
</Entry> </Entry>
<Entry key="BrowserWindow_CloseButton">
Close
</Entry>
<Entry key="BrowserWindow_UrlTextBox"> <Entry key="BrowserWindow_UrlTextBox">
Enter URL Enter URL
</Entry> </Entry>
@ -84,6 +87,15 @@
<Entry key="BrowserWindow_ZoomMenuMinus"> <Entry key="BrowserWindow_ZoomMenuMinus">
Decrease Page Zoom Decrease Page Zoom
</Entry> </Entry>
<Entry key="BrowserWindow_SearchTextBox">
Enter text to search
</Entry>
<Entry key="BrowserWindow_SearchNext">
Next search result
</Entry>
<Entry key="BrowserWindow_SearchPrevious">
Previous search result
</Entry>
<Entry key="Build"> <Entry key="Build">
Build Build
</Entry> </Entry>

View file

@ -34,7 +34,7 @@
Application du navigateur Application du navigateur
</Entry> </Entry>
<Entry key="BrowserWindow_DeveloperConsoleMenuItem"> <Entry key="BrowserWindow_DeveloperConsoleMenuItem">
Console de développement Sites web ouverts
</Entry> </Entry>
<Entry key="BrowserWindow_Downloading"> <Entry key="BrowserWindow_Downloading">
Chargement… Chargement…
@ -69,6 +69,9 @@
<Entry key="BrowserWindow_MenuButton"> <Entry key="BrowserWindow_MenuButton">
Menu Menu
</Entry> </Entry>
<Entry key="BrowserWindow_CloseButton">
Fermer
</Entry>
<Entry key="BrowserWindow_UrlTextBox"> <Entry key="BrowserWindow_UrlTextBox">
Entrer l'URL Entrer l'URL
</Entry> </Entry>
@ -84,6 +87,15 @@
<Entry key="BrowserWindow_ZoomMenuMinus"> <Entry key="BrowserWindow_ZoomMenuMinus">
Diminuer zoom Diminuer zoom
</Entry> </Entry>
<Entry key="BrowserWindow_SearchTextBox">
Saisir du texte pour rechercher
</Entry>
<Entry key="BrowserWindow_SearchNext">
Résultat de recherche prochain
</Entry>
<Entry key="BrowserWindow_SearchPrevious">
Résultat de recherche précédent
</Entry>
<Entry key="Build"> <Entry key="Build">
Build Build
</Entry> </Entry>

View file

@ -34,7 +34,7 @@
Applicazione browser Applicazione browser
</Entry> </Entry>
<Entry key="BrowserWindow_DeveloperConsoleMenuItem"> <Entry key="BrowserWindow_DeveloperConsoleMenuItem">
Console di sviluppo Siti web aperti
</Entry> </Entry>
<Entry key="BrowserWindow_Downloading"> <Entry key="BrowserWindow_Downloading">
Download in corso ... Download in corso ...
@ -69,6 +69,9 @@
<Entry key="BrowserWindow_MenuButton"> <Entry key="BrowserWindow_MenuButton">
Menu Menu
</Entry> </Entry>
<Entry key="BrowserWindow_CloseButton">
Chiudere
</Entry>
<Entry key="BrowserWindow_UrlTextBox"> <Entry key="BrowserWindow_UrlTextBox">
Inserisci URL Inserisci URL
</Entry> </Entry>
@ -84,6 +87,15 @@
<Entry key="BrowserWindow_ZoomMenuMinus"> <Entry key="BrowserWindow_ZoomMenuMinus">
Diminuire zoom Diminuire zoom
</Entry> </Entry>
<Entry key="BrowserWindow_SearchTextBox">
Immettere il testo da cercare
</Entry>
<Entry key="BrowserWindow_SearchNext">
Risultato della ricerca successiva
</Entry>
<Entry key="BrowserWindow_SearchPrevious">
Risultato della ricerca precedente
</Entry>
<Entry key="Build"> <Entry key="Build">
Build Build
</Entry> </Entry>

View file

@ -34,7 +34,7 @@
根据当前配置不允许打印。 根据当前配置不允许打印。
</Entry> </Entry>
<Entry key="Browser_Tooltip"> <Entry key="Browser_Tooltip">
浏览器应用程序 开放网站
</Entry> </Entry>
<Entry key="BrowserWindow_DeveloperConsoleMenuItem"> <Entry key="BrowserWindow_DeveloperConsoleMenuItem">
开发者控制台 开发者控制台
@ -66,6 +66,9 @@
<Entry key="BrowserWindow_MenuButton"> <Entry key="BrowserWindow_MenuButton">
菜单 菜单
</Entry> </Entry>
<Entry key="BrowserWindow_CloseButton">
关闭
</Entry>
<Entry key="BrowserWindow_UrlTextBox"> <Entry key="BrowserWindow_UrlTextBox">
输入网址 输入网址
</Entry> </Entry>
@ -81,6 +84,15 @@
<Entry key="BrowserWindow_ZoomMenuMinus"> <Entry key="BrowserWindow_ZoomMenuMinus">
减少页面缩放 减少页面缩放
</Entry> </Entry>
<Entry key="BrowserWindow_SearchTextBox">
输入文本进行搜索
</Entry>
<Entry key="BrowserWindow_SearchNext">
下一个搜索结果
</Entry>
<Entry key="BrowserWindow_SearchPrevious">
前一个搜索结果
</Entry>
<Entry key="Build"> <Entry key="Build">
生成 生成
</Entry> </Entry>

View file

@ -80,7 +80,7 @@
<ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" x:Name="FindMenuText" HorizontalAlignment="Left" Margin="10,0" VerticalAlignment="Center" /> <TextBlock Grid.Column="0" x:Name="FindMenuText" HorizontalAlignment="Left" Margin="10,0" VerticalAlignment="Center" />
<Button Grid.Column="1" x:Name="FindMenuButton" Margin="5" Padding="5" Template="{StaticResource BrowserButton}" TabIndex="33"> <Button Grid.Column="1" x:Name="FindMenuButton" Margin="5" Padding="5" Template="{StaticResource BrowserButton}" TabIndex="33" AutomationProperties.LabeledBy="{Binding ElementName=FindMenuText}">
<fa:ImageAwesome Icon="Search" /> <fa:ImageAwesome Icon="Search" />
</Button> </Button>
</Grid> </Grid>

View file

@ -654,6 +654,10 @@ if (typeof __SEB_focusElement === 'undefined') {
HomeButton.SetValue(System.Windows.Automation.AutomationProperties.NameProperty, text.Get(TextKey.BrowserWindow_HomeButton)); HomeButton.SetValue(System.Windows.Automation.AutomationProperties.NameProperty, text.Get(TextKey.BrowserWindow_HomeButton));
MenuButton.SetValue(System.Windows.Automation.AutomationProperties.NameProperty, text.Get(TextKey.BrowserWindow_MenuButton)); MenuButton.SetValue(System.Windows.Automation.AutomationProperties.NameProperty, text.Get(TextKey.BrowserWindow_MenuButton));
UrlTextBox.SetValue(System.Windows.Automation.AutomationProperties.NameProperty, text.Get(TextKey.BrowserWindow_UrlTextBox)); 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));
} }
} }
} }