Skip to content

Support Multi language in chat_processor.cfg file #9

@crashzk

Description

@crashzk

CSGO would have it in several languages, so we can fully translate it. It would be interesting to apply this multi language option in the chat_processor.cfg file:

"chat-processor"
{
	"csgo"
	{
		"Cstrike_Chat_CT_Loc"	"(Counter-Terrorist) {1} : {2}"
		"Cstrike_Chat_CT"	"(Counter-Terrorist) {1} : {2}"
		"Cstrike_Chat_T_Loc"	"(Terrorist) {1} : {2}"
		"Cstrike_Chat_T"	"(Terrorist) {1} : {2}"
		"Cstrike_Chat_CT_Dead"	"*DEAD*(Counter-Terrorist) {1} : {2}"
		"Cstrike_Chat_T_Dead"	"*DEAD*(Terrorist) {1} : {2}"
		"Cstrike_Chat_Spec"	"(Spectator) {1} : {2}"
		"Cstrike_Chat_All"	"{1} : {2}"
		"Cstrike_Chat_AllDead"	"*DEAD* {1} : {2}"
		"Cstrike_Chat_AllSpec"	"*SPEC* {1} : {2}"
	}
	
	"csco"
	{
		"Cstrike_Chat_CT_Loc"	"(Counter-Terrorist) {1} : {2}"
		"Cstrike_Chat_CT"	"(Counter-Terrorist) {1} : {2}"
		"Cstrike_Chat_T_Loc"	"(Terrorist) {1} : {2}"
		"Cstrike_Chat_T"	"(Terrorist) {1} : {2}"
		"Cstrike_Chat_CT_Dead"	"*DEAD*(Counter-Terrorist) {1} : {2}"
		"Cstrike_Chat_T_Dead"	"*DEAD*(Terrorist) {1} : {2}"
		"Cstrike_Chat_Spec"	"(Spectator) {1} : {2}"
		"Cstrike_Chat_All"	"{1} : {2}"
		"Cstrike_Chat_AllDead"	"*DEAD* {1} : {2}"
		"Cstrike_Chat_AllSpec"	"*SPEC* {1} : {2}"
	}
	
	"cstrike"
	{
		"Cstrike_Chat_CT_Loc"	"(Counter-Terrorist) {1}{3} : {2}"
		"Cstrike_Chat_CT"	"(Counter-Terrorist) {1}{3} : {2}"
		"Cstrike_Chat_T_Loc"	"(Terrorist) {1}{3} : {2}"
		"Cstrike_Chat_T"	"(Terrorist) {1}{3} : {2}"
		"Cstrike_Chat_CT_Dead"	"*DEAD*(Counter-Terrorist) {1}{3} : {2}"
		"Cstrike_Chat_T_Dead"	"*DEAD*(Terrorist) {1}{3} : {2}"
		"Cstrike_Chat_Spec"	"(Spectator) {1}{3} : {2}"
		"Cstrike_Chat_All"	"{1}{3} : {2}"
		"Cstrike_Chat_AllDead"	"*DEAD* {1}{3} : {2}"
		"Cstrike_Chat_AllSpec"	"*SPEC* {1}{3} : {2}"
	}
	
	"left4dead"
	{
		"L4D_Chat_Infected"	"(Infected) {1} : {2}"
		"L4D_Chat_Survivor"	"(Survivor) {1} : {2}"
		"L4D_Chat_Infected_Dead"	"*DEAD*(Infected) {1} : {2}"
		"L4D_Chat_Survivor_Dead"	"*DEAD*(Survivor) {1} : {2}"
		"L4D_Chat_Spec"	"(Spectator) {1} : {2}"
		"L4D_Chat_All"	"{1} : {2}"
		"L4D_Chat_AllDead"	"*DEAD* {1} : {2}"
		"L4D_Chat_AllSpec"	"*SPEC* {1} : {2}"
	}
	
	"left4dead2"
	{
		"L4D_Chat_Infected"	"(Infected) {1} : {2}"
		"L4D_Chat_Survivor"	"(Survivor) {1} : {2}"
		"L4D_Chat_Infected_Dead"	"*DEAD*(Infected) {1} : {2}"
		"L4D_Chat_Survivor_Dead"	"*DEAD*(Survivor) {1} : {2}"
		"L4D_Chat_Spec"	"(Spectator) {1} : {2}"
		"L4D_Chat_All"	"{1} : {2}"
		"L4D_Chat_AllDead"	"*DEAD* {1} : {2}"
		"L4D_Chat_AllSpec"	"*SPEC* {1} : {2}"
	}
	
	"tf"
	{
		"TF_Chat_Team_Loc"	"(TEAM) {1} : {2}"
		"TF_Chat_Team"	"(TEAM) {1} : {2}"
		"TF_Chat_Team_Dead"	"*DEAD*(TEAM) {1} : {2}"
		"TF_Chat_Spec"	"(Spectator) {1} : {2}"
		"TF_Chat_All"	"{1} : {2}"
		"TF_Chat_AllDead"	"*DEAD* {1} : {2}"
		"TF_Chat_AllSpec"	"*SPEC* {1} : {2}"
		"TF_Chat_Coach"	"(Coach) {1} : {2}"
	}
	
	"tf2classic"
	{
		"TF_Chat_Team_Loc"	"(TEAM) {1} : {2}"
		"TF_Chat_Team"	"(TEAM) {1} : {2}"
		"TF_Chat_Team_Dead"	"*DEAD*(TEAM) {1} : {2}"
		"TF_Chat_Spec"	"(Spectator) {1} : {2}"
		"TF_Chat_All"	"{1} : {2}"
		"TF_Chat_AllDead"	"*DEAD* {1} : {2}"
		"TF_Chat_AllSpec"	"*SPEC* {1} : {2}"
	}
	
	"hl2mp"
	{
		"HL2MP_Chat_Team_Loc"	"(TEAM) {1} : {2}"
		"HL2MP_Chat_Team"	"(TEAM) {1} : {2}"
		"HL2MP_Chat_Team_Dead"	"*DEAD*(TEAM) {1} : {2}"
		"HL2MP_Chat_Spec"	"(Spectator) {1} : {2}"
		"HL2MP_Chat_All"	"{1} : {2}"
		"HL2MP_Chat_AllDead"	"*DEAD* {1} : {2}"
		"HL2MP_Chat_AllSpec"	"*SPEC* {1} : {2}"
	}
}

This way we can translate team names and etc into each language, and the server owner can choose which one he wants to use.

I thought of creating the chat-processor folder and inside it the files chat_processor_english.cfg, chat_processor_brazilian.cfg and so on, each in its own language.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions