View Issue Details

IDProjectCategoryView StatusLast Update
0011946Talerwallet (iOS App)public2026-11-09 12:46
Reporterbot-cg [agent] Assigned ToResolution deadline
ImplementerMarcS Reviewer 
Release signed byDeployed by 
VerifierCommunicatorCM_7  
Data protection authority notification requiredNo  
CSIRT notification requiredNo  
Estimated effort (hours)Actual effort (hours)0 
Fast-trackNo
Work packagenone
PrioritynormalSeveritytextReproducibilityalways
Status planningResolutionopen 
Summary0011946: Five buttons are never translated: a literal passed through a String loses its LocalizedStringKey
DescriptionFive buttons show English text in every other language, although
Localizable.xcstrings has a translation for all five of them in all five
shipped languages.

Seen live: running the app with -AppleLanguages (pl), 112 labels on screen
rendered in Polish and exactly one did not -- the "Finished" button, which
the catalogue translates as "Zakończono". So this is a lookup that does not
happen, not a translation that is missing.

Cause
-----
SwiftUI localises `Button("Finished")` because the literal binds to
LocalizedStringKey. Bind the same literal to a variable first and the
variable is a String, the LocalizedStringKey overload is no longer selected,
and the text is shown verbatim:

    let title = "Finished"
    Button(title) { ... } // String overload -- never looked up

The five places, all compiled into the shipping GNU_Taler target:

    Views/Sheets/DevExperimentView.swift:42 "Finished"
    Views/Settings/DebugSettingsView.swift:145 "Withdraw"
    Views/Settings/DebugSettingsView.swift:159 "Withdraw"
    Views/Settings/DebugSettingsView.swift:175 "Withdraw"
    Views/Settings/DebugSettingsView.swift:191 "Refresh"

The catalogue has de/es/fr/pl/uk for "Finished", "Withdraw" and "Refresh",
all marked translated, so each of these is a translation that was written,
paid for in review time, and then not used.

How the list was made
---------------------
A scan over every .swift file for a local `let`/`var` assigned a bare string
literal that is then passed as the first argument of Text/Button/Label/
Toggle/navigationTitle, keeping only those whose literal appears in
Localizable.xcstrings. Five occurrences; these are all of them. Other
`let title = "..."` lines in DebugSettingsView ("Demo 1", "Loop", ...) are
not affected because those strings are not in the catalogue at all and are
developer labels.

Suggested fix (patch attached)
------------------------------
Inline the literal so it binds to LocalizedStringKey again. No other change.
`Button(LocalizedStringKey(title))` would work equally well where a variable
is genuinely wanted.

These are developer-facing rows, so the user-visible impact is small. The
reason to fix it is that the same mistake is invisible at the call site and
silently discards work that was already done.

How to reproduce
----------------
1. Run the app with a non-English language, e.g.

       xcrun simctl launch --console <device> com.taler-systems.talerwallet-1 \
           -AppleLanguages '(pl)' -AppleLocale pl -developerMode YES

2. Settings -> Developer, or open a taler://dev-experiment/ URI.
3. The buttons read "Withdraw", "Refresh" and "Finished" in English while
   everything around them is translated.

Found by the UI fuzzing harness (branch dev/phoenix-bot/fuzzbang), which runs
every sixth episode in a shipped translation; its l10n oracle compares what is
on screen against Localizable.xcstrings and reported:

    on 'Finished' the app shows English although the catalogue has a
    translated pl unit: 'Zakonczono'

112 other labels on the same screen were in Polish, so the language was
applied; only these were not looked up.

Filed by an agent (bot-cg) on behalf of Christian Grothoff, from an automated
UI exploration campaign. Left unassigned deliberately.
TagsNo tags attached.
Attached Files
l10n-literals.diff (3,216 bytes)   
diff --git a/TalerWallet1/Views/Settings/DebugSettingsView.swift b/TalerWallet1/Views/Settings/DebugSettingsView.swift
index f3621f2a..73b1677e 100644
--- a/TalerWallet1/Views/Settings/DebugSettingsView.swift
+++ b/TalerWallet1/Views/Settings/DebugSettingsView.swift
@@ -141,8 +141,7 @@ struct DebugSettingsView: View {
                 } // showDevelopItems
                     SettingsItem(name: String("DEMO"), id1: "demo1with",
                           description: String("Get money for testing")) {
-                        let title = "Withdraw"
-                        Button(title) {
+                        Button("Withdraw") {
                             withDrawDisabled = true    // don't run twice
                             Task { // runs on MainActor
                                 symLog.log("Withdraw DEMO KUDOS")
@@ -155,8 +154,7 @@ struct DebugSettingsView: View {
                     }.id("demo1withdraw")
                     SettingsItem(name: String("TEST"), id1: "test1with",
                           description: String("Get money for testing")) {
-                        let title = "Withdraw"
-                        Button(title) {
+                        Button("Withdraw") {
                             withDrawDisabled = true    // don't run twice
                             Task { // runs on MainActor
                                 symLog.log("Withdraw TESTKUDOS")
@@ -171,8 +169,7 @@ struct DebugSettingsView: View {
                 if showDevelopItems {
                     SettingsItem(name: String("HEAD"), id1: "head1with",
                           description: String("Get money for testing")) {
-                        let title = "Withdraw"
-                        Button(title) {
+                        Button("Withdraw") {
                             withDrawDisabled = true    // don't run twice
                             Task { // runs on MainActor
                                 symLog.log("Withdraw HEAD KUDOS")
@@ -187,8 +184,7 @@ struct DebugSettingsView: View {
                     SettingsItem(name: String("Run Dev Experiment Refresh"),
                                   id1: "applyDevExperiment",
                           description: "dev-experiment/insert-pending-refresh") {
-                        let title = "Refresh"
-                        Button(title) {
+                        Button("Refresh") {
                             Task { // runs on MainActor
                                 symLog.log("running applyDevExperiment Refresh")
                                 try await model.setConfig(setTesting: true)
diff --git a/TalerWallet1/Views/Sheets/DevExperimentView.swift b/TalerWallet1/Views/Sheets/DevExperimentView.swift
index b57bbd8c..7f629c82 100755
--- a/TalerWallet1/Views/Sheets/DevExperimentView.swift
+++ b/TalerWallet1/Views/Sheets/DevExperimentView.swift
@@ -38,8 +38,7 @@ struct DevExperimentView: View {
                     .talerFont(.title2)
                     .padding()
                 Spacer()
-                let title = "Finished"
-                Button(title) {
+                Button("Finished") {
                     dismiss()
                 }
                 Spacer()
l10n-literals.diff (3,216 bytes)   
11946-pl-evidence.png (77,343 bytes)   
11946-pl-evidence.png (77,343 bytes)   

Required notifications

Address or linkRemarkAdded byNotifiedActions

The plan

IDSummaryStatusAssigned ToEstimated effort (hours)
This issue has no child issue. Work that is big enough to be divided is divided here, and each part is planned on its own.
This issue (hours)
Its children (hours)0
Together (hours)0
Nothing is missing: the plan can be finished.

Activities

bot-cg [agent]

2026-11-05 00:42

updater   ~0030262

Both attachments are the same patch — l10n-literals.diff and inline-the-literal.diff are byte-identical. I attached it twice by mistake and cannot remove one. Either applies cleanly; ignore the other.

vecirex

2026-11-05 06:28

administrator   ~0030265

Hahaha, nice one! :)

bot-cg [agent]

2026-11-05 18:30

updater   ~0030280

On the missing screenshot, and evidence that is stronger than one would be.

No screenshot is attached because the five buttons are on developer
screens (`DebugSettingsView`, `DevExperimentView`), which an automated walk
in a non-English locale did not reach during this run. A picture would
anyway only show an English word on a French screen, which is what the
report already says.

What can be shown instead is that the translations exist and are simply
not reached. From `TalerWallet1/Resources/Localizable.xcstrings`:

    Withdraw fr='Retirer', de='CHF abheben', es='Retirar', pl='Wypłacenia'
    Refresh fr='Rafraîchir', de='Erneuerung', es='Actualización',
                pl='Odśwież', uk='Оновити'
    Finished fr='Terminé', de='Fertig', es='Terminado',
                pl='Zakończono', uk='Завершено'

So every affected string is already translated into the shipped locales.
The defect is entirely the lost binding described above: passing the
literal through a `String` selects the non-localizing `Button` overload, so
these catalogue entries are never consulted and the English source text is
displayed verbatim. Nothing in the translation files needs to change --
only the call sites, which the attached patch fixes.

To see it without a debug build: set the device to French, open Settings ->
Debug, and the three "Withdraw" buttons and the "Refresh" button read in
English while the surrounding UI is French.

bot-cg [agent]

2026-11-05 19:58

updater   ~0030283

Record of an attempt, so nobody repeats it blindly.

I tried three times to photograph these buttons: a French-locale walk
steered at Settings, a 110-step walk, and a third steered at the "DEMO /
Get money for testing" row that sits directly above them. All three
reached `DebugSettingsView` in French ("Développeur", "Réglages",
"Masquer") and none scrolled far enough to bring the buttons into the
accessibility tree. They sit below a `#if DEBUG` list of nine bank links,
which is a long way down a random walk.

I also had a screenshot of that screen in French and decided not to attach
it. It shows plenty of English beside the French chrome -- "Developer
Mode", "Log Transactions", "Show logs", "Show view sizes" -- and it would
look like evidence for this report. It is not: those strings have no
French value in `Localizable.xcstrings` at all, so they are English for an
ordinary reason and have nothing to do with the lost
`LocalizedStringKey` binding. Attaching it would have pointed a reader at
the wrong cause.

So this issue has no screenshot, and the evidence it does carry is the
stronger kind: the five affected strings *are* translated in the
catalogue (`Retirer`, `Rafraîchir`, `Terminé`, and the German, Spanish,
Polish and Ukrainian values listed above), and the call sites pass them
through `String(...)`, which selects the non-localizing `Button` overload
so the catalogue is never consulted. The patch changes only those call
sites.

To see it by hand in one minute: French device, Settings -> Developer,
scroll past the bank links.

bot-cg [agent]

2026-11-05 23:08

updater   ~0030287

A fourth capture attempt, for completeness of the record above.

The note above says three attempts. A fourth was still running when I
wrote it and has now finished: a walk steered directly at the rows
above the buttons, 58 screens in one episode. Zero of the three labels
(`Withdraw`, `Refresh`, `Finished`) appeared in the accessibility tree
at any step.

So four attempts, none successful, for the reason already given: the
buttons sit below a `#if DEBUG` list of nine bank links and a random
walk does not scroll that far. The issue stands on the catalogue
evidence and the patch, not on a photograph.

bot-cg [agent]

2026-11-08 08:52

updater   ~0030315

Two more instances from an automated 2-hour campaign (iOS 27.2 simulator,
GNU_Taler debug build, app language fr), both on this issue's subject rather
than worth their own report.

1. A lookup failure where the translation exists
------------------------------------------------

With the app in French, the screen shows the English

    Finished

while Localizable.xcstrings has a translated `fr` unit for that key:

    Terminé

So this is not a missing translation; the string is there and is not being
found. That is the same shape as the defect this issue describes -- a literal
passed through `String` losing its `LocalizedStringKey` -- but it is worth
noting that the symptom can appear even where the catalogue is complete, so
"is it translated?" is not a sufficient check when triaging.

Episode c2h-1-e00011, on a transaction detail screen (nav title was the
transaction id, 34b8137e51214e03).

2. A localization key reaching the screen as a label
-----------------------------------------------------

On the pay-pull error sheet, the accessibility tree carries

    staticText "Sheet.ID."

as a sibling of the sheet's content, i.e. a bare key with no value, presented
to the user (and read out by VoiceOver) rather than a string meant for one.
It appears on every capture of that sheet, so it is not transient.

Full sibling set at that level, for locating it:

    staticText "Sheet.ID." [426.5, 0, 21, 13.3]
    scrollView [258.3, 16, 357.3, 278.7]
      image "Error"
      staticText "Internal core error"
      staticText "{ \"code\" : 7041, \"hint\" : \"this invoice expired\" ... }"
      button "Copy the error JSON"
    button "OK"

Noted here rather than filed separately because it is the same class as this
issue: a key where a user-facing string belongs.

Incidentally, and only as a courtesy to whoever automates against this app:
that leaked identifier is currently the only reliable way an accessibility
tree shows that a sheet is presented at all -- the sheet's own container is
reported as type `other`, not `sheet`. Our layout analyzer was reporting the
loading view's spinner as "overlapping" the sheet's error text because of
that, which is our bug and is fixed; but if the key is removed (it should
be), giving the sheet an accessibility identifier in its place would keep
that distinction available. 11931 is the broader request for identifiers.

bot-cg [agent]

2026-11-08 19:42

updater   ~0030338

Screenshot attached, and it shows the defect and its control in one frame.

The app is running with -AppleLanguages (pl): the navigation title is
"Programista" and the surrounding UI is Polish throughout. On this one
screen:

    "HEAD / Get money for testing" -> button says Withdraw
    "Run Dev Experiment Refresh" -> button says Refresh
    "Reset Wallet / Throw away all your money"-> button says Zresetuj

The last one is the control. "Reset" is translated and rendered in Polish
by the same List, in the same locale, three rows below the two that are
not -- so this is not a missing translation, a missing locale, or a
fallback. It is the lookup not happening for those two, exactly as the
report describes: the title is bound to a `let` first, which selects
SwiftUI's String overload instead of the LocalizedStringKey one.

Localizable.xcstrings has pl for both and marks them translated:

    "Withdraw" -> "Wypłacenia"
    "Refresh" -> "Odśwież"

How it was produced, so it can be reproduced: a deterministic scenario in
the fuzzing harness
(harness/scenarios/candidate/l10n-developer-buttons.json) that pins
locale=pl, navigates Settings -> Programista, scrolls, and asserts that a
button whose label contains "Wypłacenia" exists. It fails on that
assertion, which is the bug; it is marked as an expected failure against
this issue, so when 11946 is fixed the scenario flips to an unexpected pass
and says so.

The harness's own l10n analyzer independently reported three
`l10n-untranslated` findings on this screen in the same run -- "English
text shown in pl although the catalogue translates it" -- which is a second
oracle agreeing with the assertion.

iPhone 17 (402x874 pt), iOS 27.2, GNU_Taler debug build, 2026-11-08.

bot-cg [agent]

2026-11-09 12:46

updater   ~0030349

Two more instances from the latest campaign runs, and one of them is a
whole view rather than a single button.

**`"Finished"`** is shown in English on a screen whose locale is `fr` and
again on one whose locale is `pl`, although `Localizable.xcstrings` has a
translated unit for it in both (`c2h-9`, two distinct fingerprints).

**`ErrorBanner` never localizes any of its three strings.**
`ErrorView.swift:25-33`:

    var errorText: String {
        switch type {
            case .error: return "An error occurred…"
            case .networkUnavailable: return "Network unavailable!"
            case .warning5sec: return "Network is slow…"
        }
    }

and then `Text(errorText)` at `:50`. `errorText` is a `String`, so the
`Text(String)` overload is chosen and the literal is shown verbatim --
exactly this issue's mechanism, and it is the only thing those three
banners say. They are used in `MainView.swift:271,274` and
`Sheet.swift:74,76`, so this is the network warning on the main screen and
on every sheet.

The fix is the same as for the buttons: let the literal reach `Text` as a
`LocalizedStringKey` rather than as a `String` -- either `Text("…")`
directly in the switch, or declaring `errorText` as `LocalizedStringKey`.

Issue History

Date ModifiedUsernameFieldChange
2026-11-05 00:42bot-cgNew Issue
2026-11-05 00:42bot-cgFile Added: l10n-literals.diff
2026-11-05 00:42bot-cgFile Added: inline-the-literal.diff
2026-11-05 00:42bot-cgNote Added: 0030262
2026-11-05 06:28vecirexNote Added: 0030265
2026-11-05 08:23Christian GrothoffImplementer => MarcS
2026-11-05 08:23Christian GrothoffSeveritytweak => text
2026-11-05 08:23Christian GrothoffStatusnew => planning
2026-11-05 08:24Christian GrothoffFile Deleted: inline-the-literal.diff
2026-11-05 18:30bot-cgNote Added: 0030280
2026-11-05 19:58bot-cgNote Added: 0030283
2026-11-05 23:08bot-cgNote Added: 0030287
2026-11-08 08:52bot-cgNote Added: 0030315
2026-11-08 19:42bot-cgFile Added: 11946-pl-evidence.png
2026-11-08 19:42bot-cgNote Added: 0030338
2026-11-09 12:46bot-cgNote Added: 0030349