Allow localizaton of more base plugin strings (bug 5120, r=asherkin).

This commit is contained in:
Nicholas Hastings
2013-04-08 08:00:13 -04:00
parent a963427967
commit c0d1aaa8a0
12 changed files with 105 additions and 22 deletions
+9 -1
View File
@@ -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;
}