mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-27 07:15:37 +03:00
Fix back/next/exit buttons not translated in plugin's cvar/command menus (#667)
* Menu buttons stayed english in Plugin's cvar/command menus That worked, but if there is any better solution to get it working feel free to edit :D * Changed language parsing to %L
This commit is contained in:
parent
6dba7c4f17
commit
211003750c
@ -151,6 +151,9 @@ stock DisplayPluginMenu(id,const MenuText[], const Handler[], const Command[], c
|
||||
}
|
||||
}
|
||||
|
||||
menu_setprop(Menu,MPROP_BACKNAME,fmt("%L", id, "BACK"));
|
||||
menu_setprop(Menu,MPROP_NEXTNAME,fmt("%L", id, "MORE"));
|
||||
menu_setprop(Menu,MPROP_EXITNAME,fmt("%L", id, "EXIT"));
|
||||
menu_setprop(Menu,MPROP_NUMBER_COLOR,"\y");
|
||||
menu_setprop(Menu,MPROP_EXIT,MEXIT_ALL);
|
||||
menu_display(id,Menu,0);
|
||||
@ -564,6 +567,9 @@ public DisplayCvarMenu(id, plid, page)
|
||||
}
|
||||
}
|
||||
|
||||
menu_setprop(Menu,MPROP_BACKNAME,fmt("%L", id, "BACK"));
|
||||
menu_setprop(Menu,MPROP_NEXTNAME,fmt("%L", id, "MORE"));
|
||||
menu_setprop(Menu,MPROP_EXITNAME,fmt("%L", id, "EXIT"));
|
||||
menu_setprop(Menu,MPROP_EXIT,MEXIT_ALL);
|
||||
menu_setprop(Menu,MPROP_NUMBER_COLOR,"\y");
|
||||
menu_display(id,Menu,page);
|
||||
@ -882,6 +888,10 @@ public DisplayCmdMenu(id, plid, page)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
menu_setprop(Menu,MPROP_BACKNAME,fmt("%L", id, "BACK"));
|
||||
menu_setprop(Menu,MPROP_NEXTNAME,fmt("%L", id, "MORE"));
|
||||
menu_setprop(Menu,MPROP_EXITNAME,fmt("%L", id, "EXIT"));
|
||||
menu_setprop(Menu,MPROP_NUMBER_COLOR,"\y");
|
||||
menu_display(id,Menu,page);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user