Skip to content

Commit 05cec1a

Browse files
authored
Remove escaped unicode U+2011 character in localized string (#8220)
2 parents 609cad7 + ff571c7 commit 05cec1a

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

WooCommerce/Classes/ViewModels/CardPresentPayments/CardPresentModalScanningForReader.swift

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,33 +81,39 @@ private extension CardPresentModalScanningForReader {
8181

8282
enum Localization {
8383
static let title = NSLocalizedString(
84-
"Scanning for reader",
84+
"cardPresent.modalScanningForReader.title",
85+
value: "Scanning for reader",
8586
comment: "Title label for modal dialog that appears when searching for a card reader"
8687
)
8788

8889
static let instruction = NSLocalizedString(
89-
"To turn on your card reader, briefly press its power button.",
90+
"cardPresent.modalScanningForReader.instruction",
91+
value: "To turn on your card reader, briefly press its power button.",
9092
comment: "Label within the modal dialog that appears when searching for a card reader"
9193
)
9294

9395
static let cancel = NSLocalizedString(
94-
"Cancel",
96+
"cardPresent.modalScanningForReader.cancelButton",
97+
value: "Cancel",
9598
comment: "Label for a cancel button"
9699
)
97100

98101
static let learnMoreLink = NSLocalizedString(
99-
"Learn more",
102+
"cardPresent.modalScanningForReader.learnMore.link",
103+
value: "Learn more",
100104
comment: """
101105
A label prompting users to learn more about In-Person Payments.
102106
This is the link to the website, and forms part of a longer sentence which it should be considered a part of.
103107
"""
104108
)
105109

106110
static let learnMoreText = NSLocalizedString(
107-
"%1$@ about In\u{2011}Person Payments",
111+
"cardPresent.modalScanningForReader.learnMore.text",
112+
value: "%1$@ about In‑Person Payments",
108113
comment: """
109114
A label prompting users to learn more about In-Person Payments.
110-
\u{2011} is a special character that acts as nonbreaking hyphen for "-" in the "In-Person" string.
115+
The hyphen in "In‑Person" is a non-breaking hyphen (U+2011).
116+
If your translation of that term also happens to contains a hyphen, please be sure to use the non-breaking hyphen character for it.
111117
%1$@ is a placeholder that always replaced with \"Learn more\" string,
112118
which should be translated separately and considered part of this sentence.
113119
"""

0 commit comments

Comments
 (0)