CMUCL commit: src/code (commandline.lisp)

Raymond Toy rtoy at common-lisp.net
Sun May 16 16:51:55 CEST 2010


    Date: Sunday, May 16, 2010 @ 10:51:55
  Author: rtoy
    Path: /project/cmucl/cvsroot/src/code

Modified: commandline.lisp

o Forgot to mark one translatable string.
o Gettext doens't work with NIL.


------------------+
 commandline.lisp |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)


Index: src/code/commandline.lisp
diff -u src/code/commandline.lisp:1.23 src/code/commandline.lisp:1.24
--- src/code/commandline.lisp:1.23	Sun May 16 08:29:32 2010
+++ src/code/commandline.lisp	Sun May 16 10:51:55 2010
@@ -5,7 +5,7 @@
 ;;; Carnegie Mellon University, and has been placed in the public domain.
 ;;;
 (ext:file-comment
-  "$Header: /project/cmucl/cvsroot/src/code/commandline.lisp,v 1.23 2010-05-16 12:29:32 rtoy Exp $")
+  "$Header: /project/cmucl/cvsroot/src/code/commandline.lisp,v 1.24 2010-05-16 14:51:55 rtoy Exp $")
 ;;;
 ;;; **********************************************************************
 ;;;
@@ -304,12 +304,12 @@
 
 (defun help-switch-demon (switch)
   (declare (ignore switch))
-  (format t "~&Usage: ~A <options>~2%" *command-line-utility-name*)
+  (format t (intl:gettext "~&Usage: ~A <options>~2%") *command-line-utility-name*)
   (dolist (s (sort *legal-cmd-line-switches* #'string<
 		   :key #'car))
     (destructuring-bind (name doc arg)
 	s
-      (format t "    -~A ~@[~A~]~%" name (intl:gettext arg))
+      (format t "    -~A ~@[~A~]~%" name (if arg (intl:gettext arg)))
       ;; Poor man's formatting of the help string
       (with-input-from-string (stream (intl:gettext doc))
 	(loop for line = (read-line stream nil nil)



More information about the cmucl-commit mailing list