Skip to content

Tell translators what the auth code wait strings hold - #53

Merged
hatstand merged 2 commits into
mainfrom
claude/auth-code-string-context-5aq9e3
Oct 22, 2026
Merged

hatstand merged 2 commits into
mainfrom
claude/auth-code-string-context-5aq9e3

Conversation

@hatstand

Copy link
Copy Markdown
Contributor

Requested by John · project thread

The iOS half of clementine-player/Android-Remote#354, which gives the Android copies of these strings the same notes.

A translator on Transifex asked what goes in the placeholder of the "too many wrong auth codes" sentences. This adds a translator comment on both sentences and on "a while". The comment says the placeholder is the wait ("10 seconds", "1 minute", "3 minutes", "2 hours", or "a while"). Here the wait comes from Duration.formatted in iOS's own words, so it can't take another grammatical form, and the comment asks for sentences that read right with it as it is.

  • problemMessage now returns a LocalizedStringResource, because LocalizedStringKey can't carry a comment. The other keys don't change: String interpolations are %@ either way.
  • I added the comments to Localizable.xcstrings by hand, because I had no Xcode. CI's string sync will show whether Xcode writes them the same way.
  • CLAUDE.md now says that translations are shared with the Android client, and that a shared string gets the same English and the same note in both.

Only comments for translators change, so there's no release note. I couldn't build this here (no Swift toolchain on Linux), so CI is the first build.


Generated by Claude Code

A translator on Transifex asked what goes in the placeholder of these
sentences. Say it's the wait, with examples, and since iOS writes the
wait in its own words, which can't take another grammatical form, ask
for sentences that read right with it as it is. The Android client
gives its copies of these strings the same notes.

problemMessage returns a LocalizedStringResource, as LocalizedStringKey
can't carry a comment.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9Kb2PrrBMXJ5Y89E3CKib
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9Kb2PrrBMXJ5Y89E3CKib
@github-actions

Copy link
Copy Markdown

Screenshots

From run 39798992775, against a real Clementine. Left: main. Right: this pull request, light and dark.

Screen main This PR This PR, dark
01_connect
02_queue
03_player
04_connection
05_settings
06_library –
07_library_album –
08_search –
09_outputs –
10_internet –
11_internet_radio –

@hatstand
hatstand marked this pull request as ready for review October 22, 2026 15:24
@hatstand
hatstand merged commit 433e8a7 into main Oct 22, 2026
4 checks passed
@hatstand
hatstand deleted the claude/auth-code-string-context-5aq9e3 branch October 22, 2026 15:26
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.

2 participants