aboutsummaryrefslogtreecommitdiff
path: root/module/datetime
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-10-14 21:08:16 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-10-16 23:28:34 +0200
commit78fd74622dca5f2def261506c3f8d4c0a940a6c4 (patch)
tree87b8362454c759b680fe566229b5adbc3f25e712 /module/datetime
parentChange NOTE to TODO. (diff)
downloadcalp-78fd74622dca5f2def261506c3f8d4c0a940a6c4.tar.gz
calp-78fd74622dca5f2def261506c3f8d4c0a940a6c4.tar.xz
Change gettext '_' to 'G_'.
Guile 3 reserves _ for other stuff.
Diffstat (limited to 'module/datetime')
-rw-r--r--module/datetime/instance.scm4
-rw-r--r--module/datetime/timespec.scm2
-rw-r--r--module/datetime/zic.scm16
3 files changed, 11 insertions, 11 deletions
diff --git a/module/datetime/instance.scm b/module/datetime/instance.scm
index d9a304b2..d6c84348 100644
--- a/module/datetime/instance.scm
+++ b/module/datetime/instance.scm
@@ -9,7 +9,7 @@
:export (zoneinfo))
(define-config tz-list '()
- description: (_ "List of default zoneinfo files to be parsed"))
+ description: (G_ "List of default zoneinfo files to be parsed"))
;; TODO see (vcomponent uil instance), this has a similar problem with early load
;; Takes a list of zoneinfo files relative
@@ -25,7 +25,7 @@
(()
(define tz-list (tz-list))
(if (null? tz-list)
- (warning (_ "Default zoneinfo only available when tz-dir and tz-list are configured"))
+ (warning (G_ "Default zoneinfo only available when tz-dir and tz-list are configured"))
(self tz-list)))
((file-list)
(provide 'zoneinfo)
diff --git a/module/datetime/timespec.scm b/module/datetime/timespec.scm
index 46f93a61..53eba014 100644
--- a/module/datetime/timespec.scm
+++ b/module/datetime/timespec.scm
@@ -42,7 +42,7 @@
(define (timespec-add . specs)
(unless (apply eqv? (map timespec-type specs))
- (warning (_ "Adding timespecs of differing types")))
+ (warning (G_ "Adding timespecs of differing types")))
(reduce (lambda (spec done)
(cond
diff --git a/module/datetime/zic.scm b/module/datetime/zic.scm
index 66c0ba06..955ecd1c 100644
--- a/module/datetime/zic.scm
+++ b/module/datetime/zic.scm
@@ -186,7 +186,7 @@
day: (string->number day))
time: (timespec-time timespec)
tz: (case (timespec-type timespec)
- [(#\s) (warning (_ "what even is \"Standard time\"‽")) ""]
+ [(#\s) (warning (G_ "what even is \"Standard time\"‽")) ""]
[(#\w) #f]
;; Since we might represent times before UTC existed
;; this is a bit of a lie. But it should work.
@@ -274,7 +274,7 @@
;; They were removed since they were unused, uneeded, and was
;; technical dept.
(scm-error 'misc-error "parse-zic-file"
- (_ "Invalid key ~s. Note that leap seconds and expries rules aren't yet implemented.")
+ (G_ "Invalid key ~s. Note that leap seconds and expries rules aren't yet implemented.")
(list type)
#f)))]))))))
@@ -316,7 +316,7 @@
(target (link-target link))
(target-item (hash-ref zones target #f)))
(if (not target-item)
- (warning (_ "Unresolved link, target missing ~a -> ~a") name target)
+ (warning (G_ "Unresolved link, target missing ~a -> ~a") name target)
(hash-set! zones name target-item))))
(car it)))
@@ -355,7 +355,7 @@
(set (day d) base-day))))
tz: (case (timespec-type (rule-at rule))
((#\w) #f)
- ((#\s) (warning (_ "what even is \"Standard time\"‽")) #f)
+ ((#\s) (warning (G_ "what even is \"Standard time\"‽")) #f)
((#\u #\g #\z) "UTC"))))
(let ((timespec (rule-at rule)))
@@ -377,7 +377,7 @@
(case to
((maximum) #f)
((minimum) (scm-error 'misc-error "rule->rrule"
- (_ "Check your input")
+ (G_ "Check your input")
#f #f))
(else
;; NOTE I possibly need to check the start of
@@ -390,7 +390,7 @@
(match (rule-on rule)
((? number? d) (set (bymonthday base) (list d)))
(('last d) (set (byday base) (list (cons -1 d))))
- (('< wday base-day) (scm-error 'misc-error "rule->rrule" (_ "Counting backward for RRULES unsupported") #f #f))
+ (('< wday base-day) (scm-error 'misc-error "rule->rrule" (G_ "Counting backward for RRULES unsupported") #f #f))
(('> wday base-day)
;; Sun<=25
;; Sun>=8
@@ -412,14 +412,14 @@
[(#\z)
;; NOTE No zones seem to currently use %z formatting.
;; '%z' is NOT a format string, but information about another format string.
- (warning (_ "%z not yet implemented"))
+ (warning (G_ "%z not yet implemented"))
fmt-string]
[else (scm-error 'misc-error "zone-format"
;; first slot is the errornous character,
;; second is the whole string, third is the index
;; of the faulty character.
- (_ "Invalid format char ~s in ~s at position ~a")
+ (G_ "Invalid format char ~s in ~s at position ~a")
(list (string-ref fmt-string (1+ idx))
fmt-string
(1+ idx))