mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Remove all hardcode string to En.rc
svn path=/trunk/; revision=14868
This commit is contained in:
parent
fcedc0bf07
commit
39458d7a85
4 changed files with 49 additions and 30 deletions
|
@ -303,8 +303,23 @@ MOVE [/N][drive:][path]dirname1 dirname2\n\n \
|
|||
/N Nothing. Don everthing but move files or direcories.\n\n \
|
||||
Current limitations:\n \
|
||||
- You can't move a file or directory from one drive to another.\n"
|
||||
|
||||
|
||||
STRING_MSGBOX_HELP, "display a message box and return user responce\n\n \
|
||||
MSGBOX type ['title'] prompt\n\n \
|
||||
type button displayed\n \
|
||||
possible values are: OK, OKCANCEL,\n \
|
||||
YESNO, YESNOCANCEL\n \
|
||||
title title of message box\n \
|
||||
prompt text displayed by the message box\n\n\n \
|
||||
ERRORLEVEL is set according the button pressed:\n\n \
|
||||
YES : 10 | NO : 11\n \
|
||||
OK : 10 | CANCEL : 12\n"
|
||||
|
||||
STRING_PATH_HELP1, "Displays or sets a search path for executable files.\n\n \
|
||||
PATH [[drive:]path[;...]]\nPATH ;\n\n \
|
||||
Type PATH ; to clear all search-path settings and direct the command shell\n \
|
||||
to search only in the current directory.\n \
|
||||
Type PATH without parameters to display the current path.\n"
|
||||
|
||||
STRING_PROMPT_HELP1, "Changes the command prompt.\n\n \
|
||||
PROMPT [text]\n\n \
|
||||
|
@ -400,6 +415,8 @@ STRING_MOVE_ERROR2, "[Error]\n"
|
|||
|
||||
STRING_PARAM_ERROR, "Required parameter missing\n"
|
||||
|
||||
STRING_PATH_ERROR "CMD: Not in environment 'PATH'\n"
|
||||
|
||||
STRING_ERROR_PARAMETERF_ERROR, "Parameter format not correct - %c\n"
|
||||
STRING_ERROR_INVALID_SWITCH, "Invalid switch - /%c\n"
|
||||
STRING_ERROR_TOO_MANY_PARAMETERS, "Too many parameters - %s\n"
|
||||
|
|
|
@ -5,9 +5,13 @@
|
|||
*
|
||||
* 25 Aug 1999
|
||||
* started - Paolo Pantaleo <paolopan@freemail.it>
|
||||
*
|
||||
* 30-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>)
|
||||
* Remove all hardcode string to En.rc
|
||||
*/
|
||||
|
||||
#include "precomp.h"
|
||||
#include "resource.h"
|
||||
|
||||
#ifdef INCLUDE_CMD_MSGBOX
|
||||
|
||||
|
@ -28,6 +32,7 @@ INT CommandMsgbox (LPTSTR cmd, LPTSTR param)
|
|||
//and to find window handle to pass to MessageBox
|
||||
HWND hWnd;
|
||||
TCHAR buff[128];
|
||||
WCHAR szMsg[RC_STRING_MAX_SIZE];
|
||||
|
||||
//these are MessabeBox() parameters
|
||||
LPTSTR title, prompt="";
|
||||
|
@ -39,22 +44,8 @@ INT CommandMsgbox (LPTSTR cmd, LPTSTR param)
|
|||
|
||||
if (_tcsncmp (param, _T("/?"), 2) == 0)
|
||||
{
|
||||
ConOutPuts(_T(
|
||||
"display a message box and return user responce\n"
|
||||
"\n"
|
||||
"MSGBOX type [\"title\"] prompt\n"
|
||||
"\n"
|
||||
"type button displayed\n"
|
||||
" possible values are: OK, OKCANCEL,\n"
|
||||
" YESNO, YESNOCANCEL\n"
|
||||
"title title of message box\n"
|
||||
"prompt text displayed by the message box\n"
|
||||
"\n"
|
||||
"\n"
|
||||
"ERRORLEVEL is set according the button pressed:\n"
|
||||
"\n"
|
||||
"YES : 10 | NO : 11\n"
|
||||
"OK : 10 | CANCEL : 12\n"));
|
||||
LoadString( GetModuleHandle(NULL), STRING_MSGBOX_HELP, (LPTSTR) szMsg,sizeof(szMsg));
|
||||
ConOutPuts((LPTSTR)szMsg);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -21,8 +21,12 @@
|
|||
*
|
||||
* 24-Jan-1999 (Eric Kohl <ekohl@abo.rhein-zeitung.de>)
|
||||
* Fixed Win32 environment handling.
|
||||
*
|
||||
* 30-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>)
|
||||
* Remove all hardcode string to En.rc
|
||||
*/
|
||||
#include "precomp.h"
|
||||
#include "resource.h"
|
||||
|
||||
#ifdef INCLUDE_CMD_PATH
|
||||
|
||||
|
@ -32,13 +36,13 @@
|
|||
|
||||
INT cmd_path (LPTSTR cmd, LPTSTR param)
|
||||
{
|
||||
WCHAR szMsg[RC_STRING_MAX_SIZE];
|
||||
|
||||
if (!_tcsncmp (param, _T("/?"), 2))
|
||||
{
|
||||
ConOutPuts (_T("Displays or sets a search path for executable files.\n\n"
|
||||
"PATH [[drive:]path[;...]]\nPATH ;\n\n"
|
||||
"Type PATH ; to clear all search-path settings and direct the command shell\n"
|
||||
"to search only in the current directory.\n"
|
||||
"Type PATH without parameters to display the current path.\n"));
|
||||
{
|
||||
LoadString( GetModuleHandle(NULL), STRING_PATH_HELP1, (LPTSTR) szMsg,sizeof(szMsg));
|
||||
ConOutPuts ((LPTSTR)szMsg);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -52,7 +56,8 @@ INT cmd_path (LPTSTR cmd, LPTSTR param)
|
|||
dwBuffer = GetEnvironmentVariable (_T("PATH"), pszBuffer, ENV_BUFFER_SIZE);
|
||||
if (dwBuffer == 0)
|
||||
{
|
||||
ConErrPrintf (_T("CMD: Not in environment \"PATH\"\n"));
|
||||
LoadString( GetModuleHandle(NULL), STRING_PATH_ERROR, (LPTSTR) szMsg,sizeof(szMsg));
|
||||
ConErrPrintf ((LPTSTR)szMsg);
|
||||
return 0;
|
||||
}
|
||||
else if (dwBuffer > ENV_BUFFER_SIZE)
|
||||
|
|
|
@ -64,6 +64,8 @@
|
|||
#define STRING_MOVE_ERROR1 342
|
||||
#define STRING_MOVE_ERROR2 343
|
||||
#define STRING_PARAM_ERROR 344
|
||||
#define STRING_PATH_ERROR 345
|
||||
|
||||
|
||||
|
||||
#define STRING_ATTRIB_HELP 600
|
||||
|
@ -144,15 +146,19 @@
|
|||
#define STRING_MOVE_HELP1 662
|
||||
#define STRING_MOVE_HELP2 663
|
||||
|
||||
#define STRING_PAUSE_HELP1 664
|
||||
#define STRING_MSGBOX_HELP 664
|
||||
|
||||
#define STRING_PROMPT_HELP1 665
|
||||
#define STRING_PROMPT_HELP2 666
|
||||
#define STRING_PROMPT_HELP3 667
|
||||
#define STRING_PATH_HELP1 665
|
||||
|
||||
#define STRING_RMDIR_HELP 668
|
||||
#define STRING_PAUSE_HELP1 666
|
||||
|
||||
#define STRING_REM_HELP 669
|
||||
#define STRING_PROMPT_HELP1 667
|
||||
#define STRING_PROMPT_HELP2 668
|
||||
#define STRING_PROMPT_HELP3 669
|
||||
|
||||
#define STRING_RMDIR_HELP 670
|
||||
|
||||
#define STRING_REM_HELP 671
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue