mirror of
https://github.com/BepInEx/BepInEx.ConfigurationManager.git
synced 2026-11-21 07:29:24 -10:00
IMGUI translators replace GUIContent.text at draw time, after GUILayout measured the control. A string argument is a temporary GUIContent reset to the original text on every call, so translated buttons were clipped to the width of the English word. A persistent GUIContent keeps the replaced text and is measured correctly from the next frame on. The Russian strings ship as a plugin-specific XUnity.AutoTranslator file instead of code. Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>