Skip to content

Say whose limit it is in the Brazilian Portuguese rate-limit note - #357

Merged
vinzdg merged 1 commit into
vinzdg:mainfrom
PedroMendes22:fix/ptbr-rate-limit-copy
Sep 26, 2026
Merged

vinzdg merged 1 commit into
vinzdg:mainfrom
PedroMendes22:fix/ptbr-rate-limit-copy

Conversation

@PedroMendes22

Copy link
Copy Markdown
Contributor

Summary

On Windows in Brazilian Portuguese, a 429 from the Claude usage endpoint shows up in the ring's tooltip as "Limite atingido, nova tentativa em 60s". That reads as "you've hit your limit", so it looks like the account is out of quota while the ring next to it says 15%. The English source, "Rate limited, retrying in 60s", means the request was rate limited, not the user.

This changes the four pt-BR strings (the two TEXT keys and the two PATTERNS regexes, for both the , and — variants) to "Limite de requisições", meaning "request limit". That:

  • matches the wording the pt-BR catalogue already uses for Rate limited. Wait for the retry deadline. ("Limite de requisições atingido…"), and
  • lines up with the Korean (요청 제한) and Ukrainian (Ліміт запитів) strings, which both say "request limit".

The strings came in with #300. No other locale or file is affected: Limite atingido appears only in these four lines.

Changes

  • windows/codenotch/ui/notch.html: Limite atingido → Limite de requisições in the pt-BR rate-limit note (4 lines).

Test Plan

  • Ran textCopy() from notch.html in Node with uiLang = 'pt-BR':
    • Rate limited, retrying in 60s → Limite de requisições, nova tentativa em 60 s
    • Rate limited — retrying in 120s → Limite de requisições — nova tentativa em 120 s
  • Built the Windows app (cargo build --release -p codenotch) on Windows 11 and ran it with the language set to pt-BR.
  • Run test suite (make test-ci): not run, because this is a Windows-only UI string and I have no Mac here.
  • Tested on macOS: not applicable, since the Mac catalogue has no such string.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PLHUJtpnkAejFRQpnKvLP9

"Limite atingido" reads as "you reached your limit", so a 429 from the usage
endpoint showed in the tooltip as if the account were out of quota while the
ring beside it sat at 15%. The English source says the request was rate
limited; "Limite de requisições" says the same, matches the wording the
catalogue already uses for "Rate limited. Wait for the retry deadline.", and
lines up with the Korean and Ukrainian strings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PLHUJtpnkAejFRQpnKvLP9
@vinzdg
vinzdg merged commit 7c50717 into vinzdg:main Sep 26, 2026
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