How ijnokmsc/wowtranslatecontrol works
WoWTranslateControl is a Windows console and in-game DLL pair for real-time, bidirectional WoW 3.3.5 chat translation. The main workflow runs from game chat through the injected engine and local proxy, which filters and preprocesses messages, obtains a translation from the selected provider, and returns it to the game; outgoing translation is also supported. The README documents additional filtering, caching, glossary, setup, and diagnostics capabilities. Some native and pipeline details are unsampled, so those connections are limited to documented or indexed evidence.
Main entry points: ProxyServer.cs Translation proxy · direct_main.cpp Direct translation engine · MainWindow.xaml.cs Control console · ProviderManager.cs Provider selection
Components 26
Console and settings
- Control console
MainWindow.xaml.cs - App configuration
Models/AppConfig.cs - Provider entries
Models/ProviderEntry.cs - Glossary manager
GlossaryWindow.xaml.cs - Provider manager UI
ProviderWindow.xaml.cs
Proxy translation
- Translation proxy
Core/ProxyServer.cs - Message filters
Core/MessageFilter.cs - Filter stage
Core/Pipeline/FilterStage.cs - Glossary stage
Core/Pipeline/GlossaryStage.cs - Translation cache
Core/Pipeline/CacheStage.cs - Glossary store
Core/Glossary/GlossaryStore.cs - Term protection
Core/Glossary/GlossaryApplier.cs
Translation providers
- Provider selection
Core/Providers/ProviderManager.cs - llama provider
Core/Providers/LlamaCppUpstreamProvider.cs - OpenAI-compatible provider
Core/Providers/OpenAiCompatProvider.cs - Google provider
Core/Providers/GoogleFreeProvider.cs
In-game integration
- dinput8 proxy
patches/335/src/dinput8_proxy.cpp - Direct translation engine
patches/335/src/direct_main.cpp - Native translator
patches/335/src/translator.cpp - Lua driver
patches/335/src/driver_lua.h
Local model setup
- llama-server manager
Core/LlamaServerManager.cs - Model setup wizard
SetupWizardWindow.xaml.cs - Hardware and model advisor
Core/Hardware/ModelAdvisor.cs - Model downloader
Core/Hardware/Downloader.cs
Other components
- Player
- WoW client
Connections 29
- Player → WoW client: chats in
- WoW client → Direct translation engine: captures chat
- Direct translation engine → Translation proxy: sends requests
- Translation proxy → Direct translation engine: returns translations
- Direct translation engine → WoW client: rewrites chat
- Control console → Translation proxy: starts service
MainWindow.xaml.cs - Control console → llama-server manager: controls process
MainWindow.xaml.cs - Control console → App configuration: loads and saves
MainWindow.xaml.cs - Control console → Provider manager UI: opens manager
- Provider manager UI → App configuration: edits providers
ProviderWindow.xaml.cs - Glossary manager → Glossary store: manages terms
GlossaryWindow.xaml.cs - Translation proxy → Filter stage: runs stage
Core/ProxyServer.cs - Filter stage → Message filters: applies rules
Core/Pipeline/FilterStage.cs - Translation proxy → Glossary stage: runs stage
Core/ProxyServer.cs - Glossary stage → Glossary store: reads terms
Core/Pipeline/GlossaryStage.cs - Glossary stage → Term protection: protects terms
Core/Pipeline/GlossaryStage.cs - Translation proxy → Translation cache: checks and stores
Core/ProxyServer.cs - Translation proxy → Provider selection: requests translation
Core/ProxyServer.cs - Provider selection → llama provider: dispatches local
Core/Providers/ProviderManager.cs - Provider selection → OpenAI-compatible provider: dispatches OpenAI
Core/Providers/ProviderManager.cs - Provider selection → Google provider: dispatches Google
Core/Providers/ProviderManager.cs - llama provider → llama-server manager: sends inference request
Core/Providers/LlamaCppUpstreamProvider.cs - OpenAI-compatible provider → Term protection: protects terms
Core/Providers/OpenAiCompatProvider.cs - Model setup wizard → Hardware and model advisor: selects recommendation
SetupWizardWindow.xaml.cs - Model setup wizard → Model downloader: downloads files
SetupWizardWindow.xaml.cs - Control console → Model setup wizard: opens wizard
MainWindow.xaml.cs - dinput8 proxy → Direct translation engine: loads engine
- Direct translation engine → Native translator: uses translator
- Direct translation engine → Lua driver: injects driver
patches/335/src/direct_main.cpp