feat: localize settings subpanels UI strings - #119
Open
StartNight wants to merge 3 commits into
Open
StartNight wants to merge 3 commits into
StartNight wants to merge 3 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 fixedm_Idkey entries covering:Low,Medium,High,Off,Default Settings).Master Volume,Music Volume,Effects Volume,Voice Volume,Ambient Volume,UI Volume).Full Screen,V-Sync,Resolution,Shadow Quality,Texture Quality,Graphics Quality).Mouse Turn Speed,Invert Mouse,Gamepad Mode, etc.).Lock UI, window opacity sliders, action bars 1-7 toggles, unit frame toggles, etc.).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:LocalizeStringEventcomponents to 71 staticTextMeshProUGUIGameObjects across the 5 subpanels and dynamically bound them toTMP_Text.set_text.m_textproperties in the prefab to Title Case, matchingUI_en.asset(includingEffects VolumeandMedium) for a polished and consistent appearance in both Editor and Play modes.Verification
MainSettingsMenuPanel.prefabpassed string table lookup and bidirectional match checks.