Allow localizaton of more base plugin strings (bug 5120, r=asherkin).
This commit is contained in:
@@ -84,7 +84,9 @@ ConfirmVote(client)
|
||||
SetMenuTitle(menu, title);
|
||||
SetMenuExitBackButton(menu, true);
|
||||
|
||||
AddMenuItem(menu, "Confirm", "Start the Vote");
|
||||
decl String:itemtext[256];
|
||||
Format(itemtext, sizeof(itemtext), "%T", "Start the Vote", client);
|
||||
AddMenuItem(menu, "Confirm", itemtext);
|
||||
|
||||
DisplayMenu(menu, client, MENU_TIME_FOREVER);
|
||||
}
|
||||
@@ -168,6 +170,12 @@ public MenuHandler_Map(Handle:menu, MenuAction:action, param1, param2)
|
||||
ConfirmVote(param1);
|
||||
}
|
||||
}
|
||||
else if (action == MenuAction_Display)
|
||||
{
|
||||
decl String:title[128];
|
||||
Format(title, sizeof(title), "%T", "Please select a map", param1);
|
||||
SetPanelTitle(Handle:param2, title);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user