Repository navigation
macOS: declare the UI languages so the open and save panels are translated - #2627
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Declare supported localizations packaging/macos/Info.plist.in |
Adds 20 language codes to CFBundleLocalizations and comments on alignment with embedded Rust UI translations and AppKit dialogs. |
Priority:
Estimated code review effort: 1 (Trivial) | ~3 minutes
Change: Bug fix
Suggested reviewers: echelon
Merge Risk: 
Minimal · up to 8cfe9
-
The macOS localization metadata is aligned with the app’s translations and packaging flow.
Architecture risk: 
Low · up to 8cfe9
-
The change affects 1 system.
Changed systems:
packagingArchitecture concerns
No architecture-level concerns identified.Review details
-
Systems and components
- observed — packaging (service) was modified; 1 changed file maps to changed impact.
Before / after behavior
- observed — Modified behavior in packaging/macos/Info.plist.in: Added
CFBundleLocalizationswith the listed 20 language codes, along with a comment describing their relationship to embedded Rust UI translations and AppKit dialogs.
-
Pre-merge checks: 
5
-
Full details: Docstring Coverage
-
Explanation
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)
-
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
|
Review notes (not a formal review) on head 8cfe970. Checked
Two notes
Not checked
|
|
Landed in main (75f7056). Thank you for the contribution, @Atalantis! If you haven't already, come join us on Discord: https://discord.gg/artcraft |
What and why
The open and save panels, the overwrite confirmation and other AppKit dialogs stay in English whatever language GridCraft is shown in. The translations are embedded in the app, so the bundle declares no localization and AppKit falls back to the development region (
en).This adds
CFBundleLocalizationstopackaging/macos/Info.plist.inwith the 19 interface languages GridCraft ships (its catalogs onmain; Apple's spelling forzh-Hans,zh-Hant,pt-BR).CFBundleDevelopmentRegionstaysen. PhotoCraft made the same change in storytold/photocraft#4261, and PdfCraft in storytold/pdfcraft#4785.How it was tested
plutil -lint. Not run:cargo xtask ci,packaging/macos/package.sh, and the GridCraft app itself with this change.Summary by CodeRabbit