modular smoke & cleanup.
src/i18n-hello-world.lisp
Sun Jan 10 09:54:26 CET 2010 Tobias Rautenkranz <tobias@rautenkranz.ch>
* modular smoke & cleanup.
--- old-qt.examples/src/i18n-hello-world.lisp 2014-10-30 07:36:29.000000000 +0100
+++ new-qt.examples/src/i18n-hello-world.lisp 2014-10-30 07:36:29.000000000 +0100
@@ -6,23 +6,20 @@
(defun i18n-hello-world ()
"i18n hello world"
(qt:with-app ()
- ;; ensures that the message catalogs are found regardless
- ;; of the current directory.
- (let ((source-path *default-pathname-defaults*))
- (qt:with-translator ("hello-world"
- *default-pathname-defaults*
- source-path)
- (let ((widget (make-instance 'qt:label)))
- (setf (cxx:window-title widget) (qt:tr "Lisp Qt Example" "hello-world")
- (cxx:text widget) (format nil (qt:tr "<h1>Hello world</h1>
+ (qt:with-translator ("hello-world"
+ *default-pathname-defaults*
+ *source-path*)
+ (let ((widget (make-instance 'qt:label)))
+ (setf (cxx:window-title widget) (qt:tr "Lisp Qt Example" "hello-world")
+ (cxx:text widget) (format nil (qt:tr "<h1>Hello world</h1>
You are running ~A version ~A on a ~A ~A")
- (lisp-implementation-type)
- (lisp-implementation-version)
- (software-type)
- (software-version)))
- (cxx:show widget)
- (qt:exec))))))
+ (lisp-implementation-type)
+ (lisp-implementation-version)
+ (software-type)
+ (software-version)))
+ (cxx:show widget)
+ (qt:exec)))))
;; FIXME:
;; calling #'software-version from the qt:application event loop