Repository navigation
i18n: everything in English, UI in English or Polish following the system - #9
Merged
Merged
Conversation
…system
Replaces the unused Loc.swift. `L10n.tr("English text")` returns Polish
when the first preferred system language is Polish, English otherwise;
CM_LANGUAGE overrides it and tests always run in English. Logs stay
English-only.
L10nTests enforce the rules: inline literal keys, %@ placeholders only,
a Polish entry with matching placeholders for every key, no unused entries,
and no Polish left in Sources/Tests outside the Polish tables (currently
3311 lines - the translation follows in the next commits).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comments, CI error messages, the gdrive/ measurement notes, launchd and Info.plist comments, the cask template comments and the example config comments. No functional changes: keys, placeholders, shell logic and cask stanzas are untouched. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Translate all comments in Sources/CloudMachineApp to English and route every visible GUI string (menu bar, dashboard, AppStatus headlines, controller messages, busy labels) through L10n.tr with Polish entries in L10nPolish+App.swift. Action logs keep a separate English name, so the log does not switch language with the system. AppStatusHealthTests now expect English; headlines owned by CloudMachineCore (UploadState, BackupHealth.formatAge) are compared with the core's own text instead of a copied literal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cloudmachine-agent: abstracts, option help and printed output go through L10n.tr with Polish entries in L10nPolish.agent (104 keys); logs are plain English. cloudmachine-poc is a developer tool and is English only. All comments translated; PullPlugHarnessTests expect the English summary. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Translates comments, logs and user-facing text in the image, buffer, watchdog and upload-state code (BackupImageService, BufferGuardService, DriveBufferService, UploadDrain, UploadState, BufferReadiness, EdgeTriggeredLog) and their tests. Logs are plain English; text shown to people goes through L10n.tr with Polish translations (with diacritics) in L10nPolish.storage. The upload-jam notification is now localized separately from its log line. BufferGuardDecisionTests no longer asserts BackupHealth's exact wording, which belongs to another file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"Attaching the image" had two Polish translations: the GUI action label
("Podpinam obraz") and the busy-lock message prefix ("Podpinanie obrazu").
One English key can only have one translation, so the lock messages now use
their own names (Image creation/attach/detach/verification). Caught by
L10nTests.testTablesDoNotDisagree after merging the app and storage tables.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sh table Comments and logs are now English; text shown to people goes through L10n.tr with Polish translations in L10nPolish+System.swift (104 keys). HealthAlert no longer deduplicates by the translated summary: BackupHealth.Problem carries a stable `code`, and the persisted deliveryError is a fixed English value translated only for display, so alert state written by a Polish-language run matches an English one. AppVersion.unknownCommit is now "unknown" (written and read only via the constant). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Test names, comments and expected strings follow the English messages. New tests: HealthAlert identity and persisted delivery reason do not depend on the UI language; every BackupHealth problem has its own code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ealth text again Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ated texts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The whole repository is now in English: code comments, logs, docs, launchd templates, workflows, config example, README.
Text shown to people (menu-bar app, CLI output and
--help, notifications) goes throughL10n.tr("English text"):CM_LANGUAGE=en|ploverrides it.Example,
drive-statuson a live Mac:Guard rails (
L10nTests)l10n-polish-okmarker. The detector was checked against injected samples: a word in a sentence, diacritics, and a word at a pattern boundary.Behaviour changes worth knowing
BackupHealth.Problemhas a stablecode(no-recent-backup, …). An existinghealth-alert.jsonholds a fingerprint of the old Polish summary, so one active problem may be notified once more after the update. After that, deduplication works as before, now independent of the language.AppVersion.unknownCommitis now"unknown", not"nieznany"; it is written and read through the same constant.load.bin, …); nothing outside the harness uses them.Not changed
tmutil,hdiutil,rclone,launchctlandsecurityoutput.Checks
swift test: 306 tests, 0 failures.swift format lint --strictpasses.drive-statusand--helpwere checked in both languages.🤖 Generated with Claude Code