guix-commits
[Top][All Lists]
Advanced

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

04/07: installer: Actually translate step descriptions.


From: guix-commits
Subject: 04/07: installer: Actually translate step descriptions.
Date: Mon, 6 May 2019 17:23:20 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 7ae9979cff98d7c23fc8d19e54ae733ee1a7deb2
Author: Ludovic Courtès <address@hidden>
Date:   Mon May 6 21:54:32 2019 +0200

    installer: Actually translate step descriptions.
    
    Until now, step descriptions in the menu that shows up when hitting
    "Exit" would not be translated.  That's because the 'G_' procedure was
    called once and for all when the installer was started.
    
    * gnu/installer/steps.scm (<installer-step>)[description]: Add the
    'thunked' attribute.
---
 gnu/installer/steps.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/installer/steps.scm b/gnu/installer/steps.scm
index 039dd0c..4e90f32 100644
--- a/gnu/installer/steps.scm
+++ b/gnu/installer/steps.scm
@@ -71,7 +71,12 @@
   installer-step?
   (id                         installer-step-id) ;symbol
   (description                installer-step-description ;string
-                              (default #f))
+                              (default #f)
+
+                              ;; Make it thunked so that 'G_' is called at the
+                              ;; right time, as opposed to being called once
+                              ;; when the installer starts.
+                              (thunked))
   (compute                    installer-step-compute) ;procedure
   (configuration-formatter    installer-step-configuration-formatter ;procedure
                               (default #f)))



reply via email to

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