Skip to content

refactor(v3): simplify notifications, translations support#25

Open
Rushaway wants to merge 11 commits intosrcdslab:masterfrom
Rushaway:v3
Open

refactor(v3): simplify notifications, translations support#25
Rushaway wants to merge 11 commits intosrcdslab:masterfrom
Rushaway:v3

Conversation

@Rushaway
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings February 16, 2026 19:24
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the notification system in BoostAlert v3.0.0 to use centralized translation phrases, replacing hardcoded messages with a structured localization system. The refactoring consolidates notification logic into dedicated helper functions and adds comprehensive multi-language support for French, Spanish, Russian, and Simplified Chinese in addition to English.

Changes:

  • Introduces translation file with 12 phrase keys covering all notification scenarios (knife events, boost events, follow-up infections/kills, and disconnected player cases)
  • Refactors notification system into dedicated helper functions (NotifyKnifeEvent, NotifyBoostEvent, NotifyKnifeFollowupConnected, etc.) that use translation keys
  • Extracts user ID string building logic into reusable helper functions (BuildUserIdString, BuildStoredUserIdString)
  • Removes deagle from boost weapon detection list
  • Updates CI/CD workflow to package translations directory

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 17 comments.

File Description
addons/sourcemod/translations/BoostAlert.phrases.txt New translation file with 12 phrase keys for 5 languages (EN, FR, ES, RU, CHI) covering all notification scenarios
addons/sourcemod/scripting/BoostAlert.sp Refactored notification system with translation support, extracted helper functions, version bump to 3.0.0, removed deagle weapon
README.md New comprehensive documentation covering features, configuration, notification examples, forwards, and translation support
.github/workflows/ci.yml Updated build workflow to include translations directory in package artifacts

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

Rushaway and others added 3 commits February 16, 2026 20:55
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Updated French translations for knife follow-up messages to correct accents and phrasing.
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Rushaway and others added 2 commits February 16, 2026 21:07
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.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

Comments