Skip to content

Add German (de) localization - #167

Merged
momenbasel merged 2 commits into
momenbasel:mainfrom
hadzicni:add-german-localization
Oct 8, 2026
Merged

momenbasel merged 2 commits into
momenbasel:mainfrom
hadzicni:add-german-localization

Conversation

@hadzicni

@hadzicni hadzicni commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds a complete German (de) localization:

  • de.lproj/Localizable.strings: full translation, same keys as the English base
  • de.lproj/InfoPlist.strings: macOS permission prompts
  • de.lproj/ServicesMenu.strings: Finder service ("Mit PureMac deinstallieren")
  • Registers German in AppLanguage so it can be selected in Settings
  • Adds the localized "German" language name to all existing locales
  • Registers de in knownRegions and the variant groups of the Xcode project (project.yml needs no change, de.lproj is 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

  • Bug fix
  • New feature
  • Performance improvement
  • UI/UX enhancement
  • Documentation
  • Other (describe): Localization (German translation)

Testing

  • Tested on macOS Ventura (13.x)
  • Tested on macOS Sonoma (14.x)
  • Tested on macOS Sequoia (15.x)

Tested on macOS 27: build and all 23 unit tests pass, including LocalizationFilesTests (key parity, format specifiers, no duplicate keys). Verified that de.lproj is bundled in the built app.

Screenshots

None yet.

Co-Authored-By: Claude Opus 5 <[email protected]>
Copilot AI lite review requested due to automatic review settings September 13, 2026 18:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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 AppLanguage and 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.testBuiltAppBundleContainsRussianAndUkrainianLocalizations to include de when 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.

Comment thread PureMac/Models/AppLanguage.swift Resolved
@momenbasel

Copy link
Copy Markdown
Owner

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.

0x00kh pushed a commit to 0x00kh/PureMac that referenced this pull request Oct 8, 2026
…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.
0x00kh pushed a commit to 0x00kh/PureMac that referenced this pull request Oct 8, 2026
0x00kh pushed a commit to 0x00kh/PureMac that referenced this pull request Oct 8, 2026
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.
@hadzicni
hadzicni deleted the add-german-localization branch October 8, 2026 06:27
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.

3 participants