From af09bed7dcc405c973881a5f8ce0e7531f6748bd Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Thu, 14 Jun 2018 21:17:08 +0200 Subject: 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. --- guix/ui.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3