Fix missing accessible button name in dialer #LINQT-2221

This commit is contained in:
Alexandre Jörgensen 2026-01-02 11:43:17 +01:00
parent 4c97be177c
commit 09f0462a52
5 changed files with 124 additions and 18 deletions

View file

@ -1026,31 +1026,31 @@
<context>
<name>CallHistoryListView</name>
<message>
<location filename="../../view/Control/Display/Call/CallHistoryListView.qml" line="232"/>
<location filename="../../view/Control/Display/Call/CallHistoryListView.qml" line="234"/>
<source>call_name_accessible_button</source>
<extracomment>Call %1</extracomment>
<translation>Anruf %1</translation>
</message>
<message>
<location filename="../../view/Control/Display/Call/CallHistoryListView.qml" line="266"/>
<location filename="../../view/Control/Display/Call/CallHistoryListView.qml" line="268"/>
<source>call_history_entry_accessible_name</source>
<extracomment>%1 - %2 - %3 - right arrow for call-back button</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../view/Control/Display/Call/CallHistoryListView.qml" line="268"/>
<location filename="../../view/Control/Display/Call/CallHistoryListView.qml" line="270"/>
<source>notification_missed_call_title</source>
<extracomment>&quot;Appel manqué&quot;</extracomment>
<translation type="unfinished">Verpasster Anruf</translation>
</message>
<message>
<location filename="../../view/Control/Display/Call/CallHistoryListView.qml" line="270"/>
<location filename="../../view/Control/Display/Call/CallHistoryListView.qml" line="272"/>
<source>call_outgoing</source>
<extracomment>&quot;Appel sortant&quot;</extracomment>
<translation type="unfinished">Ausgehender Anruf</translation>
</message>
<message>
<location filename="../../view/Control/Display/Call/CallHistoryListView.qml" line="272"/>
<location filename="../../view/Control/Display/Call/CallHistoryListView.qml" line="274"/>
<source>call_audio_incoming</source>
<extracomment>&quot;Appel entrant&quot;</extracomment>
<translation type="unfinished">Eingehender Anruf</translation>
@ -5104,6 +5104,36 @@ Ablauf: %1</translation>
<translation>Neue Nachricht im Chat %1</translation>
</message>
</context>
<context>
<name>NumericPad</name>
<message>
<location filename="../../view/Control/Input/NumericPad.qml" line="157"/>
<source>numpad_longpress_accessible_name</source>
<extracomment>%1 longpress %2</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../view/Control/Input/NumericPad.qml" line="203"/>
<source>call_accessible_name</source>
<extracomment>Call</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../view/Control/Input/NumericPad.qml" line="228"/>
<source>erase_accessible_name</source>
<extracomment>Erase</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>NumericPadPopup</name>
<message>
<location filename="../../view/Control/Popup/NumericPadPopup.qml" line="69"/>
<source>close_numeric_pad_accessible_name</source>
<extracomment>Close numeric pad</extracomment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OIDCModel</name>
<message>

View file

@ -1007,31 +1007,31 @@
<context>
<name>CallHistoryListView</name>
<message>
<location filename="../../view/Control/Display/Call/CallHistoryListView.qml" line="232"/>
<location filename="../../view/Control/Display/Call/CallHistoryListView.qml" line="234"/>
<source>call_name_accessible_button</source>
<extracomment>Call %1</extracomment>
<translation>Call %1</translation>
</message>
<message>
<location filename="../../view/Control/Display/Call/CallHistoryListView.qml" line="266"/>
<location filename="../../view/Control/Display/Call/CallHistoryListView.qml" line="268"/>
<source>call_history_entry_accessible_name</source>
<extracomment>%1 - %2 - %3 - right arrow for call-back button</extracomment>
<translation>%1 - %2 - %3 - right arrow for call-back button</translation>
</message>
<message>
<location filename="../../view/Control/Display/Call/CallHistoryListView.qml" line="268"/>
<location filename="../../view/Control/Display/Call/CallHistoryListView.qml" line="270"/>
<source>notification_missed_call_title</source>
<extracomment>&quot;Appel manqué&quot;</extracomment>
<translation>Missed call</translation>
</message>
<message>
<location filename="../../view/Control/Display/Call/CallHistoryListView.qml" line="270"/>
<location filename="../../view/Control/Display/Call/CallHistoryListView.qml" line="272"/>
<source>call_outgoing</source>
<extracomment>&quot;Appel sortant&quot;</extracomment>
<translation>Outgoing call</translation>
</message>
<message>
<location filename="../../view/Control/Display/Call/CallHistoryListView.qml" line="272"/>
<location filename="../../view/Control/Display/Call/CallHistoryListView.qml" line="274"/>
<source>call_audio_incoming</source>
<extracomment>&quot;Appel entrant&quot;</extracomment>
<translation>Incoming call</translation>
@ -4993,6 +4993,36 @@ Expiration : %1</translation>
<translation>New message on chatroom %1</translation>
</message>
</context>
<context>
<name>NumericPad</name>
<message>
<location filename="../../view/Control/Input/NumericPad.qml" line="157"/>
<source>numpad_longpress_accessible_name</source>
<extracomment>%1 longpress %2</extracomment>
<translation>%1 longpress %2</translation>
</message>
<message>
<location filename="../../view/Control/Input/NumericPad.qml" line="203"/>
<source>call_accessible_name</source>
<extracomment>Call</extracomment>
<translation>Call</translation>
</message>
<message>
<location filename="../../view/Control/Input/NumericPad.qml" line="228"/>
<source>erase_accessible_name</source>
<extracomment>Erase</extracomment>
<translation>Erase</translation>
</message>
</context>
<context>
<name>NumericPadPopup</name>
<message>
<location filename="../../view/Control/Popup/NumericPadPopup.qml" line="69"/>
<source>close_numeric_pad_accessible_name</source>
<extracomment>Close numeric pad</extracomment>
<translation>Close numeric pad</translation>
</message>
</context>
<context>
<name>OIDCModel</name>
<message>

View file

@ -1002,31 +1002,31 @@
<context>
<name>CallHistoryListView</name>
<message>
<location filename="../../view/Control/Display/Call/CallHistoryListView.qml" line="232"/>
<location filename="../../view/Control/Display/Call/CallHistoryListView.qml" line="234"/>
<source>call_name_accessible_button</source>
<extracomment>Call %1</extracomment>
<translation>Appeler %1</translation>
</message>
<message>
<location filename="../../view/Control/Display/Call/CallHistoryListView.qml" line="266"/>
<location filename="../../view/Control/Display/Call/CallHistoryListView.qml" line="268"/>
<source>call_history_entry_accessible_name</source>
<extracomment>%1 - %2 - %3 - right arrow for call-back button</extracomment>
<translation>%1 - %2 - %3 - flèche droite pour bouton de rappel</translation>
</message>
<message>
<location filename="../../view/Control/Display/Call/CallHistoryListView.qml" line="268"/>
<location filename="../../view/Control/Display/Call/CallHistoryListView.qml" line="270"/>
<source>notification_missed_call_title</source>
<extracomment>&quot;Appel manqué&quot;</extracomment>
<translation>Appel manqué</translation>
</message>
<message>
<location filename="../../view/Control/Display/Call/CallHistoryListView.qml" line="270"/>
<location filename="../../view/Control/Display/Call/CallHistoryListView.qml" line="272"/>
<source>call_outgoing</source>
<extracomment>&quot;Appel sortant&quot;</extracomment>
<translation>Appel sortant</translation>
</message>
<message>
<location filename="../../view/Control/Display/Call/CallHistoryListView.qml" line="272"/>
<location filename="../../view/Control/Display/Call/CallHistoryListView.qml" line="274"/>
<source>call_audio_incoming</source>
<extracomment>&quot;Appel entrant&quot;</extracomment>
<translation>Appel entrant</translation>
@ -4988,6 +4988,36 @@ Expiration : %1</translation>
<translation>Nouveau message sur la conversation %1</translation>
</message>
</context>
<context>
<name>NumericPad</name>
<message>
<location filename="../../view/Control/Input/NumericPad.qml" line="157"/>
<source>numpad_longpress_accessible_name</source>
<extracomment>%1 longpress %2</extracomment>
<translation>%1 appui long %2</translation>
</message>
<message>
<location filename="../../view/Control/Input/NumericPad.qml" line="203"/>
<source>call_accessible_name</source>
<extracomment>Call</extracomment>
<translation>Appeler</translation>
</message>
<message>
<location filename="../../view/Control/Input/NumericPad.qml" line="228"/>
<source>erase_accessible_name</source>
<extracomment>Erase</extracomment>
<translation>Effacer</translation>
</message>
</context>
<context>
<name>NumericPadPopup</name>
<message>
<location filename="../../view/Control/Popup/NumericPadPopup.qml" line="69"/>
<source>close_numeric_pad_accessible_name</source>
<extracomment>Close numeric pad</extracomment>
<translation>Fermer le pavé numérique</translation>
</message>
</context>
<context>
<name>OIDCModel</name>
<message>

View file

@ -153,6 +153,9 @@ FocusScope {
radius: Utils.getSizeWithScreenRatio(71)
style: ButtonStyle.numericPad
//: %1 longpress %2
Accessible.name: longPressText.text ? qsTr("numpad_longpress_accessible_name").arg(pressText.text).arg(longPressText.text) : pressText.text
contentItem: Item {
anchors.fill: parent
Text {
@ -195,7 +198,10 @@ FocusScope {
icon.height: Utils.getSizeWithScreenRatio(32)
radius: Utils.getSizeWithScreenRatio(71)
style: ButtonStyle.phoneGreen
//: Call
Accessible.name: qsTr("call_accessible_name")
onClicked: mainItem.launchCall()
KeyNavigation.left: eraseButton
@ -218,6 +224,9 @@ FocusScope {
Layout.Layout.preferredWidth: Utils.getSizeWithScreenRatio(38)
Layout.Layout.preferredHeight: Utils.getSizeWithScreenRatio(38)
//: Erase
Accessible.name: qsTr("erase_accessible_name")
onClicked: mainItem.wipe()
KeyNavigation.left: launchCallButton
@ -225,8 +234,13 @@ FocusScope {
KeyNavigation.up: numPadGrid.getButtonAt(11)
KeyNavigation.down: numPadGrid.getButtonAt(1)
background: Item {
visible: false
background: Rectangle {
width: eraseButton.width
height: eraseButton.height
color: "transparent"
border.color: eraseButton.keyboardFocus ? eraseButton.keyboardFocusedBorderColor : "transparent"
border.width: eraseButton.keyboardFocus ? eraseButton.keyboardFocusedBorderWidth : eraseButton.borderWidth
}
}
}

View file

@ -65,6 +65,8 @@ Control.Popup {
icon.height: Utils.getSizeWithScreenRatio(24)
style: ButtonStyle.noBackground
onClicked: mainItem.close()
//: Close numeric pad
Accessible.name: qsTr("close_numeric_pad_accessible_name")
}
}
contentItem: NumericPad{