diff -r 1ba9eb0f85c7 -r 4a2faafca477 core/MenuManager.cpp --- a/core/MenuManager.cpp Fri May 09 08:22:39 2008 +0000 +++ b/core/MenuManager.cpp Sat May 10 09:23:55 2008 +0000 @@ -41,6 +41,7 @@ #include "ShareSys.h" #include "HandleSys.h" #include "sourcemm_api.h" +#include "Translator.h" MenuManager g_Menus; VoteMenuHandler s_VoteHandler; @@ -585,14 +586,20 @@ { if (exitBackButton) { - CorePlayerTranslate(client, text, sizeof(text), "Back", NULL); + if (!CoreTranslate(text, sizeof(text), "%T", 2, NULL, "Back", &client)) + { + UTIL_Format(text, sizeof(text), "Back"); + } dr.style = ITEMDRAW_CONTROL; position = panel->DrawItem(dr); slots[position].type = ItemSel_ExitBack; } else { - CorePlayerTranslate(client, text, sizeof(text), "Previous", NULL); + if (!CoreTranslate(text, sizeof(text), "%T", 2, NULL, "Previous", &client)) + { + UTIL_Format(text, sizeof(text), "Previous"); + } dr.style = (displayPrev ? 0 : ITEMDRAW_DISABLED)|ITEMDRAW_CONTROL; position = panel->DrawItem(dr); slots[position].type = ItemSel_Back; @@ -610,7 +617,10 @@ /* NEXT */ if (displayNext || canDrawDisabled) { - CorePlayerTranslate(client, text, sizeof(text), "Next", NULL); + if (!CoreTranslate(text, sizeof(text), "%T", 2, NULL, "Next", &client)) + { + UTIL_Format(text, sizeof(text), "Next"); + } dr.style = (displayNext ? 0 : ITEMDRAW_DISABLED)|ITEMDRAW_CONTROL; position = panel->DrawItem(dr); slots[position].type = ItemSel_Next; @@ -638,7 +648,10 @@ /* EXIT */ if (exitButton) { - CorePlayerTranslate(client, text, sizeof(text), "Exit", NULL); + if (!CoreTranslate(text, sizeof(text), "%T", 2, NULL, "Exit", &client)) + { + UTIL_Format(text, sizeof(text), "Exit"); + } dr.style = ITEMDRAW_CONTROL; position = panel->DrawItem(dr); slots[position].type = ItemSel_Exit;