@@ -51,7 +51,7 @@ struct POSIneligibleView: View {
5151 }
5252 }
5353 } label: {
54- Text ( Localization . refreshEligibility )
54+ Text ( reason . refreshEligibilityTitle )
5555 }
5656 . buttonStyle ( POSFilledButtonStyle ( size: . normal, isLoading: isLoading) )
5757 . renderedIf ( reason. shouldShowRetryButton)
@@ -91,9 +91,9 @@ struct POSIneligibleView: View {
9191 value: " Install and activate the WooCommerce plugin from your WordPress admin. " ,
9292 comment: " Suggestion for missing WooCommerce plugin: install plugin " )
9393 case . featureSwitchDisabled:
94- return NSLocalizedString ( " pos.ineligible.suggestion.featureSwitchDisabled " ,
94+ return NSLocalizedString ( " pos.ineligible.suggestion.featureSwitchDisabled.2 " ,
9595 value: " Point of Sale must be enabled to proceed. " +
96- " Please enable the POS feature from your WordPress admin under WooCommerce settings > Advanced > Features." ,
96+ " You can enable the POS feature below or from your WordPress admin under WooCommerce settings > Advanced > Features." ,
9797 comment: " Suggestion for disabled feature switch: enable feature in WooCommerce settings " )
9898 case let . unsupportedCurrency( supportedCurrencies) :
9999 let currencyList = supportedCurrencies. map { $0. rawValue }
@@ -127,12 +127,6 @@ private extension POSIneligibleView {
127127 comment: " Title shown in POS ineligible view "
128128 )
129129
130- static let refreshEligibility = NSLocalizedString (
131- " pos.ineligible.refresh.button.title " ,
132- value: " Retry " ,
133- comment: " Button title to refresh POS eligibility check "
134- )
135-
136130 static let dismiss = NSLocalizedString (
137131 " pos.ineligible.dismiss.button.title " ,
138132 value: " Exit POS " ,
@@ -156,6 +150,28 @@ private extension POSIneligibleReason {
156150 return true
157151 }
158152 }
153+
154+ var refreshEligibilityTitle : String {
155+ switch self {
156+ case . featureSwitchDisabled:
157+ return NSLocalizedString (
158+ " pos.ineligible.enable.pos.feature.and.refresh.button.title " ,
159+ value: " Enable POS & Retry " ,
160+ comment: " Button title to enable the POS feature switch and refresh POS eligibility check "
161+ )
162+ case . unsupportedIOSVersion,
163+ . unsupportedWooCommerceVersion,
164+ . siteSettingsNotAvailable,
165+ . wooCommercePluginNotFound,
166+ . unsupportedCurrency,
167+ . selfDeallocated:
168+ return NSLocalizedString (
169+ " pos.ineligible.refresh.button.title " ,
170+ value: " Retry " ,
171+ comment: " Button title to refresh POS eligibility check "
172+ )
173+ }
174+ }
159175}
160176
161177#if DEBUG
0 commit comments