Author: cwittich
Date: Mon Sep 3 21:40:30 2007
New Revision: 28821
URL:
http://svn.reactos.org/svn/reactos?rev=28821&view=rev
Log:
fix a small bug in set and added missing german translations
Modified:
trunk/reactos/base/shell/cmd/lang/de-DE.rc
trunk/reactos/base/shell/cmd/set.c
Modified: trunk/reactos/base/shell/cmd/lang/de-DE.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/lang/de-DE.…
==============================================================================
--- trunk/reactos/base/shell/cmd/lang/de-DE.rc (original)
+++ trunk/reactos/base/shell/cmd/lang/de-DE.rc Mon Sep 3 21:40:30 2007
@@ -643,4 +643,9 @@
STRING_SCREEN_COL, "ungültige Spalten-Angabe"
STRING_SCREEN_ROW, "ungültige Zeilen-Angabe"
STRING_TIMER_TIME "Timer %d ist %s: "
+
+STRING_INVALID_OPERAND, "Ungültiger Operand."
+STRING_EXPECTED_CLOSE_PAREN, "Erwartet ')'."
+STRING_EXPECTED_NUMBER_OR_VARIABLE,"Erwartet Nummer oder Variablennamen."
+STRING_SYNTAX_COMMAND_INCORRECT, "Syntaxfehler."
}
Modified: trunk/reactos/base/shell/cmd/set.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/set.c?rev=2…
==============================================================================
--- trunk/reactos/base/shell/cmd/set.c (original)
+++ trunk/reactos/base/shell/cmd/set.c Mon Sep 3 21:40:30 2007
@@ -112,6 +112,13 @@
return Success;
}
+ if ( !_tcsnicmp (param, _T("/"), 1) )
+ {
+ LoadString(CMD_ModuleHandle, STRING_SYNTAX_COMMAND_INCORRECT, szMsg,
RC_STRING_MAX_SIZE);
+ ConErrPrintf (szMsg, param);
+ return 0;
+ }
+
p = _tcschr (param, _T('='));
if (p)
{