Skip to content

Fix missing "Cookies are not cached" translation key#74

Open
Rushaway wants to merge 7 commits into
masterfrom
Rushaway-patch-1
Open

Fix missing "Cookies are not cached" translation key#74
Rushaway wants to merge 7 commits into
masterfrom
Rushaway-patch-1

Conversation

@Rushaway

Copy link
Copy Markdown
Member

PR Description

Summary

This PR fixes a runtime SourceMod exception caused by a missing translation phrase key used by the nominations status command.

Problem

When running nomstatus, the plugin calls the phrase key "Cookies are not cached" via %t. #72
That key was missing in translation files, which triggered:

  • Exception reported: Language phrase "Cookies are not cached" not found
  • Blamed plugin: nominations_extended.smx

Changes

Added the missing phrase key "Cookies are not cached"

Impact

  • Prevents phrase lookup exceptions in multilingual environments.
  • Ensures nomstatus works correctly for English, Chinese, Spanish, French, and Russian locales.

Validation

  • Verified the phrase key is present in all targeted translation files.
  • No syntax/errors reported in the updated translation files.

Copilot AI review requested due to automatic review settings June 27, 2026 06:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Fixes a runtime SourceMod exception in Nominations Extended by adding the missing translation phrase key used by the nomstatus command (%t lookup for "Cookies are not cached"), ensuring the phrase exists across supported locales.

Changes:

  • Added "Cookies are not cached" phrase to the base (English) translation file.
  • Added the same phrase key to chi, es, fr, and ru locale translation files.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
addons/sourcemod/translations/mapchooser_extended.phrases.txt Adds the missing English phrase key used by nomstatus.
addons/sourcemod/translations/chi/mapchooser_extended.phrases.txt Adds the missing Chinese locale phrase key to prevent lookup exceptions.
addons/sourcemod/translations/es/mapchooser_extended.phrases.txt Adds the missing Spanish locale phrase key to prevent lookup exceptions.
addons/sourcemod/translations/fr/mapchooser_extended.phrases.txt Adds the missing French locale phrase key to prevent lookup exceptions.
addons/sourcemod/translations/ru/mapchooser_extended.phrases.txt Adds the missing Russian locale phrase key to prevent lookup exceptions.

Comment thread addons/sourcemod/translations/fr/mapchooser_extended.phrases.txt Outdated
Rushaway and others added 2 commits June 27, 2026 08:53
Co-authored-by: Copilot Autofix powered by AI <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.

2 participants