Skip to content

Translations

Silorak edited this page Aug 24, 2025 · 2 revisions

All chat messages displayed by the core plugin and its modules are stored in the tfdb.phrases.txt file, located in the addons/sourcemod/translations/ directory. This allows for easy customization of messages and support for multiple languages.

Structure

The file uses the standard SourceMod phrases format. Each phrase has a unique key, followed by the text for each language enclosed in curly braces.

Example:

"Hud_Enabled"
{
"en"        "[{olive}TFDB{default}] Rocket speedometer is now {darkorange}enabled{default}."
}

Customization

  • Editing Text: You can edit the English ("en") text for any phrase to change the messages displayed on your server.
  • Adding Languages: You can add translations for other languages by adding a new line inside a phrase block with the appropriate two-letter language code (e.g., "de" for German, "ru" for Russian).
  • Colors: The text supports color tags like {olive}, {default}, {red}, {darkorange}, etc., which allow you to add color to the chat messages.
Clone this wiki locally