Repository navigation
feat(l10n): add Brazilian Portuguese (pt-BR) translation - #594
Merged
Merged
Conversation
- Translate every Localizable.strings key (294) and the 11 strings the current Main.storyboard still has (app menu) into Brazilian Portuguese, using the terms macOS uses in pt-BR (barra de menus, Ajustes do Sistema, Acessibilidade, Lixo, Aplicativos). - Register pt-BR in the Xcode project: knownRegions, file references and the Main.storyboard and Localizable.strings variant groups. - The App language row lists it as "português (Brasil)".
Rendered with the Debug-Direct SettingsSnapshot (-settingsSnapshotDir) of this branch, launched with -AppleLanguages '(pt-BR)' on macOS 27: the General, Icons, Advanced and About panes, the new-icon prompt, the type-to-find palette and the presentation mode panel and settings, in light and dark.
This was referenced Nov 24, 2026
Contributor
|
Thanks for the pt-BR translation, Gustavo. This is a clean, complete PR. What I checked:
Nothing blocks the merge. These are optional wording points, only if you agree:
If you change any of these, rerun |
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 and why
Adds a Brazilian Portuguese (pt-BR) translation. All 294
Localizable.stringskeys and the 11 strings left inMain.storyboard(the app menu) are translated. The wording follows macOS's own pt-BR terms: barra de menus, Ajustes do Sistema, Acessibilidade, Lixo, Aplicativos, Itens de Início.pt-BR is registered in the Xcode project (
knownRegions, two file references, and both variant groups), so it ships in the bundle. Settings › General › App language lists it as "português (Brasil)".Notes:
pt-BR.lproj/Main.stringsholds only the 11 object IDs thatibtool --export-strings-filereturns for the current storyboard. The older locales still carry entries for objects that no longer exist.LocaleCoverageTestsallow-list entries were needed. Every pt-BR value differs from English except the four keys already allowed in every locale (macOS, Wi-Fi, Mac App Store, OK).How it was tested
plutil -lint hidden/*.lproj/*.stringsxcodebuild test -scheme "Hidden Bar" -configuration Debug-Direct -only-testing:HiddenTests/LocaleCoverageTests -only-testing:HiddenTests/LanguagePreferencesTests: 11 tests, 0 failures. The built app containspt-BR.lproj, soLocaleCoverageTestschecked it.scripts/test.shon a Mac whose system language is pt-BR: the App Store scheme passed 526/526. The Direct scheme passed 798 and failed 34. Every failure is a test that compares UI text with English (ArrivalsPromptTests, PalettePanelTests, PresentationViewsTests, SettingsWindowTests and others): the test host now opens in Portuguese, so it reads "Sempre ocultar" where the test expects "Always hide". Re-running the Direct scheme with-testLanguage en -testRegion USpasses 832/832, 0 failures. CI runs in English, so it should pass. The same failures show up today on a Mac set to any other shipped language, such as German or French. Pinning the test language in the shared schemes (language = "en"on the TestAction) would fix that. I left the schemes alone because that change is outside this PR's scope.-settingsSnapshotDirhook under-AppleLanguages '(pt-BR)'(82 images, light and dark). Checked each one for clipped or untranslated text.UI proof
Committed under
docs/verification/pt-br-localization/(9 PNGs: General, Icons, Advanced, About, the new-icon prompt, the find palette, and the presentation panel and settings, in light and dark).A new string goes into every locale in the same commit. The test
LocaleCoverageTestsenforces it.Tick exactly one: