guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: guix: ui: Allow translation of dates.


From: julien lepiller
Subject: 01/01: guix: ui: Allow translation of dates.
Date: Thu, 14 Jun 2018 15:53:33 -0400 (EDT)

roptat pushed a commit to branch master
in repository guix.

commit af09bed7dcc405c973881a5f8ce0e7531f6748bd
Author: Julien Lepiller <address@hidden>
Date:   Thu Jun 14 21:17:08 2018 +0200

    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 99f66b0..31830ee 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]