aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-10-09 23:50:16 +0200
committerLudovic Courtès <ludo@gnu.org>2014-10-09 23:51:19 +0200
commit12703d0854a1b16ddc73fd7c2440ef8497593a70 (patch)
tree1bbc95311eda71f435fb072c60b780dc7c9aa89e
parent0363991a250177912d4ee6849c1b5ba05fbeaaff (diff)
downloadgnu-guix-12703d0854a1b16ddc73fd7c2440ef8497593a70.tar
gnu-guix-12703d0854a1b16ddc73fd7c2440ef8497593a70.tar.gz
ui: Make sure we use the right domain for &message translation.
* guix/ui.scm (call-with-error-handling): Add %GETTEXT-DOMAIN as a second argument to 'gettext'.
-rw-r--r--guix/ui.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/guix/ui.scm b/guix/ui.scm
index 04345d4770..bf7226ca36 100644
--- a/guix/ui.scm
+++ b/guix/ui.scm
@@ -239,7 +239,8 @@ interpreted."
(nix-protocol-error-message c)))
((message-condition? c)
;; Normally '&message' error conditions have an i18n'd message.
- (leave (_ "~a~%") (gettext (condition-message c)))))
+ (leave (_ "~a~%")
+ (gettext (condition-message c) %gettext-domain))))
;; Catch EPIPE and the likes.
(catch 'system-error
thunk