Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Half-Life] Missing Localization Strings #2387

Closed
ghost opened this issue May 4, 2019 · 4 comments
Closed

[Half-Life] Missing Localization Strings #2387

ghost opened this issue May 4, 2019 · 4 comments

Comments

@ghost
Copy link

ghost commented May 4, 2019

Half-Life has missing localization strings in its spectator mode menu.

image

image
(Note how the selected mode is localized correctly, but not the menu list elements)

Spec_ModeN strings are referenced in the game's titles.txt file but it seems to have no effect.

(Line 742)

Spec_Mode1
{
Locked Chase-Camera
}

Spec_Mode2
{
Free Chase-Camera
}

Spec_Mode3
{
Free-Look
}

Spec_Mode4
{
First Person
}

Spec_Mode5
{
Free Map Overview
}

Spec_Mode6
{
Chase Map Overview
}

Valve_xxxx strings are referenced in the game's spectatormenu.txt file, but the localization strings are nowhere to be seen.
(line 23)

"5" "#Valve_Close" 	"spec_menu 0"

"4" "#Valve_Help"	"spec_help"

"3" "#Valve_Settings"
{	
	TOGGLE 	"4" "#Valve_Chat_Messages"	"hud_saytext"
	
	TOGGLE	"3" "#Valve_Show_Status"	"spec_drawstatus"
	
	TOGGLE	"2" "#Valve_View_Cone"		"spec_drawcone"
	
	TOGGLE	"1" "#Valve_Player_Names"	"spec_drawnames"
}

TOGGLE	"2" "#Valve_Auto_Director"	"spec_autodirector"
"1" "#Valve_Show_Score"	"togglescores"

#2316 references a Join Team VGUI menu, however, it also lacks localization strings.

@SamVanheer
Copy link

SamVanheer commented May 4, 2019

Duplicate of #2311

The buttons use different localization keys than the command menu files.

For example spectcammenu.txt uses #Spec_Mode6 but the code uses #OBS_MAP_CHASE.

The localization keys used for the options drop down exist in resource/valve_language.txt but those are only used by VGUI2 code. Looks like they'll need to be duplicated in titles.txt to work.

@mikela-valve
Copy link
Member

@SamVanheer Actually this proved to go even deeper than the actual keys used by the buttons. The spectate GUI is VGUI1 not VGUI2, and as such the controls don't automatically localise themselves, so the buttons were just not having their text localised at all.

I've fixed that issue and added the missing settings strings to the titles.txt so this issue should be fixed in the next beta.

@mikela-valve
Copy link
Member

This should be fixed in beta update '15:46:27 Jun 11 2019 (8265)'.

@ghost
Copy link
Author

ghost commented Jun 21, 2019

Tested it in Linux, works without problems so far. I will comment on this same issue if there are problems.

Thank you @mikela-valve!.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants