civodul pushed a commit to branch master
in repository guix.
commit 7ae9979cff98d7c23fc8d19e54ae733ee1a7deb2
Author: Ludovic Courtès <[email protected]>
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)))