From afdaba10614f191b8fe04ac3aa606bf108e2e3ed Mon Sep 17 00:00:00 2001 From: amnix Date: Tue, 12 Nov 2024 18:09:44 +0900 Subject: [PATCH] added more strings --- .../komoju/android/ui/screens/store/FakeOrderFailedScreen.kt | 4 ++-- example-android/src/main/res/values-ja/strings.xml | 2 ++ example-android/src/main/res/values/strings.xml | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/example-android/src/main/java/com/komoju/android/ui/screens/store/FakeOrderFailedScreen.kt b/example-android/src/main/java/com/komoju/android/ui/screens/store/FakeOrderFailedScreen.kt index 1048642..e24349e 100644 --- a/example-android/src/main/java/com/komoju/android/ui/screens/store/FakeOrderFailedScreen.kt +++ b/example-android/src/main/java/com/komoju/android/ui/screens/store/FakeOrderFailedScreen.kt @@ -55,10 +55,10 @@ private fun FakeOrderFailedScreenContent() { contentDescription = null, ) - Text("Payment Failed", fontSize = 24.sp, fontWeight = FontWeight.Bold) + Text(stringResource(R.string.payment_failed), fontSize = 24.sp, fontWeight = FontWeight.Bold) Spacer(modifier = Modifier.padding(16.dp)) Text( - "Oops! Seems like there was an error placing your order because of a failed payment, please try again or report an issue. If any money is deducted then it will be refunded within 7 days", + stringResource(R.string.payment_failed_description), fontSize = 16.sp, textAlign = TextAlign.Center, ) diff --git a/example-android/src/main/res/values-ja/strings.xml b/example-android/src/main/res/values-ja/strings.xml index 62c93bc..f07d5c2 100644 --- a/example-android/src/main/res/values-ja/strings.xml +++ b/example-android/src/main/res/values-ja/strings.xml @@ -25,5 +25,7 @@ 支払いを再試行する ご注文ありがとうございます。ご注文は確認されました。発送の詳細は、ご登録のメールアドレスにすぐに送信されます。 注文確定 + 支払いに失敗しました + 申し訳ありません!お支払いに失敗したため、ご注文の際にエラーが発生したようです。もう一度お試しいただくか、問題を報告してください。差し引かれた金額は 7 日以内に返金されます。 \ No newline at end of file diff --git a/example-android/src/main/res/values/strings.xml b/example-android/src/main/res/values/strings.xml index 1c0068a..cbb49a6 100644 --- a/example-android/src/main/res/values/strings.xml +++ b/example-android/src/main/res/values/strings.xml @@ -24,4 +24,6 @@ Retry Payment Thank you for your Order, it has been confirmed, Shipping Details will be shared on your registered email address soon Order Confirmed + Payment Failed + Oops! Seems like there was an error placing your order because of a failed payment, please try again or report an issue. If any money is deducted then it will be refunded within 7 days \ No newline at end of file