Skip to content

feat: localize settings subpanels UI strings - #119

Open
StartNight wants to merge 3 commits into
AnyRPG:localizationfrom
StartNight:feature/localization
Open

StartNight wants to merge 3 commits into
AnyRPG:localizationfrom
StartNight:feature/localization

Conversation

@StartNight

@StartNight StartNight commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR localizes all static text elements across the 5 settings subpanels (Sound, Video, Controls, User Interface, and Key Bindings) in MainSettingsMenuPanel.prefab, achieving complete localization coverage for the in-game Settings system.


Key Changes

1. String Tables Expansion

  • UI Shared Data.asset: Added 64 unique fixed m_Id key entries covering:
    • Common labels (Low, Medium, High, Off, Default Settings).
    • Audio settings (Master Volume, Music Volume, Effects Volume, Voice Volume, Ambient Volume, UI Volume).
    • Video settings (Full Screen, V-Sync, Resolution, Shadow Quality, Texture Quality, Graphics Quality).
    • Controls settings (Mouse Turn Speed, Invert Mouse, Gamepad Mode, etc.).
    • UI settings (Lock UI, window opacity sliders, action bars 1-7 toggles, unit frame toggles, etc.).
    • Key bindings categories (Movement, Action Bars, System).
  • UI_en.asset: Added corresponding English strings formatted in standard Title Case.
  • UI_zh-CN.asset: Added corresponding Simplified Chinese translations.

2. Prefab Event Bindings & Standardization

  • MainSettingsMenuPanel.prefab:
    • Attached LocalizeStringEvent components to 71 static TextMeshProUGUI GameObjects across the 5 subpanels and dynamically bound them to TMP_Text.set_text.
    • Standardized the static m_text properties in the prefab to Title Case, matching UI_en.asset (including Effects Volume and Medium) for a polished and consistent appearance in both Editor and Play modes.

Verification

  • Automated Two-Way Validation: 78 / 78 (100%) mapped text targets in MainSettingsMenuPanel.prefab passed string table lookup and bidirectional match checks.

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.

2 participants