Skip to content

Add French (fr) localization - #129

Merged
momenbasel merged 4 commits into
momenbasel:mainfrom
LeMonsieurXav80:add-french-localization
Aug 12, 2026
Merged

momenbasel merged 4 commits into
momenbasel:mainfrom
LeMonsieurXav80:add-french-localization

Conversation

@LeMonsieurXav80

@LeMonsieurXav80 LeMonsieurXav80 commented Jul 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds a complete French translation for PureMac.

  • New PureMac/fr.lproj/Localizable.strings with full key parity against the English base (all 321 strings translated).
  • Registers French in the AppLanguage enum (case french = "fr") so it can be selected from Settings → General → Language, and is picked automatically for users whose system language is French.
  • Adds the localized "French" language-name key to every existing .lproj so language-name parity is preserved across all locales.

Notes

  • Terminology follows Apple's French localization conventions (e.g. Accès complet au disque, Réglages Système, Placer dans la corbeille).
  • All %@ / %lld / %% format specifiers and the **PureMac** markdown emphasis are preserved.
  • LocalizationFilesTests should pass: every .lproj now has an identical key set (322 keys each, including the new French name).

Testing

  • plutil -lint clean on all 9 Localizable.strings files.
  • Verified key parity of every locale against en (no missing / extra keys).
  • Installed the fr.lproj into a local build and launched the app; it loads without issues and resolves to the French localization on a French-language system. A native-speaker review of the wording is welcome.

Add a complete French translation (fr.lproj/Localizable.strings, full
parity with the English base) and register French in the AppLanguage
enum so it is selectable from Settings. Also add the localized 'French'
language-name key to every existing .lproj so language-name parity is
preserved across all locales.
@momenbasel

momenbasel commented Aug 10, 2026 •

Copy link
Copy Markdown
Owner

Thanks for this the translation quality is genuinely good. I checked all 36 interpolated strings and the format specifiers are correct throughout, and the destructive-action wording ("Placer dans la corbeille", "Accès complet au disque") follows Apple's French conventions.

What is needed before merge: main has moved several times since you opened this (2.9.5 and 2.9.6, the latter merging PR #130 which added Russian and Ukrainian), so please rebase and reconcile against en.lproj on current main rather than your original baseline.

Measured against current main (en.lproj = 345 keys, fr.lproj = 322):

26 keys missing from fr.lproj:

%lld item(s) failed to delete.\n\n%@
Category
Check for Updates
Docker prune (stopped containers, dangling images, build cache)
Finder
Fix
LM Studio Conversations (Optional)
LM Studio Server Logs
Language Files
Ollama CLI Prompt History (Optional)
Ollama Cache
Ollama Electron Cache
Ollama Logs
Ollama Saved State
Ollama WebKit Data
Russian
Select an application (.app) to uninstall.
Set up
Some features will be limited without Full Disk Access. You can grant it later in Settings.
Terminal
Ukrainian
Universal Binaries
Unused CPU architecture slices in app binaries
Unused app localizations
Updates
blocked by safety policy

2 stale keys to remove. PureMacTests/LocalizationFilesTests.swift asserts extraKeys.isEmpty as well, so these fail it too — both were reworded on main:

Reclaimable (run `docker system prune -af`)
Some features will be limited. You can grant Full Disk Access later in System Settings.

("French" also reads as extra right now, but that resolves on merge since the PR adds it to en.lproj too.)

Note that Russian and Ukrainian are in the missing list — those are language display names from #130 and need French translations here.

Universal Binaries and Language Files still need translating even though both categories were withdrawn in 2.9.5. The enum cases and their English strings remain, so the parity test still requires them.

You do not need to touch project.yml or project.pbxproj — sources: - PureMac is a directory glob, so fr.lproj is picked up automatically and CI regenerates the project on every build. Your instinct there was right. This was confirmed empirically by the 2.9.6 release: ru.lproj and uk.lproj shipped in the notarized bundle without any project registration.

momenbasel and others added 3 commits August 12, 2026 08:31

@momenbasel momenbasel left a comment •

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Following up on the review above as part of an automated maintainer pass. Since main kept moving (#145 added 50 Smart Care keys, #147 added simulator-runtime cleanup, and the catalog is now enforced at 397 keys), I finished the reconciliation directly on your branch rather than leaving it to drift further — thanks for enabling maintainer edits. Your translation and AppLanguage wiring are untouched; everything below is additive on top of your work:

  • Merged current main (clean merge; your AppLanguage.french case slotted in beside russian/ukrainian).
  • Added French translations for all 77 keys the catalog gained since your baseline: the 26 listed in the review (Ollama/LM Studio, updater, Russian = "Russe" / Ukrainian = "Ukrainien", Universal Binaries = "Binaires universels", …), the 50 Smart Care dashboard strings from #145, and #147's Simulator runtime. I followed your established terminology throughout (analyse/nettoyage/résidus, straight apostrophes, French colon spacing).
  • Removed the 2 stale keys that were reworded on main, and deduplicated "Application" (it appeared twice, which fails testLocalizableStringsFilesDoNotContainDuplicateKeys).
  • Added "French" to ru.lproj ("Французский") and uk.lproj ("Французька") — those catalogs didn't exist when you opened this.
  • Added fr.lproj/InfoPlist.strings and ServicesMenu.strings so permission prompts and the Finder service are localized too (matching the pattern ru/uk established in #130).

Verification: key parity, duplicate, and format-specifier checks pass across all 11 catalogs (397 keys each); plutil -lint clean; full test suite green locally (19/19); and the built bundle resolves French correctly (Scan My Mac → "Analyser mon Mac").

Merging via squash — you'll be credited as the commit author. Native-speaker refinements to my added strings are welcome as a follow-up PR. Merci pour cette contribution soignée !

— automated maintainer pass on behalf of @momenbasel

@momenbasel
momenbasel merged commit 51c4164 into momenbasel:main Aug 12, 2026
momenbasel added a commit that referenced this pull request Aug 12, 2026
…ump 2.9.7

Ships the simctl runtime listing/deletion feature (#147), the pt-BR Smart
Care dashboard translations (#145), the full French localization (#129),
and the Xcode Junk description key restoration (#150), all already merged
to main. Regenerated project picks up the new source and strings files.

Co-authored-by: Cursor <[email protected]>
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