Hi,
i tried to translate some plugin who use menu
PHP Code:
if(GetConVarInt(CatWeapons) == 1)
{
Format(weapons, sizeof(weapons), "%t", "Weapons");
AddMenuItem(menu, "g_WeaponsMenu", weapons);
}
Sometimes I have the good translation(fr) and sometimes I have language server (en).
I saw that :
It is possible to dynamically translate menus to each player through the MenuAction_DisplayItem callback. A special native, RedrawMenuItem, is used to transform the text while inside the callback. Let's redo the vote example from earlier to be translated.
But it's not clear cause I checked adminmenu.sp and it not using that.