Skip to content

fix(translations): fix broken parameters, drop plural suffix, add missing languages - #45

Merged
Rushaway merged 4 commits into
mainfrom
fix/translations
Sep 30, 2026
Merged

Rushaway merged 4 commits into
mainfrom
fix/translations

Conversation

@Rushaway

@Rushaway Rushaway commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

Closes #44

Brings the plugin translations to 0 errors, 0 warnings with the Translations check (#46).

Broken parameters

  • sbpp_comms / Permamuted player reason (chi): used {3}, but #format only declares 2 parameters. SourceMod printed {3} literally and never showed the reason. It's now {2}.
  • sbpp_comms / Player already gagged (tr): {1] instead of {1}, so the player name was never inserted.

Plural suffix in sbpp_checker

The connect warnings passed the English plural "s" as {3}/{5} ("previous ban{3}"). It only worked in English, French, German and Portuguese. Other languages either appended it to their own words ("забанен 2 разs", "封禁s") or dropped it.

The phrases now read previous bans: {2} in every language, which is correct for any count. sbpp_checker.sp no longer passes the suffix (#format goes from {1:N},{2:d},{3:s} to {1:N},{2:d}, and {1:N},{2:d},{3:d} for the combined warning).

Missing translations

Every phrase is now translated in every language already used by the translations:

File Added
sbpp_comms da, nl, no, sv
sbpp_main da, es, hu, nl, no, pl, sv, tr
sbpp_report da, es, nl, no, sv
sbpp_sleuth da, es, nl, no, sv
sbpp_checker da, es, nl, no, sv

Terms used consistently per language: mute → voice (mutet / gemute / dempet / tystad), gag → text chat block (chatblokering / chatblokkade / chatblokkering / chattblockering), silence → full block. Command keywords (!noreason, cancel) stay untranslated.

Plugin version bumped to 1.8.5 (sbpp_comms). sbpp_checker follows SB_VERSION.

Checks

  • Translations: 0 error(s), 0 warning(s) (languages: en, chi, da, de, es, fr, hu, nl, no, pl, pt, ru, sv, tr)
  • Compile SourceMod plugins: pass

🤖 Generated with Claude Code

@Rushaway Rushaway changed the title fix(translations): fix broken parameters in Chinese, Turkish and plural suffixes fix(translations): fix broken parameters and plural suffixes, bump sbpp_comms to 1.8.5 Sep 30, 2026
Rushaway and others added 2 commits September 30, 2026 15:05
…al suffixes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rushaway and others added 2 commits September 30, 2026 15:14
The "s" suffix passed as {3}/{5} only worked in English, French, German
and Portuguese; other languages ignored it. Reword the warnings as
"previous bans: {2}" so every language reads correctly for any count,
and stop passing the suffix from sbpp_checker. Adds da, es, nl, no, sv.

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

Every phrase is now translated in every language already used by the
plugin translations, so smtranslate reports 0 errors and 0 warnings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Rushaway Rushaway changed the title fix(translations): fix broken parameters and plural suffixes, bump sbpp_comms to 1.8.5 fix(translations): fix broken parameters, drop plural suffix, add missing languages Sep 30, 2026
@Rushaway
Rushaway merged commit efbc2bd into main Sep 30, 2026
5 checks passed
@Rushaway
Rushaway deleted the fix/translations branch September 30, 2026 13:28
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.

Chinese translation references a format parameter that doesn't exist

1 participant