Repository navigation
Add German (de) localization - #167
Conversation
Co-Authored-By: Claude Opus 5 <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
Extend localization tests to cover German registration and bundled resources.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Adds complete German localization support, including UI strings, permission prompts, Finder services, language selection, and Xcode resource registration.
Changes:
- Adds German translations for app UI, permissions, and Finder services.
- Registers German in
AppLanguageand the Xcode project. - Adds localized German language names to existing locales.
File summaries
| File | Summary |
|---|---|
PureMac/zh-Hant.lproj/Localizable.strings |
Adds the German language name. |
PureMac/zh-Hans.lproj/Localizable.strings |
Adds the German language name. |
PureMac/uk.lproj/Localizable.strings |
Adds the German language name. |
PureMac/ru.lproj/Localizable.strings |
Adds the German language name. |
PureMac/pt-BR.lproj/Localizable.strings |
Adds the German language name. |
PureMac/pl.lproj/Localizable.strings |
Adds the German language name. |
PureMac/Models/AppLanguage.swift |
Registers German for language selection; tests should cover German registration and resources. |
PureMac/ja.lproj/Localizable.strings |
Adds the German language name. |
PureMac/fr.lproj/Localizable.strings |
Adds the German language name. |
PureMac/es.lproj/Localizable.strings |
Adds the German language name. |
PureMac/en.lproj/Localizable.strings |
Adds the German language name. |
PureMac/de.lproj/ServicesMenu.strings |
Adds the German Finder service label. |
PureMac/de.lproj/Localizable.strings |
Adds German UI translations. |
PureMac/de.lproj/InfoPlist.strings |
Adds German permission prompts. |
PureMac/ar.lproj/Localizable.strings |
Adds the German language name. |
PureMac.xcodeproj/project.pbxproj |
Registers German resources; bundle tests should verify the German localization ships. |
Review details
Suppressed comments (1)
PureMac.xcodeproj/project.pbxproj:565
- Please extend
LocalizationFilesTests.testBuiltAppBundleContainsRussianAndUkrainianLocalizationsto includedewhen adding this variant group. The source key-parity test will pass even if this Xcode registration is omitted or misconfigured, so the current suite would not catch the German resource failing to ship in the built app—the primary runtime behavior introduced here.
F94DAD176D54AB03A6677FAF /* de */,
- Files reviewed: 16/16 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Merged into #184 (merge 979d3d3). Verified the du form, the Apple system terms, the placeholders and the typography across all 398 pairs, and that xcodegen picks up de.lproj with all three files. Two follow-ups on top: "Clear" = "Auswahl aufheben", since the only use of that key on main is the clear-selection button, and the 406 keys the other locales received in #180 are backfilled as English fallbacks pending translation. Ships in 3.1.0; thanks. |
…nbasel#180 and momenbasel#167 German gets English fallbacks for the 406 keys the other locales received in momenbasel#180, so the catalogs stay in parity, and its "Clear" now matches the clear-selection button that key is used for. The "1 files" and "3 file(s)" strings momenbasel#180 introduced go back to proper singular and plural forms through "1 file", "1 folder", "%lld files" and "%lld folders" keys in every locale. zh-Hans takes the full-width punctuation, the "Older than" wording and Apple's term for purgeable space from momenbasel#181 by @BruceQin520. The zh-Hans-only completeness test is removed: the repo convention is English fallbacks for new keys, and that test would fail on every future key until it is translated.
Translation by @BinaryBearsLLC from momenbasel#174 (commit 8c20a93), re-cut on top of momenbasel#180, momenbasel#167 and the other momenbasel#174 commits. it.lproj/Localizable.strings follows the current en key set and file order: 829 values come from the momenbasel#174 Italian catalog and 23 keys that did not exist there keep the English text as a fallback (the filter labels, memory and admin-removal messages added by momenbasel#180). "German" is rendered as "Tedesco" and "App Updates" as the noun phrase "Aggiornamenti app" because the key is used as a navigation title and sidebar label. InfoPlist.strings and ServicesMenu.strings are taken unchanged. The "Italian" language name is added to all 12 existing locales, .italian to AppLanguage, the it bundle to the localization tests, and the README Settings paragraph mentions Italian. The second half of momenbasel#174, a refactor that routed service and view-model strings through String(localized:) and added 432 keys to every locale, was not taken: momenbasel#180 already landed the same change on this branch and the two rewrites of the same lines conflict.
What does this PR do?
Adds a complete German (
de) localization:de.lproj/Localizable.strings: full translation, same keys as the English basede.lproj/InfoPlist.strings: macOS permission promptsde.lproj/ServicesMenu.strings: Finder service ("Mit PureMac deinstallieren")AppLanguageso it can be selected in SettingsdeinknownRegionsand the variant groups of the Xcode project (project.ymlneeds no change,de.lprojis picked up automatically)The translation uses the informal "du" like Apple's German macOS, and system terms match macOS (e.g. "Festplattenvollzugriff", "Systemeinstellungen", "Datenschutz & Sicherheit").
Type of change
Testing
Tested on macOS 27: build and all 23 unit tests pass, including
LocalizationFilesTests(key parity, format specifiers, no duplicate keys). Verified thatde.lprojis bundled in the built app.Screenshots
None yet.