Hey guys, can anyone help me add a translation file to this? I want the menu title and options to be translatable but I don't know the proper format for attaching a translation file to these lines.
PHP Code:
public Action Command_Warp(int client, int args)
{
if(!l4d_ass_enable.BoolValue || !l4d_ass_teleport_enable.BoolValue || !l4d_ass_teleport_vote.BoolValue || l4d_ass_teleport_auto.BoolValue || NumTanks3)
return;
if(!l4d_ass_teleport_tank.BoolValue)
CountTanks();
if(l4d_ass_teleport_vote.BoolValue)
{
char cmEntry[8];
Menu chooseMenu = CreateMenu(chooseMenuHandler2);
SetVoteResultCallback(chooseMenu, chooseMenuResults2);
chooseMenu.SetTitle("Teleport speedrunners?");
IntToString(0, cmEntry, sizeof(cmEntry));
chooseMenu.AddItem(cmEntry, "Yes");
IntToString(1, cmEntry, sizeof(cmEntry));
chooseMenu.AddItem(cmEntry, "No");
SetMenuPagination(chooseMenu, MENU_NO_PAGINATION);
int totalHumans, humanPlayers[MAXPLAYERS+1];
for(int i = 1; i <= MaxClients; i++)
{
if(!IsValidClient(i))
continue;
humanPlayers[totalHumans++] = i;
}
VoteMenu(chooseMenu, humanPlayers, totalHumans, 30);
}
}
I tried this but it didn't work:
PHP Code:
chooseMenu.SetTitle("%T", "TeleportSpeedrunners");
chooseMenu.AddItem(cmEntry, "%T", "YesOption");
chooseMenu.AddItem(cmEntry, "%T", "NoOption");
__________________