Skip to content

fix(portuguese-brazil): translate 3 high-confidence anglicisms (Checkout/Downgrade/Logs) - #71

Merged
rockstardev merged 3 commits into
btcpayserver:mainfrom
r1ckstardev:fix/portuguese-brazil-anti-slop-pass
Jun 9, 2026
Merged

fix(portuguese-brazil): translate 3 high-confidence anglicisms (Checkout/Downgrade/Logs)#71
rockstardev merged 3 commits into
btcpayserver:mainfrom
r1ckstardev:fix/portuguese-brazil-anti-slop-pass

Conversation

@r1ckstardev

Copy link
Copy Markdown
Collaborator

@thgO-O - opening this PR from the anti-slop pass on translations/portuguese (brazil).json requested by @teamssUTXO in the BTCPay Translations TG group 2026-05-26.

What

Three high-confidence translations applied:

  • Checkout -> Finalizar compra
  • Downgrade -> Rebaixar
  • Logs -> Registros

Anti-slop scan summary

33 entries in portuguese (brazil).json were flagged as identical-to-English (translation matches source). Most are anglicisms acceptable in modern Brazilian Portuguese tech context and deliberately not touched here:

  • Tech anglicisms commonly kept in PT-BR: Login, Logo, Online, Upload, Plugins, Token, Webhooks, Editor, Normal, Link, Total, Subtotal
  • BTCPay / Bitcoin protocol terms: Lightning Address, PayJoin BIP21, Min sats, Pull Payments
  • Brand / product names: Google Cloud Storage, Amazon S3, etc.
  • Judgment-call candidates left for your decision: Hostname (-> Nome do host?), Memo (-> Nota?), Timestamp (-> Carimbo de data/hora?), Pull Payments (-> Pagamentos de saque?), Placeholder/Placeholders, Scripting, via HTTP/via HTTPS, etc.

Full list of 33 identical-to-English entries with my suggested-or-keep notes is in the report markdown - happy to drop it here or paste into a comment if useful.

Caveats

I'm not a native PT-BR speaker. The three applied translations are best-attempts grounded in common Brazilian e-commerce / dev usage; please push a maintainer-edit on this branch or comment with preferred phrasing if any of them are off.

The identical-to-English entries left untouched are because they're either widely-accepted anglicisms in BR tech, BTCPay/protocol-specific terms, or judgment calls only the maintainer should make. Happy to do a follow-up PR with any additional translations you specify.

Context

Companion to #70 (Serbian fix) from the same anti-slop pass. Hindi findings are HTML-tag-mismatches that need maintainer Khush + Abhijay7 to restore tags - separate PR if they confirm here.

From the anti-slop pass requested by @teamssUTXO in -5292199939
2026-05-26. 33 entries in portuguese (brazil).json were flagged as
identical-to-English; most are anglicisms acceptable in modern PT-BR
(Login, Logo, Online, Plugins, Token, Upload, Webhooks, etc).

This PR translates 3 entries where Brazilian Portuguese has clear
conventional translations:

- Checkout -> Finalizar compra
- Downgrade -> Rebaixar
- Logs -> Registros

The other 30 identical-to-English entries are deliberately not
touched - they're judgment calls (Hostname / Timestamp / Pull Payments
/ Memo / Min sats / etc) where the maintainer's preference governs.
Some are widely-accepted anglicisms in BR tech context; some are
specialized BTCPay/Bitcoin protocol terms that should stay English.

Caveat: I'm not a native PT-BR speaker. These three translations are
best-attempts grounded in common Brazilian e-commerce / dev usage.
If thgO-O prefers different phrasings (e.g. 'Checkout' as anglicism,
'Logs' as anglicism), push a maintainer-edit on this branch or
comment with the preferred wording and I'll update.
@coderabbitai

coderabbitai Bot commented May 26, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: db517c38-c1da-4595-8b36-01e1d51c67ea

📥 Commits

Reviewing files that changed from the base of the PR and between 0387250 and 44c2bc2.

📒 Files selected for processing (1)
  • translations/portuguese (brazil).json

📝 Walkthrough

Walkthrough

The Portuguese (Brazil) translation file updates two strings: the "Downgrade" key now reads "Rebaixar", and the subscription downgrade confirmation prompt uses "rebaixar" instead of "fazer o downgrade de".

Changes

Translation Update

Layer / File(s) Summary
Downgrade phrasing corrections
translations/portuguese (brazil).json
Replaced the "Downgrade" fallback with "Rebaixar" and updated the downgrade confirmation prompt to use the Portuguese verb "rebaixar".

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 Pequeno salto, palavra a mudar,
"Rebaixar" agora no seu lugar,
Dois versos ajustados, limpos e breves,
O texto sorri entre acentos e leves,
Celebro em rabiscos e pulos de hare.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Title check ⚠️ Warning The title mentions three translations but the changeset only contains the Downgrade translation; Checkout and Logs were reverted per reviewer feedback. Update the title to reflect the actual change: 'fix(portuguese-brazil): translate Downgrade to Rebaixar' or similar.
✅ Passed checks (4 passed)
Check name Status Explanation
Description check ✅ Passed The description clearly explains the anti-slop pass context, the three translations attempted, and notes that Checkout and Logs were reverted, aligning with the actual changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@thgO-O thgO-O left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Downgrade is a good catch.

I’d keep “Checkout” and “Logs” in English. IMHO “Finalizar compra” reads like a button/action label rather than the name of a screen, and the file consistently uses “checkout” in related strings like “página de checkout”, “Aparência do Checkout”, and “Experiência de Checkout”.

“Logs” is also already used naturally in strings like “arquivos de log” / “log do servidor”, while “Registros” feels more generic and may conflict with other meanings like registration/records.

Per btcpayserver#71 (review):

- Revert 'Checkout' -> keep English. File consistently uses 'checkout'
  in related strings ('página de checkout', 'Aparência do Checkout',
  'Experiência de Checkout'); a translated standalone reads as
  button/action label and creates inconsistency.
- Revert 'Logs' -> keep English. 'log' already naturally used
  ('arquivos de log', 'log do servidor'); 'Registros' is generic
  and may conflict with registration/records meanings.
- Keep 'Downgrade' -> 'Rebaixar' (thgO-O endorsed this catch).

Net PR diff: 1 line, Downgrade only.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@translations/portuguese` (brazil).json:
- Line 624: The translation for the key "Downgrade" currently uses "Rebaixar"
while a related string "Would you like to downgrade..." remains as an anglicism;
update for consistency by either changing the "Downgrade" entry to the loanword
"Downgrade" or translate the longer prompt to "Você gostaria de rebaixar..." so
both keys ("Downgrade" and "Would you like to downgrade...") use the same
terminology, and run a quick search in the translations file to ensure no other
occurrences of "downgrade" conflict with your chosen convention.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: c97cbad2-a6c5-4b66-811f-fc4606921adb

📥 Commits

Reviewing files that changed from the base of the PR and between 81c63d8 and 0387250.

📒 Files selected for processing (1)
  • translations/portuguese (brazil).json

Comment thread translations/portuguese (brazil).json
@rockstardev
rockstardev merged commit 4d8c477 into btcpayserver:main Jun 9, 2026
1 of 2 checks passed
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.

4 participants