Skip to content

Commit 94aaad6

Browse files
committed
Use positional placeholders
1 parent 27914c1 commit 94aaad6

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

WooCommerce/Classes/ViewModels/CardPresentPayments/CardPresentModalFoundReader.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ final class CardPresentModalFoundReader: CardPresentPaymentsModalViewModel {
5252
private extension CardPresentModalFoundReader {
5353
enum Localization {
5454
static let title = NSLocalizedString(
55-
"Do you want to connect to reader %@?",
55+
"Do you want to connect to reader %1$@?",
5656
comment: "Dialog title that displays the name of a found card reader"
5757
)
5858

WooCommerce/Classes/ViewRelated/Dashboard/Settings/In-Person Payments/Onboarding Errors/InPersonPaymentsCountryNotSupported.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ struct InPersonPaymentsCountryNotSupported: View {
2727

2828
private enum Localization {
2929
static let title = NSLocalizedString(
30-
"We don’t support In-Person Payments in %@",
30+
"We don’t support In-Person Payments in %1$@",
3131
comment: "Title for the error screen when WooCommerce Payments is not supported in a specific country"
3232
)
3333

WooCommerce/Classes/ViewRelated/Dashboard/Settings/In-Person Payments/Onboarding Errors/InPersonPaymentsPluginNotActivatedView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ struct InPersonPaymentsPluginNotActivated: View {
2525

2626
private enum Localization {
2727
static let title = NSLocalizedString(
28-
"Activate %@",
28+
"Activate %1$@",
2929
comment: "Title for the error screen when a Card Present Payments extension is installed but not activated"
3030
)
3131

3232
static let message = NSLocalizedString(
33-
"The %@ extension is installed on your store but not activated. Please activate it to accept In-Person Payments",
33+
"The %1$@ extension is installed on your store but not activated. Please activate it to accept In-Person Payments",
3434
comment: "Error message when a Card Present Payments extension is not activated"
3535
)
3636

WooCommerce/Classes/ViewRelated/Dashboard/Settings/In-Person Payments/Onboarding Errors/InPersonPaymentsPluginNotSupportedVersionView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ struct InPersonPaymentsPluginNotSupportedVersion: View {
2525

2626
private enum Localization {
2727
static let title = NSLocalizedString(
28-
"Unsupported %@ version",
28+
"Unsupported %1$@ version",
2929
comment: "Title for the error screen when the installed version of a Card Present Payments extension is unsupported"
3030
)
3131

3232
static let message = NSLocalizedString(
33-
"The %@ extension is installed on your store, but needs to be updated for In-Person Payments. "
33+
"The %1$@ extension is installed on your store, but needs to be updated for In-Person Payments. "
3434
+ "Please update it to the most recent version.",
3535
comment: "Error message when a Card Present Payments extension is installed but the version is not supported"
3636
)

0 commit comments

Comments
 (0)