travel: fix refunded_to_your format arg crash
- Commit
c1b066664e82d6650cd6dc61bf99c57d77b7ec67- Author
- Vayun Mathur <[email protected]>
- When
- 2026-11-07 03:51 UTC (29 days ago)
- Parents
ffe7359
The string used %2$s but CancellationPage passes a single format argument, so rendering a cancellation quote threw MissingFormatArgumentException. Use %1$s.
Diff
travel/src/main/res/values/strings.xml
diff --git a/travel/src/main/res/values/strings.xml b/travel/src/main/res/values/strings.xmlindex e5e23bf7e3..cd2e78bce4 100644--- a/travel/src/main/res/values/strings.xml+++ b/travel/src/main/res/values/strings.xml@@ -301,7 +301,7 @@ <!-- Quote detail: refund amount %1$s issued to destination %2$s (e.g. original payment) --> <string name="refund_of_issued_to_your">Refund of <xliff:g id="amount" example="$120.00">%1$s</xliff:g> issued to your <xliff:g id="destination" example="original payment">%2$s</xliff:g>.</string> <!-- Quote detail: refund destination only when refundTo payment method known. %1$s = e.g. original payment -->- <string name="refunded_to_your">Refunded to your <xliff:g id="destination" example="original payment">%2$s</xliff:g>.</string>+ <string name="refunded_to_your">Refunded to your <xliff:g id="destination" example="original payment">%1$s</xliff:g>.</string> <!-- Fallback noun for refund destination: original payment method. Lowercase --> <string name="original_payment">original payment</string> <!-- Success headline after cancellation API call succeeded -->