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
+8 -2
View File
@@ -82,6 +82,12 @@ public MenuHandler_ExecCFG(Handle:menu, MenuAction:action, param1, param2)
PerformExec(param1, path);
}
else if (action == MenuAction_Display)
{
decl String:title[128];
Format(title, sizeof(title), "%T", "Choose Config", param1);
SetPanelTitle(Handle:param2, title);
}
}
public Action:Command_ExecCfg(client, args)
@@ -115,8 +121,8 @@ ParseConfigs()
CloseHandle(g_ConfigMenu);
}
g_ConfigMenu = CreateMenu(MenuHandler_ExecCFG);
SetMenuTitle(g_ConfigMenu, "Choose Config");
g_ConfigMenu = CreateMenu(MenuHandler_ExecCFG, MenuAction_Display);
SetMenuTitle(g_ConfigMenu, "%T", "Choose Config", LANG_SERVER);
SetMenuExitBackButton(g_ConfigMenu, true);
decl String:configPath[256];
+6 -1
View File
@@ -53,7 +53,12 @@ public MenuHandler_ChangeMap(Handle:menu, MenuAction:action, param1, param2)
new Handle:dp;
CreateDataTimer(3.0, Timer_ChangeMap, dp);
WritePackString(dp, map);
}
else if (action == MenuAction_Display)
{
decl String:title[128];
Format(title, sizeof(title), "%T", "Please select a map", param1);
SetPanelTitle(Handle:param2, title);
}
}