repos
/
qt.examples
/ annotate_shade
summary
|
shortlog
|
log
|
tree
|
commit
|
commitdiff
|
headdiff
|
annotate
|
headblob
|
headfilediff
|
filehistory
normal
|
plain
|
shade
|
zebra
ASDF support
Annotate for file src/i18n-hello-world.lisp
2009-04-14 tobias
1
;;; Copyright 2009 Tobias Rautenkranz
14:29:22 '
2
;;; License: X11 license
'
3
2009-04-05 tobias
4
(in-package :qt.examples)
15:36:46 '
5
'
6
(defun i18n-hello-world ()
'
7
"i18n hello world"
2009-07-01 tobias
8
(qt:with-app
11:01:24 '
9
;; ensures that the message catalogs are found regardless
'
10
;; of the current directory.
2009-05-28 tobias
11
(let ((source-path
14:23:33 '
12
#+mudballs (directory-namestring
'
13
(mb.sysdef:input-file
'
14
(mb.sysdef:find-component :qt.examples "src"
'
15
"i18n-hello-world")))
'
16
#-mudballs *default-pathname-defaults*))
2009-07-01 tobias
17
(qt:with-translator ("hello-world"
11:01:24 '
18
*default-pathname-defaults*
'
19
source-path)
'
20
(let ((widget (make-instance 'qt:label)))
'
21
(setf (cxx:window-title widget) (qt:tr "Lisp Qt Example" "hello-world")
'
22
(cxx:text widget) (format nil (qt:tr "<h1>Hello world</h1>
2009-04-05 tobias
23
15:36:46 '
24
You are running ~A version ~A on a ~A ~A")
2009-07-01 tobias
25
(lisp-implementation-type)
11:01:24 '
26
(lisp-implementation-version)
'
27
(software-type)
'
28
(software-version)))
'
29
(cxx:show widget)
'
30
(qt:exec widget))))))