Skip to content

fix: translate expired payment cancellation - #2210

Merged
piotr-iohk merged 3 commits into
masterfrom
codex/translate-expired-payment-2174
Nov 30, 2026
Merged

piotr-iohk merged 3 commits into
masterfrom
codex/translate-expired-payment-2174

Conversation

@piotr-iohk

@piotr-iohk piotr-iohk commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #2174
Twin: synonymdev/bitkit-ios#1558

Description

  • Translate the eight Send Pending cancellation messages in all 15 non-English locale files, including the cancellation prompt, progress, result, and release fee.
  • Use the same wording across shared Android and iOS locales and preserve the {fee} placeholder in every release prompt.

Out of Scope

None.

Design

N/A — no design available.

Preview

Pending a device run with an eligible retained payment.

QA Notes

Setup

Use a disposable wallet on isolated local regtest. Fund its Savings balance and use a controlled debug fixture to retain an on-chain attempt after a broadcast returns an unknown result without submitting to the network. Let the payment request expire, then select a non-English app language before reopening the retained payment in Send Pending. A previous iOS cancellation run describes the unknown-broadcast setup for a force-transfer variant. The standard journey environment lacks the debug fault fixture needed for this case.

Journeys

N/A — not drivable; see Manual Tests.

Manual Tests

  • 1. In Send Pending, open cancellation for the retained expired payment. Verify the action, confirmation title, ordinary-payment note, network check, and release prompt are localized. Verify the prompt shows the calculated fee in sats. This requires the controlled retained-payment fixture above.
  • 2. Authorize release and verify the localized success message. With independent fixture attempts, exercise delayed release confirmation, a payment that may still reach the network, and a sync failure. Verify the corresponding pending, refusal, and sync messages. This requires control of the network and release outcomes.

Automated Checks

  • ran cross-platform resource key, exact wording, and placeholder checks across every locale
  • ran Android AAPT2 compilation of all 16 string files
  • ran git diff --check

Evidence

Targeted checks passed on 6b33a88748. Every locale has all eight new keys, every release prompt has exactly one {fee}, and all shared copy matches across platforms.

Gaps

Manual cases 1 and 2 still need a controlled fixture and a device run. The full Gradle build, unit tests and lint run in hosted CI to conserve host disk and keep ongoing device sessions available.

Models used

  • Planning/scoping: gpt-6.2-sol (reasoning: high)
  • Implementation: gpt-6.2-sol (reasoning: high)
  • Review: gpt-6.2-astra (reasoning: high)
  • Review rounds: 2

@piotr-iohk
piotr-iohk marked this pull request as ready for review November 30, 2026 10:04
@greptile-apps

greptile-apps Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge; no actionable issues were found.RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable issues were found.

Summary

Adds eight expired-payment cancellation messages to all 15 non-English locale files.

  • Expired-payment cancellation now speaks the selected language in 15 more locales.

No actionable issues found. Review was static; no build or device run was performed. The device cases described by the author still require a controlled retained-payment fixture.

Reviews (1) · Last reviewed commit: "chore: rename changelog fragment" · Reviewed by Greptile

@talosmachina talosmachina left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No findings. Adds the eight Send Pending cancellation strings (wallet__send_pending__abandon*) to all 15 non-English values-*/strings.xml files, no code. Reviewed ca057bc, light tier, static (resources only; Bitkit Android branches are not built here).

What I checked, and 3 candidates I ruled out

Parsed: every strings.xml on the head with an XML parser: no duplicate name, 10 send_pending__abandon* keys in each of the 16 files (the two existing exit_note/transfer_note translations plus the 8 new ones).
Call sites: SendPendingScreen.kt reads all eight keys; abandon_release is formatted with .replace("{fee}", ...), so a literal {fee} (not %s) is the right placeholder.
Cross-platform: each new string, unescaped, is identical to the matching wallet__onchain_abandon* value in synonymdev/bitkit-ios#1558 for all 14 shared locales.
CI: the red build and apk-comment jobs are run 46396489457, whose BUILD_RESULT and COMPOSE_RESULT are cancelled, superseded by the newer run; build-and-test, compose-ui and lint were still pending when I looked.

Ruled out

  • Unescaped apostrophe breaking AAPT2: every ' in the new values is written \' (fr, it, ca, pt and the rest); no bare ', ", leading @/?, or %.
  • Missing or doubled {fee}: exactly one {fee} in every abandon_release.
  • Overwriting existing keys: 0 deletions and no duplicate names, so nothing shadowed.

Merge confidence: 4/5, no findings, but the build that compiles these resources had not finished on this head.

@github-actions

Copy link
Copy Markdown
Contributor

Regtest APK

Built from ca057bc (run).

Download bitkit-dev-debug universal APK (expires in 30 days).

@piotr-iohk piotr-iohk self-assigned this Nov 30, 2026

@coreyphillips coreyphillips left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two independent reviews, nothing blocking a merge.

@pwltr pwltr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed ca057bc. No issues found.

The eight strings for cancelling an expired payment are now translated in all 15 locales. Each one matches the English meaning, apostrophes are escaped, and each translation of the fee prompt keeps the {fee} placeholder that Send Pending fills in.

Review details

Quick review: Claude Opus 5.5, high reasoning effort
General review: GPT-6.2 Sol, high reasoning effort

@piotr-iohk
piotr-iohk merged commit b2641a0 into master Nov 30, 2026
35 of 39 checks passed
@piotr-iohk
piotr-iohk deleted the codex/translate-expired-payment-2174 branch November 30, 2026 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: translate the cancel expired payment strings

4 participants