aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2018-06-14 21:17:08 +0200
committerJulien Lepiller <julien@lepiller.eu>2018-06-14 21:53:12 +0200
commitaf09bed7dcc405c973881a5f8ce0e7531f6748bd (patch)
treeedc5524f8e79bcfcaf41f8d3e250a26dfea5c2eb
parenta4bae9af009df2e3cd1fb96941084e0af137d366 (diff)
downloadpatches-af09bed7dcc405c973881a5f8ce0e7531f6748bd.tar
patches-af09bed7dcc405c973881a5f8ce0e7531f6748bd.tar.gz
guix: ui: Allow translation of dates.
* guix/ui.scm (display-generation): Allow translation of dates. The format string will show dates as month day year, but some languages use a different convention.
-rw-r--r--guix/ui.scm7
1 files changed, 6 insertions, 1 deletions
diff --git a/guix/ui.scm b/guix/ui.scm
index 99f66b0fdc..31830ee850 100644
--- a/guix/ui.scm
+++ b/guix/ui.scm
@@ -1391,7 +1391,12 @@ DURATION-RELATION with the current time."
(date->string
(time-utc->date
(generation-time profile number))
- "~b ~d ~Y ~T")))
+ ;; TRANSLATORS: This is a format-string for date->string.
+ ;; Please choose a format that corresponds to the
+ ;; usual way of presenting dates in your locale.
+ ;; See https://www.gnu.org/software/guile/manual/html_node/SRFI_002d19-Date-to-string.html
+ ;; for details.
+ (G_ "~b ~d ~Y ~T"))))
(current (generation-number profile)))
(if (= number current)
;; TRANSLATORS: The word "current" here is an adjective for