@@ -6177,12 +6177,21 @@ static grub_err_t ventoy_cmd_fs_ignore_case(grub_extcmd_context_t ctxt, int argc
61776177 return 0 ;
61786178}
61796179
6180+ static grub_err_t ventoy_cmd_init_menu_lang (grub_extcmd_context_t ctxt , int argc , char * * args )
6181+ {
6182+ (void )ctxt ;
6183+ (void )argc ;
6184+
6185+ ventoy_plugin_load_menu_lang (1 , args [0 ]);
6186+ VENTOY_CMD_RETURN (0 );
6187+ }
6188+
61806189static grub_err_t ventoy_cmd_load_menu_lang (grub_extcmd_context_t ctxt , int argc , char * * args )
61816190{
61826191 (void )ctxt ;
61836192 (void )argc ;
61846193
6185- ventoy_plugin_load_menu_lang (args [0 ]);
6194+ ventoy_plugin_load_menu_lang (0 , args [0 ]);
61866195 VENTOY_CMD_RETURN (0 );
61876196}
61886197
@@ -6399,6 +6408,7 @@ static cmd_para ventoy_cmds[] =
63996408 { "vt_limine_menu" , ventoy_cmd_linux_limine_menu , 0 , NULL , "" , "" , NULL },
64006409 { "vt_secondary_recover_mode" , ventoy_cmd_secondary_recover_mode , 0 , NULL , "" , "" , NULL },
64016410 { "vt_load_menu_lang" , ventoy_cmd_load_menu_lang , 0 , NULL , "" , "" , NULL },
6411+ { "vt_init_menu_lang" , ventoy_cmd_init_menu_lang , 0 , NULL , "" , "" , NULL },
64026412 { "vt_cur_menu_lang" , ventoy_cmd_cur_menu_lang , 0 , NULL , "" , "" , NULL },
64036413};
64046414
0 commit comments