Skip to content

Commit

Permalink
Add translations in confirm menus.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kailo97 committed Jun 8, 2015
1 parent 4736e36 commit 0736681
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions addons/sourcemod/scripting/smartjaildoors.sp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max
public void OnPluginStart()
{
LoadTranslations("smartjaildoors.phrases");
LoadTranslations("common.phrases");

kv = new KeyValues("smartjaildoors");
kv.ImportFromFile(DATAFILE);
Expand Down Expand Up @@ -412,8 +413,11 @@ void ShowConfirmMenu(int client, ConfirmMenuHandler handler, any data = 0, const
VFormat(buffer, sizeof(buffer), title, 5);
menu.SetTitle(buffer);
}
menu.AddItem("yes", "Yes");
menu.AddItem("no", "No");
char buffer[128];
Format(buffer, sizeof(buffer), "%t", "Yes");
menu.AddItem("yes", buffer);
Format(buffer, sizeof(buffer), "%t", "No");
menu.AddItem("no", buffer);
MenuDataPasser[client] = new DataPack();
WritePackFunction(MenuDataPasser[client], handler);
if (data != 0) {
Expand Down

0 comments on commit 0736681

Please sign in to comment.