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
1 changed files with 2 additions and 1 deletions

View File

@ -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