Replace syntactical keywords in error/warning messages by printf directives.
[pspp] / src / language / utilities / date.c
index f465eb37b5a4d8028ffa6e0abff62fa9926b4ee5..8afbe6562d9dc1c8b2fb9ef0345b9d1f91891c41 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPP - a program for statistical analysis.
-   Copyright (C) 2004 Free Software Foundation, Inc.
+   Copyright (C) 2004, 2010, 2011 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    along with this program.  If not, see <http://www.gnu.org/licenses/>. */
 
 #include <config.h>
-#include <language/command.h>
-#include <libpspp/message.h>
-#include <language/lexer/lexer.h>
+
+#include "language/command.h"
+#include "language/lexer/lexer.h"
+#include "libpspp/message.h"
 
 #include "gettext.h"
 #define _(msgid) gettext (msgid)
@@ -27,8 +28,8 @@ int
 cmd_use (struct lexer *lexer, struct dataset *ds UNUSED)
 {
   if (lex_match (lexer, T_ALL))
-    return lex_end_of_command (lexer);
+    return CMD_SUCCESS;
 
-  msg (SW, _("Only USE ALL is currently implemented."));
+  msg (SW, _("Only %s is currently implemented."), "USE ALL");
   return CMD_FAILURE;
 }