Skip to content

Translations: add all missing keys, add Portuguese; plain-text install hint on CLI - #30

Open
codeling wants to merge 2 commits into
mainfrom
jarvis/pensive-cannon-q5piwb
Open

codeling wants to merge 2 commits into
mainfrom
jarvis/pensive-cannon-q5piwb

Conversation

@codeling

@codeling codeling commented Nov 6, 2026

Copy link
Copy Markdown
Owner

What

The CI "Language files" step passed, but reported 20 non-failing warnings (missing keys). They are all gone now: php tests/lint/check-language.php bfstop.xml COM_BFSTOP reports 0 errors, 0 warnings.

  • All missing keys added to ca-ES, de-DE, es-ES, fr-FR, it-IT, nl-NL, ru-RU: admin (about 160 keys per language; the ca/es/fr/it/nl/ru files only covered about 40 of 200), menu (.sys.ini) and site.
  • New languages pt-BR and pt-PT (admin, menu, site), listed in bfstop.xml. The plugin already has them.
  • installscript.php: when installing from the command line (as CI does), the installation hint printed raw <a href=""> markup with an empty link, because Route::_() returns an empty string there. On the command line it is now plain text, and the link falls back to the relative settings URL.

Goes together with codeling/bfstop (branch of the same name), which has the plugin's strings.

Review needed

The new strings are translations by Claude and should be checked by native speakers. pt-PT was adapted from pt-BR with a word list, so it needs the closest look. Placeholders (%s, %1$d) and HTML tags were checked against en-GB by a script; the two descriptions with <subnet address>/<mask bits> have that placeholder text translated on purpose.

./deploy.sh zip + tests/lint/check-zip.php: 34 manifest entries, 0 missing.


Generated by Claude Code

…l hint on CLI

- Every language now has all the component's keys (admin, menu and site);
  CI's language check reports no warnings any more (it had 20).
- New: pt-BR and pt-PT (admin, menu, site), listed in the manifest.
- The installation hint printed markup and an empty link when installing
  from the command line (Route::_() is empty there); it is plain text with
  a relative link now.

The new strings are translations by Claude and want a review by native
speakers; pt-PT was adapted from pt-BR.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFJFMQH6FykdAThUz1bofn
- DESC_BLOCK_IPADDRESS (ca, es, it, ru) only said "the IP address to
  block" and left out the subnet (CIDR) notation and the warning.
- DESC_ALLOWLIST_NOTES (fr) was a fragment; WARNING_ADMIN_USER_EXISTS (ca)
  was garbled; IP_PRIVATE_OR_RESERVED (de) lacked the address (%s).
- it: removed zero-width spaces in the unblock success message.
- pt-PT adapted to European Portuguese.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFJFMQH6FykdAThUz1bofn
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