← Alle PRs
#1324

Chat: localize command output, stop draw-time re-translation

sauber CI rot GitHub ↗

feat/cmd-output-l10n · PurpleFuchs · 6 Dateien · +173 −48 · 2026-10-28

Zusammenfassung

Card d2f0b3.

DrawLineOfText gains a RawText flag. Stored log lines are display-final and must not re-run LocaleManager.Get every frame - a stored string that happens to equal a locale key silently swaps at draw time (e.g. a save name matching a key). Both chat draw sites (active DrawChatWindow, collapsed ChatWindow overlay) pass RawText=true.

CommandParser wraps all user-facing output in L_Get at emission: concat fragments become %s/%d format keys, command descriptions localize inside the /help output. 58 new keys in English.lua + German.lua.

Note: the "Command error:" literal on PR #1323 (pcall dispatch) gets the same L_Get wrap once both merge - flagged, not a blocker.

Verified: per-file luajit clean.

Geänderte Dateien (6)
Source/Data/Locale/English.luageändert+58 −0
Source/Data/Locale/German.luageändert+58 −0
Source/GuiElements/Chat/DrawChatWindow.luageändert+1 −1
Source/GuiElements/DrawLineOfText.luageändert+7 −2
Source/Libraries/Commands/CommandParser.luageändert+47 −44
Source/Objects/Gui/ChatWindow.luageändert+2 −1