From 12703d0854a1b16ddc73fd7c2440ef8497593a70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 9 Oct 2014 23:50:16 +0200 Subject: [PATCH] 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'. --- guix/ui.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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