aboutsummaryrefslogtreecommitdiff
path: root/module/calp/html/view/calendar/week.scm
diff options
context:
space:
mode:
Diffstat (limited to 'module/calp/html/view/calendar/week.scm')
-rw-r--r--module/calp/html/view/calendar/week.scm9
1 files changed, 7 insertions, 2 deletions
diff --git a/module/calp/html/view/calendar/week.scm b/module/calp/html/view/calendar/week.scm
index 38e7501b..16337102 100644
--- a/module/calp/html/view/calendar/week.scm
+++ b/module/calp/html/view/calendar/week.scm
@@ -17,6 +17,7 @@
:select (make-block output-uid) )
;; :use-module ((calp html components)
;; :select ())
+ :use-module (calp translation)
:use-module ((vcomponent util group)
:select (group-stream get-groups-between))
:use-module (ice-9 format)
@@ -31,7 +32,9 @@
(div (@ (class "days"))
;; Top left area
(div (@ (class "week-indicator"))
- (span (@ (style "font-size: 50%")) "v.") ; figure out if we want this...
+ (span (@ (style "font-size: 50%"))
+ ;; Week number prefix
+ ,(_ "v."))
,@(->> (week-number start-date)
number->string string->list
(map (lambda (c) `(span ,(string c))))))
@@ -44,8 +47,10 @@
,@(map (lambda (day-date)
`(div (@ (class "meta"))
(span (@ (class "daydate"))
- ,(date->string day-date "~Y-~m-~d"))
+ ;; Week view header format
+ ,(date->string day-date (_ "~Y-~m-~d")))
(span (@ (class "dayname"))
+ ;; TODO translation here?
,(string-titlecase (date->string day-date "~a")))))
range)
,@(stream->list