Repository navigation
feat(i18n): translate settings, playback, browse, account and shell screens - #869
Conversation
…text The phone and TV players, audiobooks, the ebook reader, Remote Control and Cast, and the download manager now read their text from the shared catalog, including screen reader labels, toasts, snackbars, and media and download notifications. English is unchanged apart from plurals that printed "1 seconds", "1 pages" and similar. Text that is stored, sent to a TV, logged or matched stays English: stored download titles and errors, the Remote Control handoff cancel, the adb debug hook and log lines read the catalog's English through EnglishText or the server's own detail. Errors that view models keep as English are mapped to catalog strings where they are shown. Text produced by the shared KMP module is not converted yet. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Every user-visible string in phone and TV Settings, server and account management, and Diagnostics now comes from the shared translation catalog, including content descriptions and toasts. English is unchanged. - Pickers select by position or value instead of comparing label text, so translated labels can't pick the wrong option. - View models and stores hand screens typed values (SettingsText, SettingsSaveError, seek-interval outcomes, diagnostics states) that the UI resolves, so text follows the app language. - Hand-built plurals use catalog plurals; Profile Selection shares one label mapping between phone and TV. - The catalog source guard now covers these six packages. Qualified SiloLogAttribute.Text(...) log fields no longer count as UI text. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Adds the player, audiobook, reader, cast and download packages to the literal-text source guard, and documents that data text stays English and how counts that can pass 999 enter a plural. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Settings search matched only the catalog's keywords, so a translation would have replaced the English words people search with. The English keywords now always match, and the catalog's words for the app language add to them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A failed version switch on TV showed a client-written terminal message in English because the replacement path dropped the catalog id the session manager supplied. Completed episode and remaining transcription counts also enter their plurals as text now, like the totals beside them, so both numbers are written the same way past 999. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Home, libraries and filters, title pages, box sets, people, search, recommendations, calendar, collections and saved lists on phone and TV now read their text from the translation catalog. English is unchanged, apart from four counts that printed "1 items", "1 titles", "About 1 results" and "1 chapters". View models hold a UiText (the server's words or a string resource) instead of English, so their messages follow a language change; errorText() is the catalog form of errorMessage() and also translates network and timeout text. Counts use plurals, names inside sentences are isolated in right-to-left layouts, and interface text is upper- or lowercased with the interface language's rules. Text that is sent or stored stays English data: the watch party item's fallback title and episode code, and the series title saved with a download. Co-Authored-By: Claude Opus 5.5 <[email protected]>
CatalogSourceTest now covers the 29 directories this change converted and also rejects contentDescription literals. docs/i18n.md describes UiText. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t from the catalog The phone and TV screens for sign-in, server setup, pairing, profiles and PIN, Watch Party, requests and the notification inbox, and the app shell (navigation, menus, cards, shared components) showed hardcoded English that no translation could reach. That text now comes from the shared translation catalog. English is unchanged, apart from one plural that printed wrong: the Requests summary now reads "1 needs you". View models hand their screens typed text (UiText, the inbox and pairing text types, string ids) that the screen resolves when it draws, so an in-place language change reaches it. Push notifications apply the app language before Android 13 too. Text that is stored, sent to the server or matched stays English: Watch Party suggestion subtitles, device names, notification channel IDs, subtitle and quality values. Text built in the shared KMP module is unchanged and still English. The catalog source guard now covers the 27 directories with no literal text left. Existing tests keep asserting the same English, now read from the resources. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…he guard Narrator and season names inside translated sentences are isolated in right-to-left layouts outside composition too (Resources.getStringWithNames). The audiobook in-progress count passes its digits as count_text. TV detail leaves the source guard: its dates still build English month names (plan 4.5) and its playback formatters keep an English fallback for the player HUD, so the directory isn't fully converted yet. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The detail page's stage, suggest and switch toasts are built outside composition, so they passed the title to getString without the right-to-left isolation the screens use. A Context twin of stringResourceWithNames now isolates them, in right-to-left only; English keeps its bytes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merges 7a7d8fafc, the branch head without its generated-output commit (3bb1e2b13); the catalog output is regenerated after all four merges. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merges caf0e7c61, the branch head without its generated-output commit (f20157fb2). Conflicts: - CatalogSourceTest: both guard lists kept. - TvSettingsScreen subtitle appearance pane: settings' catalog row and picker titles, with player's resource-backed option values. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merges 9923a87e4, the branch head without its generated-output commit (b4d8ce01d). Conflicts: CatalogSourceTest keeps every guard directory and combines the two scanner changes (settings skips qualified Text calls; browse adds contentDescription literals). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merges cfe6ca128, the branch head without its generated-output commit (36677d357). Conflicts: - common/i18n/UiText.kt: browse and account each added a UiText. Keep account's type (Res/Raw, text(), RTL name isolation, serverOr), add a Context overload of text(), and keep browse's helpers (errorText, detailedErrorText, localizedResources, upper/lowercaseForUi) on it. Browse's call sites move from Verbatim/Resource/asString to Raw/Res/text. - IsolatedStrings.kt: both helpers kept; Context.getStringWithNames delegates to the Resources form. - CatalogSourceTest: all 80 guard directories, sorted. - SignInSettingsTest: settings' SettingsText helper kept beside account's English assertions. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- The guard now scans settings, player and account directories for
contentDescription literals too. It flagged five templates that only
join translated text ("$label, $value"), so letters inside $name and
${...} templates no longer count.
- SignInSettingsTest imported RunWith, RobolectricTestRunner and Config
twice after the merge.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
"{tv}'s pairing code has changed…" stayed English because the catalog
validator rejected an apostrophe after a placeholder. The relaxed rule
allows it, so it now reads cast.remote.error.pairingChanged with the same
English, and phone android/cast joins the source guard.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A download whose series title is unknown is saved with the English placeholder "Series". That value is stored data and stays English, so it now has one constant, UNKNOWN_SERIES_TITLE, for its three writers, and the Downloads row shows downloads.entry.seriesFallback in its place, as it already did for an empty title. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The header under the top bar showed the account's server role with its first letter capitalized in code, so "Admin" and "User" stayed English in every language (found in the en-XA pass). Known roles now read shell.profileMenu.role.*, with the same English; an unknown role still shows as sent. The line is uppercased with the interface language's rules. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ry Downloads row Episode rows under an unnamed series also carry the stored English "Series" title, and a series episode saved without numbers carries the subtitle "Series episode". Both stay English in storage and now show the catalog's words on single rows too. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ate helper - roleText matches the role ignoring case, as the Settings rows do, and no longer sits between mapRouteToRoot and its KDoc. - IsolatedStrings keeps one FSI/PDI wrapper for the composable and Resources forms. Co-Authored-By: Claude Opus 5.5 <[email protected]>
SiloCastText.resolve filled names with a plain getString, so a TV name could reorder the surrounding punctuation in an RTL interface (Sol F2). Text arguments now go through getStringWithNames; english() keeps the raw values for logs and the protocol. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A literal like "$title \"Retry\"" ended at the escaped quote, so the template rule saw no letters and missed the word (Sol F3). The scanner case fails on the previous pattern. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… the debug pseudo-locale picker Co-Authored-By: Claude Opus 5.5 <[email protected]>
The HUD's version row, version picker and audio picker called the
TvPlaybackFormatting helpers without text, so they fell back to their
English defaults ("Default", "Stereo"). Browse added the catalog form
(rememberTvPlaybackText) and player owned the HUD; with both merged the
HUD now passes it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The voice search dialog for Android TV devices that use the older speech recognizer (#860) landed on main after the extraction pass, in the guarded TV search directory. Its title and five messages now read the search.voice*Tv catalog keys from catalog/pa-main; English is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The quota windows ("24 hours", "7 days", "30 days") are plurals with a
count placeholder from translations/all 7ceb68f on, so the number
formats in the app's digits. Pass the old literal as the count; English
is unchanged.
Builds with the regenerated catalog in the next commit, which adds the
plurals.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Network failures, a missing browser, refused starts, failed browser sign-ins and shared refusal problems in Sign-in settings still showed the English from NativeSignInMessages.forReason. They now carry the catalog text from NativeSignInMessages.text, which the sign-in screen already uses, and resolve when Settings draws them. English is unchanged. The three ProviderRefusalText sentences have no catalog keys yet and stay English. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The prompts that ask before replacing what a TV is playing put the TV name, the profile and the title into one sentence without isolation, so in Arabic two Latin names ran together and swapped places with their punctuation. They now use getStringWithNames, which isolates each name in a right-to-left interface. English output is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… String placeholders The catalog's pass 2 makes five detail keys take their numbers as String placeholders (D53), and lint rejected the Int arguments. The call sites pass the number in the interface language's digits without grouping (D55), so English prints the same "S1·E2" and "Chapter 3". Co-Authored-By: Claude Opus 5.5 <[email protected]>
DownloadWorker read its notification text from the application context, which keeps the device language before Android 13 and, on every version, skips the English stand-in for a device language without a catalog (D64). Resolve that text, and the downloads channel name and description, through AppLocales.wrap, as PushNotificationPresenter does. Found by Codex review. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Important Review skippedToo many files! This PR contains 420 files, which is 120 over the limit of 300. To get a review, reduce the PR to 300 files or fewer by splitting it into smaller PRs or changing its base branch. Usage-priced reviews support at most 300 files.
|
Quick104
left a comment
There was a problem hiding this comment.
Adversarial review (gpt-6.1-sol, reviewed 14ef7ed)
Two findings are attached to the affected lines. Verification used the pinned source, resource format checks, and a bidi reproduction with the committed Arabic catalog. Android builds and device behavior were not exercised in this review.
AI disclosure: Codex (gpt-6.1-sol), adversarial review requested by the PR's author.
d269f62 to
e95ad1a
Compare
ee06f32 to
6f326df
Compare
e95ad1a to
474d084
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6f326dfedd
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
474d084 to
ea039e4
Compare
bcadde3 to
95ef457
Compare
95ef457 to
c9a0989
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c9a0989000
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Problem
Related issue: N/A (translation program, Android extraction)
Validation tasks: none (English text is unchanged except plural fixes that no case checks)
Stack: 2 of 7, stacked on #868.
Pairs with Silo-Server/silo-apple#1079, Silo-Server/silo-apple#1080, Silo-Server/silo-apple#1081, Silo-Server/silo-apple#1082 and Silo-Server/silo-apple#1083 (Apple splits this work into a helpers PR and four area PRs).
Settings, playback, browse and detail, and the account, Watch Party, requests and shell screens on the phone and TV apps kept their text in Kotlin literals, so no translation could reach them.
Approach
Every user-visible string in those areas now comes from the shared catalog, including screen reader labels, toasts, dialogs and notifications. The work was done per area and merged here:
The areas share one
UiTexttype (Res/Raw, resolved when drawn) and one source guard, which now covers every converted directory. Names inside sentences are isolated in right-to-left interfaces.Text that is stored, sent, logged or compared stays English in every language: download titles and errors saved on the device, Watch Party suggestion subtitles, device names, notification channel IDs, and Remote Control messages to the TV.
English is unchanged apart from plurals that printed "1 seconds", "1 items", "1 titles", "About 1 results", "1 chapters", "1 pages" and "1 needs you".
Three more changes ride on the rebase onto
mainand the release catalog:Resources.digits; feat(i18n): format dates, numbers and durations in the app language #872 replaces it withLocaleFormat). Without this, lint fails on this PR.After review: Sign-in settings errors now use the catalog text the sign-in screen uses (three
ProviderRefusalTextsentences have no catalog keys yet and stay English), and the Remote Control replacement prompts isolate TV, profile and title names in right-to-left interfaces. Download notifications and the downloads notification channel now use the app language before Android 13 and the English stand-in for a device language without a catalog, as push notifications do.Validation
Evidence
Evidence: https://evidence.siloserver.org/r/silo-android/pr-869/
Surface and build: phone, tablet, foldable (folded and open) and Android TV. The Spanish, Arabic, German and Japanese captures come from a build of the top of this stack, so every screen is fully converted; the English before-and-after pairs come from this PR's own base and head.
Risks
Checklist
AI Disclosure
scripts/sync-translations; T3 delegation to Codex for plan and adversarial reviewclaude-opus-5-5(code, extraction subagents, code-review finders);claude-sonnet-5-5(some code-review finders);gpt-6.1-sol(plan and adversarial review)gpt-6.1-solon its own branch; findings were fixed or answered there. The rebase ontomainwas checked against the pre-rebase tree file by file. Background review round 1 (Codexgpt-6.1-sol): F1, Sign-in settings errors stayed English, fixed; F2, Remote Control prompts didn't isolate names in right-to-left, fixed. Codex review: download notifications used the device language before Android 13, fixed.🤖 Generated with Claude Code
Note
Translate settings, playback, browse, account, shell, and player screens via string resources
UiText,AppLanguageStore,AppLocales,ServerText, andEnglishText, withAppLanguagesupport in the shared settings model and an in-app language picker in settingsStringtoUiTextwith resource-backed fallbacksAccept-Languagewith requests from device metadata, translates v2 API problem and section-title text throughProblemText/ServerText, and addssync-translations/check-translationsscripts with CI enforcementWatchPartyChoice,TvPickerChoice) are replaced with separate season, episode, year, and runtime values;ApiResult.Errorgains adetailfield defaulting tomessage;HudChaptersPane/TvPlayerNextUpOverlaycontain an invalid Kotlin interpolation as shown in the diff and must be fixed before compileMacroscope summarized 95ef457.