added more internal strings to the language file
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@400
This commit is contained in:
parent
b6ee1caa6d
commit
2460aa3bf9
4 changed files with 72 additions and 39 deletions
|
@ -202,7 +202,21 @@ void SHELL_Init() {
|
|||
MSG_Add("SHELL_EXECUTE_DRIVE_NOT_FOUND","Drive %c does not exist!\n");
|
||||
MSG_Add("SHELL_EXECUTE_ILLEGAL_COMMAND","Illegal command: %s.\n");
|
||||
MSG_Add("SHELL_STARTUP","DOSBox Shell v0.40\nFor Help and supported commands type: HELP\n\nHAVE FUN!\nThe DOSBox Team\n\n");
|
||||
/* Regular startup */
|
||||
MSG_Add("SHELL_CMD_CHDIR_HELP","Change Directory.\n");
|
||||
MSG_Add("SHELL_CMD_CLS_HELP","Clear screen.\n");
|
||||
MSG_Add("SHELL_CMD_DIR_HELP","Directory View.\n");
|
||||
MSG_Add("SHELL_CMD_ECHO_HELP","Display messages and enable/disable command echoing.\n");
|
||||
MSG_Add("SHELL_CMD_EXIT_HELP","Exit from the shell.\n");
|
||||
MSG_Add("SHELL_CMD_HELP_HELP","Show help.\n");
|
||||
MSG_Add("SHELL_CMD_MKDIR_HELP","Make Directory.\n");
|
||||
MSG_Add("SHELL_CMD_RMDIR_HELP","Remove Directory.\n");
|
||||
MSG_Add("SHELL_CMD_SET_HELP","Change environment variables.\n");
|
||||
MSG_Add("SHELL_CMD_IF_HELP","Performs conditional processing in batch programs.\n");
|
||||
MSG_Add("SHELL_CMD_GOTO_HELP","Jump to a labeled line in a batch script.\n");
|
||||
MSG_Add("SHELL_CMD_TYPE_HELP","Display the contents of a text-file.\n");
|
||||
MSG_Add("SHELL_CMD_REM_HELP","Add comments in a batch file.\n");
|
||||
|
||||
/* Regular startup */
|
||||
call_shellstop=CALLBACK_Allocate();
|
||||
|
||||
CALLBACK_Setup(call_shellstop,shellstop_handler,CB_IRET);
|
||||
|
|
|
@ -24,20 +24,20 @@
|
|||
|
||||
|
||||
static SHELL_Cmd cmd_list[]={
|
||||
"CD", 0, &DOS_Shell::CMD_CHDIR, "Change Directory.",
|
||||
"CLS", 0, &DOS_Shell::CMD_CLS, "Clear screen.",
|
||||
"CD", 0, &DOS_Shell::CMD_CHDIR, "SHELL_CMD_CHDIR_HELP",
|
||||
"CLS", 0, &DOS_Shell::CMD_CLS, "SHELL_CMD_CLS_HELP",
|
||||
// "COPY", 0, &DOS_Shell::CMD_COPY, "Copy Files.",
|
||||
"DIR", 0, &DOS_Shell::CMD_DIR, "Directory View.",
|
||||
"ECHO", 0, &DOS_Shell::CMD_ECHO, "Display messages and enable/disable command echoing.",
|
||||
"EXIT", 0, &DOS_Shell::CMD_EXIT, "Exit from the shell.",
|
||||
"HELP", 0, &DOS_Shell::CMD_HELP, "Show help.",
|
||||
"MD", 0, &DOS_Shell::CMD_MKDIR, "Make Directory.",
|
||||
"RD", 0, &DOS_Shell::CMD_RMDIR, "Remove Directory.",
|
||||
"SET", 0, &DOS_Shell::CMD_SET, "Change environment variables.",
|
||||
"IF", 0, &DOS_Shell::CMD_IF, "Performs conditional processing in batch programs.",
|
||||
"GOTO", 0, &DOS_Shell::CMD_GOTO, "Jump to a labeled line in a batch script.",
|
||||
"TYPE", 0, &DOS_Shell::CMD_TYPE, "Display the contents of a text-file.",
|
||||
"REM", 0, &DOS_Shell::CMD_REM, "Add comments in a batch file.",
|
||||
"DIR", 0, &DOS_Shell::CMD_DIR, "SHELL_CMD_DIR_HELP",
|
||||
"ECHO", 0, &DOS_Shell::CMD_ECHO, "SHELL_CMD_ECHO_HELP",
|
||||
"EXIT", 0, &DOS_Shell::CMD_EXIT, "SHELL_CMD_EXIT_HELP",
|
||||
"HELP", 0, &DOS_Shell::CMD_HELP, "SHELL_CMD_HELP_HELP",
|
||||
"MD", 0, &DOS_Shell::CMD_MKDIR, "SHELL_CMD_MKDIR_HELP",
|
||||
"RD", 0, &DOS_Shell::CMD_RMDIR, "SHELL_CMD_RMDIR_HELP",
|
||||
"SET", 0, &DOS_Shell::CMD_SET, "SHELL_CMD_SET_HELP",
|
||||
"IF", 0, &DOS_Shell::CMD_IF, "SHELL_CMD_IF_HELP",
|
||||
"GOTO", 0, &DOS_Shell::CMD_GOTO, "SHELL_CMD_GOTO_HELP",
|
||||
"TYPE", 0, &DOS_Shell::CMD_TYPE, "SHELL_CMD_TYPE_HELP",
|
||||
"REM", 0, &DOS_Shell::CMD_REM, "SHELL_CMD_REM_HELP",
|
||||
|
||||
/*
|
||||
"CHDIR", 0, &DOS_Shell::CMD_CHDIR, "Change Directory",
|
||||
|
@ -85,7 +85,7 @@ void DOS_Shell::CMD_HELP(char * args){
|
|||
WriteOut(MSG_Get("SHELL_CMD_HELP"));
|
||||
Bit32u cmd_index=0;
|
||||
while (cmd_list[cmd_index].name) {
|
||||
if (!cmd_list[cmd_index].flags) WriteOut("%-8s %s\n",cmd_list[cmd_index].name,cmd_list[cmd_index].help);
|
||||
if (!cmd_list[cmd_index].flags) WriteOut("%-8s %s",cmd_list[cmd_index].name,MSG_Get(cmd_list[cmd_index].help));
|
||||
cmd_index++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue