Skip to content

docs: add text output section to C++ code standards#1178

Merged
Nyeriah merged 2 commits intoazerothcore:masterfrom
Nyeriah:standards
Mar 19, 2026
Merged

docs: add text output section to C++ code standards#1178
Nyeriah merged 2 commits intoazerothcore:masterfrom
Nyeriah:standards

Conversation

@Nyeriah
Copy link
Member

@Nyeriah Nyeriah commented Mar 13, 2026

This pull request adds a new section to the docs/cpp-code-standards.md file, introducing guidelines for text output and localization in scripts. The update emphasizes the use of acore_string for script text output and requires localization for all new strings.

Text output and localization guidelines:

  • Added a section recommending the use of acore_string for all script text output, such as command handlers and script messages.
  • Established a requirement for providing localization for all new strings in all available languages, with a tip suggesting the use of AI for translation assistance.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Contributor

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

Adds documentation to the C++ code standards to guide how scripts should emit user-facing text and how new strings should be localized.

Changes:

  • Introduces a “Text Output” section recommending acore_string for script text output.
  • States a requirement to provide localization for new strings across available languages, with an AI translation tip.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

NPC dialog, emotes, and other in-game text that is managed via database text systems (such as `creature_text`, `broadcast_text`, etc.) should continue to use those systems instead of `acore_string`.

When adding new strings, localization must be provided for all available languages.
Copy link
Member

Choose a reason for hiding this comment

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

This is eh in my mind

@Nyeriah Nyeriah merged commit 2850853 into azerothcore:master Mar 19, 2026
1 check passed
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.

3 participants