Skip to content

Commit 257be72

Browse files
authored
Merge release/23.2 into trunk (#16101)
2 parents df47d32 + b0e2478 commit 257be72

35 files changed

+157
-118
lines changed

Modules/Sources/NetworkingCore/ApplicationPassword/ApplicationPasswordUseCase.swift

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ import enum Alamofire.AFError
33
import struct Alamofire.HTTPMethod
44
import KeychainAccess
55

6-
#if canImport(UIKit)
6+
#if !os(watchOS)
77
import UIKit
8+
#else
9+
import WatchKit
810
#endif
911

1012
public enum ApplicationPasswordUseCaseError: Error {
@@ -148,13 +150,16 @@ final public class DefaultApplicationPasswordUseCase: ApplicationPasswordUseCase
148150
private extension DefaultApplicationPasswordUseCase {
149151
/// Helper method to create password name from device
150152
static func createPasswordName() -> String {
151-
#if !os(watchOS)
152153
let bundleIdentifier = Bundle.main.bundleIdentifier ?? "Unknown"
154+
#if !os(watchOS)
153155
let model = UIDevice.current.model
154156
let identifierForVendor = UIDevice.current.identifierForVendor?.uuidString ?? ""
155157
return "\(bundleIdentifier).ios-app-client.\(model).\(identifierForVendor)"
156158
#else
157-
fatalError("Unexpected error: Application password should not be generated through watch app")
159+
let model = WKInterfaceDevice.current().model
160+
let identifierForVendor =
161+
WKInterfaceDevice.current().identifierForVendor?.uuidString ?? ""
162+
return "\(bundleIdentifier).watch-app-client.\(model).\(identifierForVendor)"
158163
#endif
159164
}
160165

WooCommerce/Resources/ar.lproj/Localizable.strings

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9419,15 +9419,9 @@ which should be translated separately and considered part of this sentence. */
94199419
/* Error message when collecting an In-Person Payment and the order total has changed remotely. */
94209420
"collectOrderPaymentUseCase.error.message.orderTotalChanged" = "شهد إجمالي الطلبات تغييرًا منذ بداية الدفع. يرجى الرجوع والتحقق من أن الطلب صحيح، ثم محاولة الدفع مجددًا.";
94219421

9422-
/* Error message when the cash amount entered is less than the order total. */
9423-
"collectcashviewhelper.cashpaymentamountnotenough.errormessage" = "يجب أن يكون المبلغ أكبر من الإجمالي أو يساويه.";
9424-
94259422
/* Change due when the cash amount entered exceeds the order total.Reads as 'Change due: $1.23' */
94269423
"collectcashviewhelper.changedue" = "التغيير المستحق: %1$@";
94279424

9428-
/* Error message when the system fails to collect a cash payment. */
9429-
"collectcashviewhelper.failedtocollectcashpayment.errormessage" = "خطأ في أثناء محاولة معالجة المدفوعات. حاول مرة أخرى.";
9430-
94319425
/* Accessibility hint for selecting a product in the Add Product screen */
94329426
"configurationForBlaze.productRowAccessibilityHint" = "يُحدِّد المنتج لحملة Blaze.";
94339427

WooCommerce/Resources/de.lproj/Localizable.strings

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9428,15 +9428,9 @@ which should be translated separately and considered part of this sentence. */
94289428
/* Error message when collecting an In-Person Payment and the order total has changed remotely. */
94299429
"collectOrderPaymentUseCase.error.message.orderTotalChanged" = "Die Gesamtbestellsumme hat sich seit Beginn deiner Zahlung geändert. Gehe zurück und überprüfe, ob deine Bestellung korrekt ist. Versuche dann erneut, die Zahlung vorzunehmen.";
94309430

9431-
/* Error message when the cash amount entered is less than the order total. */
9432-
"collectcashviewhelper.cashpaymentamountnotenough.errormessage" = "Der Betrag muss größer oder gleich der Gesamtsumme sein.";
9433-
94349431
/* Change due when the cash amount entered exceeds the order total.Reads as 'Change due: $1.23' */
94359432
"collectcashviewhelper.changedue" = "Fälliges Wechselgeld: %1$@";
94369433

9437-
/* Error message when the system fails to collect a cash payment. */
9438-
"collectcashviewhelper.failedtocollectcashpayment.errormessage" = "Fehler beim Verarbeiten der Zahlung. Versuche es erneut.";
9439-
94409434
/* Accessibility hint for selecting a product in the Add Product screen */
94419435
"configurationForBlaze.productRowAccessibilityHint" = "Wählt ein Produkt für die Blaze-Kampagne aus.";
94429436

WooCommerce/Resources/es.lproj/Localizable.strings

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9428,15 +9428,9 @@ which should be translated separately and considered part of this sentence. */
94289428
/* Error message when collecting an In-Person Payment and the order total has changed remotely. */
94299429
"collectOrderPaymentUseCase.error.message.orderTotalChanged" = "El total del pedido ha cambiado desde el inicio del pago. Vuelve y comprueba que el pedido sea correcto; después, vuelve a intentar el pago.";
94309430

9431-
/* Error message when the cash amount entered is less than the order total. */
9432-
"collectcashviewhelper.cashpaymentamountnotenough.errormessage" = "El importe debe ser superior o igual al total.";
9433-
94349431
/* Change due when the cash amount entered exceeds the order total.Reads as 'Change due: $1.23' */
94359432
"collectcashviewhelper.changedue" = "El cambio vence el %1$@";
94369433

9437-
/* Error message when the system fails to collect a cash payment. */
9438-
"collectcashviewhelper.failedtocollectcashpayment.errormessage" = "Se ha producido un error al procesar el pago. Inténtalo de nuevo.";
9439-
94409434
/* Accessibility hint for selecting a product in the Add Product screen */
94419435
"configurationForBlaze.productRowAccessibilityHint" = "Selecciona el producto para la campaña Blaze.";
94429436

WooCommerce/Resources/fr.lproj/Localizable.strings

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9428,15 +9428,9 @@ which should be translated separately and considered part of this sentence. */
94289428
/* Error message when collecting an In-Person Payment and the order total has changed remotely. */
94299429
"collectOrderPaymentUseCase.error.message.orderTotalChanged" = "Le total de la commande a changé depuis l’initiation du paiement. Veuillez revenir en arrière, vérifier l’exactitude la commande puis retenter le paiement.";
94309430

9431-
/* Error message when the cash amount entered is less than the order total. */
9432-
"collectcashviewhelper.cashpaymentamountnotenough.errormessage" = "Le montant doit être supérieur ou égal au total.";
9433-
94349431
/* Change due when the cash amount entered exceeds the order total.Reads as 'Change due: $1.23' */
94359432
"collectcashviewhelper.changedue" = "Rendu : %1$@";
94369433

9437-
/* Error message when the system fails to collect a cash payment. */
9438-
"collectcashviewhelper.failedtocollectcashpayment.errormessage" = "Erreur lors de la tentative de traitement du paiement. Veuillez réessayer.";
9439-
94409434
/* Accessibility hint for selecting a product in the Add Product screen */
94419435
"configurationForBlaze.productRowAccessibilityHint" = "Sélectionnez un produit pour la campagne Blaze.";
94429436

WooCommerce/Resources/he.lproj/Localizable.strings

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9428,15 +9428,9 @@ which should be translated separately and considered part of this sentence. */
94289428
/* Error message when collecting an In-Person Payment and the order total has changed remotely. */
94299429
"collectOrderPaymentUseCase.error.message.orderTotalChanged" = "סך כל ההזמנה שונה מתחילת תהליך התשלום. יש לחזור אחורה ולוודא שפרטי ההזמנה נכונים ולנסות לשלם שוב.";
94309430

9431-
/* Error message when the cash amount entered is less than the order total. */
9432-
"collectcashviewhelper.cashpaymentamountnotenough.errormessage" = "הסכום חייב להיות גדול או שווה לסך הכולל.";
9433-
94349431
/* Change due when the cash amount entered exceeds the order total.Reads as 'Change due: $1.23' */
94359432
"collectcashviewhelper.changedue" = "העודף הנדרש: %1$@";
94369433

9437-
/* Error message when the system fails to collect a cash payment. */
9438-
"collectcashviewhelper.failedtocollectcashpayment.errormessage" = "שגיאה בניסיון לעבד את התשלום. יש לנסות שוב.";
9439-
94409434
/* Accessibility hint for selecting a product in the Add Product screen */
94419435
"configurationForBlaze.productRowAccessibilityHint" = "בוחר מוצר לקמפיין של Blaze.";
94429436

WooCommerce/Resources/id.lproj/Localizable.strings

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9425,15 +9425,9 @@ which should be translated separately and considered part of this sentence. */
94259425
/* Error message when collecting an In-Person Payment and the order total has changed remotely. */
94269426
"collectOrderPaymentUseCase.error.message.orderTotalChanged" = "Total pesanan telah berubah sejak awal pembayaran. Silakan kembali dan periksa apakah pesanan sudah benar, lalu coba pembayaran lagi.";
94279427

9428-
/* Error message when the cash amount entered is less than the order total. */
9429-
"collectcashviewhelper.cashpaymentamountnotenough.errormessage" = "Jumlah harus lebih dari atau sama dengan jumlah total.";
9430-
94319428
/* Change due when the cash amount entered exceeds the order total.Reads as 'Change due: $1.23' */
94329429
"collectcashviewhelper.changedue" = "Kembalian terutang: %1$@";
94339430

9434-
/* Error message when the system fails to collect a cash payment. */
9435-
"collectcashviewhelper.failedtocollectcashpayment.errormessage" = "Terjadi error saat memproses pembayaran. Coba lagi.";
9436-
94379431
/* Accessibility hint for selecting a product in the Add Product screen */
94389432
"configurationForBlaze.productRowAccessibilityHint" = "Pilih produk untuk kampanye Blaze.";
94399433

WooCommerce/Resources/it.lproj/Localizable.strings

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9428,15 +9428,9 @@ which should be translated separately and considered part of this sentence. */
94289428
/* Error message when collecting an In-Person Payment and the order total has changed remotely. */
94299429
"collectOrderPaymentUseCase.error.message.orderTotalChanged" = "Il totale dell'ordine è cambiato dall'inizio del pagamento. Torna indietro e controlla che l'ordine sia corretto, quindi riprova il pagamento.";
94309430

9431-
/* Error message when the cash amount entered is less than the order total. */
9432-
"collectcashviewhelper.cashpaymentamountnotenough.errormessage" = "L'importo deve essere maggiore o uguale al totale.";
9433-
94349431
/* Change due when the cash amount entered exceeds the order total.Reads as 'Change due: $1.23' */
94359432
"collectcashviewhelper.changedue" = "Resto dovuto: %1$@";
94369433

9437-
/* Error message when the system fails to collect a cash payment. */
9438-
"collectcashviewhelper.failedtocollectcashpayment.errormessage" = "Errore durante l'elaborazione del pagamento. Riprova.";
9439-
94409434
/* Accessibility hint for selecting a product in the Add Product screen */
94419435
"configurationForBlaze.productRowAccessibilityHint" = "Seleziona il prodotto per la campagna Blaze.";
94429436

WooCommerce/Resources/ja.lproj/Localizable.strings

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9428,15 +9428,9 @@ which should be translated separately and considered part of this sentence. */
94289428
/* Error message when collecting an In-Person Payment and the order total has changed remotely. */
94299429
"collectOrderPaymentUseCase.error.message.orderTotalChanged" = "支払い開始以降に注文合計額が変更されました。 戻って注文が正しいことを確認してから、もう一度お支払いをお試しください。";
94309430

9431-
/* Error message when the cash amount entered is less than the order total. */
9432-
"collectcashviewhelper.cashpaymentamountnotenough.errormessage" = "金額は合計以上でなければなりません。";
9433-
94349431
/* Change due when the cash amount entered exceeds the order total.Reads as 'Change due: $1.23' */
94359432
"collectcashviewhelper.changedue" = "変更期限: %1$@";
94369433

9437-
/* Error message when the system fails to collect a cash payment. */
9438-
"collectcashviewhelper.failedtocollectcashpayment.errormessage" = "支払いを処理しようとしたところ、エラーが発生しました。 もう一度お試しください。";
9439-
94409434
/* Accessibility hint for selecting a product in the Add Product screen */
94419435
"configurationForBlaze.productRowAccessibilityHint" = "Blaze キャンペーンの製品を選択します。";
94429436

WooCommerce/Resources/ko.lproj/Localizable.strings

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9428,15 +9428,9 @@ which should be translated separately and considered part of this sentence. */
94289428
/* Error message when collecting an In-Person Payment and the order total has changed remotely. */
94299429
"collectOrderPaymentUseCase.error.message.orderTotalChanged" = "결제를 시작한 이후로 주문 총액이 변경되었습니다. 돌아가서 주문이 정확한지 확인하고 다시 결제를 시도해 주세요.";
94309430

9431-
/* Error message when the cash amount entered is less than the order total. */
9432-
"collectcashviewhelper.cashpaymentamountnotenough.errormessage" = "금액은 총액 이상이어야 합니다.";
9433-
94349431
/* Change due when the cash amount entered exceeds the order total.Reads as 'Change due: $1.23' */
94359432
"collectcashviewhelper.changedue" = "변경 기한: %1$@";
94369433

9437-
/* Error message when the system fails to collect a cash payment. */
9438-
"collectcashviewhelper.failedtocollectcashpayment.errormessage" = "결제 처리 시도 중 오류가 발생했습니다. 다시 시도하세요.";
9439-
94409434
/* Accessibility hint for selecting a product in the Add Product screen */
94419435
"configurationForBlaze.productRowAccessibilityHint" = "Blaze 캠페인용 상품을 선택합니다.";
94429436

0 commit comments

Comments
 (0)