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'.
This commit is contained in:
Ludovic Courtès 2014-10-09 23:50:16 +02:00
parent 0363991a25
commit 12703d0854

View file

@ -239,7 +239,8 @@ (define (call-with-error-handling thunk)
(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