summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xjournal.lisp3
-rw-r--r--macros.lisp5
2 files changed, 7 insertions, 1 deletions
diff --git a/journal.lisp b/journal.lisp
index 60bc06c..47ad91c 100755
--- a/journal.lisp
+++ b/journal.lisp
@@ -48,6 +48,7 @@
(defun show-atom-feed ()
(http-add-header "Last-Modified" (http-timestamp (compute-journal-last-modified-date)))
+ (http-add-header "Content-Language" "de")
(http-send-headers "application/atom+xml; charset=UTF-8")
(flet ((atom-time (time)
@@ -237,9 +238,11 @@
;; feel slower to the end user rather than faster.
;;
;; (http-add-header "Last-Modified" (http-timestamp (compute-journal-last-modified-date)))
+ (http-add-header "Content-Language" "de")
(http-send-headers "text/html; charset=UTF-8")
(<xhtml :xmlns "http://www.w3.org/1999/xhtml"
+ :lang "de"
(<:head
(<:title
(<:as-html
diff --git a/macros.lisp b/macros.lisp
index c8f2866..179adca 100644
--- a/macros.lisp
+++ b/macros.lisp
@@ -26,7 +26,10 @@
(yaclml:deftag <xhtml (&attribute dir lang xmlns (prologue t) &body body)
(when prologue
(emit-princ "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">"))
- (emit-open-tag "html" `(("dir" . ,dir) ("lang" . ,lang) ("xmlns" . ,xmlns)))
+ (emit-open-tag "html" `(("dir" . ,dir)
+ ("lang" . ,lang)
+ ("xml:lang" . ,lang)
+ ("xmlns" . ,xmlns)))
(emit-body body)
(emit-close-tag "html"))