1 #include "dialog_settings_user_languagewarning.qh"
3 #include "textlabel.qh"
4 #include "commandbutton.qh"
6 void XonoticLanguageWarningDialog_fill(entity me)
10 me.TD(me, 2, 4, e = makeXonoticTextLabel(0,
11 _("While connected language changes will be applied only to the menu, full language changes will take effect starting from the next game")));
13 e.allowWrap_spacing = 0.5;
17 // reconnect command doesn't work properly, otherwise it would replace disconnect
18 me.TD(me, 1, 2, e = makeXonoticCommandButton(_("Disconnect now"), '0 0 0', "disconnect", 0));
19 me.TD(me, 1, 2, e = makeXonoticCommandButton(_("Switch language"), '0 0 0', "prvm_language \"$_menu_prvm_language\"; menu_restart; menu_cmd languageselect", 0));