Skip to content

fix(i18n): use the informal "tu" register throughout pt-PT - #2933

Open
jvascopf wants to merge 7 commits into
ryanbr:mainfrom
jvascopf:fix/pt-PT-register-sweep
Open

jvascopf wants to merge 7 commits into
ryanbr:mainfrom
jvascopf:fix/pt-PT-register-sweep

Conversation

@jvascopf

@jvascopf jvascopf commented Nov 21, 2026 •

Copy link
Copy Markdown

What this PR does

Makes pt-PT consistent with itself. Translated values only; no code changes.

Stacked on #2781. The first commit on this branch merges #2781, because this sweep rewrites many of the strings that PR corrects. Once #2781 is merged, only the second commit remains in the diff.

Register

Most of the pt-PT catalogue already addresses the reader as "tu" (about 600 "teu/tua" against 50 "seu/sua"). Several hundred strings used the formal imperative instead, or mixed both in one sentence ("Ligue a tua bracelete", "Escolha… o teu"). This rewrites 494 Apple strings (Strand/Resources/Localizable.xcstrings) and 227 Android strings (values-pt-rPT/strings.xml) so that:

  • instructions use "tu" (Liga, Escolhe, Toca, Podes, Tens…);
  • short button labels use the infinitive (Escolher pasta, Procurar atualizações, Sincronizar agora), as pt-PT interfaces usually do.

Fixed in the same strings

  • pt-BR forms: aplicativo → app, arquivo → ficheiro, Tônus → Tónus, "estão aumentando" → "a ganhar forma", conectado → ligado, provedor → fornecedor, gerencie → gere, Digitalizar (for Scan) → Procurar, tincronizar → sincronizar.
  • One word for the strap: "bracelete" everywhere (it was also pulseira, correia and banda). Third-party fitness bands (Mi Band, Amazfit, Helio) are "pulseira". The heart-rate target zone ("in band", "above band") stays "banda".
  • Mistranslations, for example:
    • "Buzz your strap…" was "Toque na tua bracelete" (touch your strap) → "Vibrar a tua bracelete…"
    • "Mi Band" was "A minha banda" → "Xiaomi Mi Band" (the plain brand would count as an untranslated echo in the i18n audit)
    • crypto → "criptografia" (cryptography) → "criptomoedas"
    • "Building. Keep logging." → "Prédio" (a building) → "Em construção"
    • "No Charge banked" → "Sem Carga bancária" → "Ainda sem Carga acumulada"
    • "Higher leans sympathetic" → "Superior inclina-se para a simpatia" → "Mais alto tende para o simpático"
    • "Powers Effort now" → "Esforço de poderes agora" → "Alimenta o Esforço já"
  • Still in English: 32 lowercase captions (balanced, negligible, weak, steady, unscored…) and about 15 Android strings that were only half translated.

Not changed

Type of change

  • Bug fix
  • New feature
  • Refactor / cleanup
  • Documentation
  • CI / tooling

How it was tested

Translation-only change. No BLE, protocol or analytics code was touched.

  • Edits were made in place, one string at a time, so every other line of both files is byte-identical. Localizable.xcstrings still parses as JSON and strings.xml passes xmllint.
  • Placeholders (%@, %lld, %1$s, %%…) are the same in every edited string. A script compared them before and after.
  • Android apostrophes and quotes are escaped (\', \").
  • python3 Tools/i18n_audit.py --ci HEAD exits 0 (all pt-PT catalogues OK; echo allowance not exceeded).
  • python3 -m unittest test_i18n_audit (in Tools/): 83 tests OK. The full Tools suite has the same 4 test_check_source_references failures on this branch and on main (a macOS temp-path issue, fixed separately in test(tools): resolve the temp root so source-reference tests pass on macOS #2874).
  • Not built in Xcode or Gradle, since only resource values changed. The rewrites were drafted with an AI assistant; a native pt-PT review is welcome.

Checklist

  • Swift package tests pass for any package I touched (no package touched)
  • Android unit tests pass if I touched android/ (resource values only)
  • No new build warnings introduced
  • UI changes use only StrandDesign tokens — no hardcoded colors, fonts, or spacing
  • No hardcoded hex frame bytes; protocol facts live in the schema / decoders
  • Follows the conventions in docs/CONTRIBUTING.md
  • I did not commit generated output (Strand.xcodeproj/) or any secrets/keystores

Related issues

Refs #2781

🤖 Generated with Claude Code

jvascopf and others added 5 commits October 13, 2026 00:07
Apple (Localizable.xcstrings) and Android (values-pt-rPT):
- Fix "Descansoaurador/Descansoaurar/..." (a bad find-and-replace of
  "Rest...") to Restaurador/Restaurar/Restaurado; "Descansoante" -> "Restante".
- Replace "cochilo" (pt-BR) with "sesta" and fix the surrounding agreement.
- Fix gender/number agreement for "cópia de segurança" (feminine).
- "Livro-razão da dívida do sono" -> "Registo da dívida de sono".
- "pega" (handle) -> "bracelete" for the strap, the app's dominant term.
- "esparso/esparsas" -> "escasso/escassas"; fix swapped placeholders in
  "Sparse, widened to %@ · %lld readings".
- "Band Sleep State": Android pt-PT was "Estado de suspensão da banda";
  now "Estado de sono da bracelete".
- Minor typos: "tincronização", "tinais", "Detecção" -> "Deteção".

"Band Sleep State" had no Apple catalogue entry, so it fell back to English.
Added it for the other focus locales too (reusing the Android strings),
because the i18n audit fails a new key that lacks them.
- week/month/quarter/year were left in English in the Apple catalogue,
  which produced captions like "sem week anterior".
- "o tempo todo" (all the time) -> "todo o período" for the all-time window.
- "toda a histórico" -> "todo o histórico" (Apple and Android).
- "versus anterior %@" -> "vs. %@ anterior" (Apple and Android).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The pt-PT 'pega' -> 'bracelete' sweep also rewrote four Spanish AI Coach
key-setup strings, where 'pega' is the imperative of 'pegar' (paste).
Restore them to their values on main.
… sweep

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Most of the pt-PT catalogue already addresses the reader as "tu" (about 600
"teu/tua" against 50 "seu/sua"), but several hundred strings used the formal
imperative or mixed both in one sentence ("Ligue a tua bracelete"). Rewrites
494 Apple and 227 Android strings so every instruction uses "tu", and short
button labels use the infinitive, as pt-PT interfaces usually do.

Also in the same strings:
- pt-BR forms: aplicativo -> app, arquivo -> ficheiro, Tônus -> Tónus,
  "estão aumentando" -> continuous "a + infinitive", conectado -> ligado,
  provedor -> fornecedor, Digitalizar (Scan) -> Procurar.
- The strap is "bracelete" everywhere (was also pulseira, correia, banda);
  third-party fitness bands are "pulseira"; the heart-rate target zone stays
  "banda".
- Mistranslations: "Toque na tua bracelete" for buzz -> vibrar, "Mi Band" ->
  "A minha banda", crypto -> criptografia, Building -> Prédio,
  "Sem Carga bancária", "Superior inclina-se para a simpatia".
- 32 lowercase captions that were still English (balanced, negligible, weak,
  ...) and several Android strings that were only half translated.

Placeholders are unchanged in every edited string. Keys edited by the other
open pt-PT pull requests (ryanbr#2784, ryanbr#2878, ryanbr#2897) are left alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jvascopf added a commit to jvascopf/noop that referenced this pull request Nov 21, 2026
…register throughout pt-PT

ryanbr#2933

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	android/app/src/main/res/values-pt-rPT/strings.xml
jvascopf and others added 2 commits November 21, 2026 17:21
"Estágio" is the pt-BR word (and in pt-PT means an internship); the rest of
the catalogue already says "fases do sono". Six Apple and five Android
strings, including the Stage breakdown header.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- HR was translated "RH" (recursos humanos) in about 30 strings; pt-PT
  uses FC, as the rest of the catalogue already does (FC em repouso),
  with the feminine agreement it needs (FC média, FC máxima).
- The remaining "correia"/"tiras" for the strap become "bracelete",
  with the broken ones rewritten ("Correia colada" for Strap bonded,
  "Correia de zumbido" for Buzz Strap).
- "Treinadoring" (a broken find-and-replace of coaching) becomes
  "orientação".
- Sleep staging was "Encenação" (theatrical staging) or the clinical
  "estadiamento"; it is now "classificação das fases do sono".
- "histórico bancário" for banked history becomes "histórico guardado".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant