Skip to content

Commit 0916f3c

Browse files
committed
Update the accessibility strings in scanner information modal to increase understanding
1 parent 9158f0c commit 0916f3c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

WooCommerce/Classes/POS/Presentation/PointOfSaleBarcodeScannerInformationModal.swift

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ struct PointOfSaleBarcodeScannerInformationModal: View {
4343
}
4444

4545
private var bulletPointWithLinkAccessibilityLabel: String {
46-
return Localization.barcodeInfoPrimaryMessageAccessible + " " + Localization.barcodeInfoMoreDetailsLink
46+
return Localization.barcodeInfoPrimaryMessageAccessible + " " + Localization.barcodeInfoMoreDetailsLinkAccessible
4747
}
4848
}
4949

@@ -73,6 +73,11 @@ private extension PointOfSaleBarcodeScannerInformationModal {
7373
value: "More details.",
7474
comment: "Link text in the barcode info modal in POS, leading to more details about barcode setup"
7575
)
76+
static let barcodeInfoMoreDetailsLinkAccessible = NSLocalizedString(
77+
"pos.barcodeInfoModal.moreDetailsLink.accessible",
78+
value: "More details, link.",
79+
comment: "Accessible version of more details link in barcode info modal, announcing it as a link for screen readers"
80+
)
7681
static let barcodeInfoSecondaryMessage = NSLocalizedString(
7782
"pos.barcodeInfoModal.secondaryMessage",
7883
value: "• Refer to your Bluetooth barcode scanner's instructions to set HID mode.",
@@ -98,12 +103,12 @@ private extension PointOfSaleBarcodeScannerInformationModal {
98103
// Accessibility-friendly versions without bullet points
99104
static let barcodeInfoPrimaryMessageAccessible = NSLocalizedString(
100105
"pos.barcodeInfoModal.primaryMessage.accessible",
101-
value: "First: Set up barcodes in the \"GTIN, UPC, EAN, ISBN\" field in Products > Product Details > Inventory.",
106+
value: "First: Set up barcodes in the \"G-T-I-N, U-P-C, E-A-N, I-S-B-N\" field by navigating to Products, then Product Details, then Inventory.",
102107
comment: "Accessible version of primary bullet point in barcode info modal, without bullet character for screen readers"
103108
)
104109
static let barcodeInfoSecondaryMessageAccessible = NSLocalizedString(
105110
"pos.barcodeInfoModal.secondaryMessage.accessible",
106-
value: "Second: Refer to your Bluetooth barcode scanner's instructions to set HID mode.",
111+
value: "Second: Refer to your Bluetooth barcode scanner's instructions to set H-I-D mode.",
107112
comment: "Accessible version of secondary bullet point in barcode info modal, without bullet character for screen readers"
108113
)
109114
static let barcodeInfoTertiaryMessageAccessible = NSLocalizedString(

0 commit comments

Comments
 (0)