@@ -112,8 +112,8 @@ struct POSIneligibleView: View {
112112 private var suggestionText : String {
113113 switch reason {
114114 case . unsupportedIOSVersion:
115- return NSLocalizedString ( " pos.ineligible.suggestion.unsupportedIOSVersion " ,
116- value: " Point of Sale requires iOS 17 or later. Please update your device to iOS 17+ to use this feature." ,
115+ return NSLocalizedString ( " pos.ineligible.suggestion.unsupportedIOSVersion.1 " ,
116+ value: " The POS system requires iOS 17 or later. Please update your device to iOS 17+ to use this feature." ,
117117 comment: " Suggestion for unsupported iOS version: update iOS " )
118118 case let . unsupportedWooCommerceVersion( minimumVersion) :
119119 let format = NSLocalizedString ( " pos.ineligible.suggestion.unsupportedWooCommerceVersion " ,
@@ -123,29 +123,32 @@ struct POSIneligibleView: View {
123123 " %1$@ is a placeholder for the minimum required version. " )
124124 return String . localizedStringWithFormat ( format, minimumVersion)
125125 case . wooCommercePluginNotFound:
126- return NSLocalizedString ( " pos.ineligible.suggestion.wooCommercePluginNotFound.2 " ,
127- value: " Please make sure the WooCommerce plugin is installed and activated from your WordPress admin. " +
128- " If there is still an issue, please contact support for assistance. " ,
126+ return NSLocalizedString ( " pos.ineligible.suggestion.wooCommercePluginNotFound.3 " ,
127+ value: " We were unable to load the WooCommerce plugin info. Please make sure the WooCommerce plugin is installed " +
128+ " and activated from your WordPress admin. If there is still an issue, contact support for assistance." ,
129129 comment: " Suggestion for missing WooCommerce plugin: install plugin " )
130130 case . featureSwitchDisabled:
131- return NSLocalizedString ( " pos.ineligible.suggestion.featureSwitchDisabled.2 " ,
131+ return NSLocalizedString ( " pos.ineligible.suggestion.featureSwitchDisabled.3 " ,
132132 value: " Point of Sale must be enabled to proceed. " +
133- " You can enable the POS feature below or from your WordPress admin under WooCommerce settings > Advanced > Features. " ,
133+ " Please enable the POS feature below or from your WordPress admin under WooCommerce settings > Advanced > Features " +
134+ " and try again. " ,
134135 comment: " Suggestion for disabled feature switch: enable feature in WooCommerce settings " )
135- case let . unsupportedCurrency( supportedCurrencies) :
136+ case let . unsupportedCurrency( countryCode , supportedCurrencies) :
136137 let currencyList = supportedCurrencies. map { $0. rawValue }
137138 let formattedCurrencyList = ListFormatter . localizedString ( byJoining: currencyList)
138139 let format = NSLocalizedString (
139- " pos.ineligible.suggestion.unsupportedCurrency " ,
140- value: " The POS system is not available for your store’s currency. It currently supports only %1 $@. " +
140+ " pos.ineligible.suggestion.unsupportedCurrency.1 " ,
141+ value: " The POS system is not available for your store’s currency. In %1$@, it currently supports only %2 $@. " +
141142 " Please check your store currency settings or contact support for assistance. " ,
142143 comment: " Suggestion for unsupported currency with list of supported currencies. " +
143- " %1$@ is a placeholder for the localized list of supported currency codes. "
144+ " %1$@ is a placeholder for the localized country name, " +
145+ " and %2$@ is a placeholder for the localized list of supported currency codes. "
144146 )
145- return String . localizedStringWithFormat ( format, formattedCurrencyList)
147+ return String . localizedStringWithFormat ( format, countryCode . readableCountry , formattedCurrencyList)
146148 case . siteSettingsNotAvailable:
147- return NSLocalizedString ( " pos.ineligible.suggestion.siteSettingsNotAvailable " ,
148- value: " Check your internet connection and try again. If the issue persists, please contact support. " ,
149+ return NSLocalizedString ( " pos.ineligible.suggestion.siteSettingsNotAvailable.1 " ,
150+ value: " We were unable to load the site settings info. Please check your internet connection and try again. " +
151+ " If the issue persists, contact support for assistance. " ,
149152 comment: " Suggestion for site settings unavailable: check connection or contact support " )
150153 case . selfDeallocated:
151154 return NSLocalizedString ( " pos.ineligible.suggestion.selfDeallocated " ,
@@ -192,8 +195,8 @@ private extension POSIneligibleReason {
192195 switch self {
193196 case . featureSwitchDisabled:
194197 return NSLocalizedString (
195- " pos.ineligible.enable.pos.feature.and.refresh.button.title " ,
196- value: " Enable POS & Retry " ,
198+ " pos.ineligible.enable.pos.feature.and.refresh.button.title.1 " ,
199+ value: " Enable POS feature " ,
197200 comment: " Button title to enable the POS feature switch and refresh POS eligibility check "
198201 )
199202 case . unsupportedIOSVersion,
@@ -216,7 +219,7 @@ private extension POSIneligibleReason {
216219#Preview( " Unsupported currency " ) {
217220 if #available( iOS 17 . 0 , * ) {
218221 POSIneligibleView (
219- reason: . unsupportedCurrency( supportedCurrencies: [ . USD] ) ,
222+ reason: . unsupportedCurrency( countryCode : . US , supportedCurrencies: [ . USD] ) ,
220223 onRefresh: { }
221224 )
222225 }
0 commit comments