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:
parent
0363991a25
commit
12703d0854
|
@ -239,7 +239,8 @@ interpreted."
|
||||||
(nix-protocol-error-message c)))
|
(nix-protocol-error-message c)))
|
||||||
((message-condition? c)
|
((message-condition? c)
|
||||||
;; Normally '&message' error conditions have an i18n'd message.
|
;; 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 EPIPE and the likes.
|
||||||
(catch 'system-error
|
(catch 'system-error
|
||||||
thunk
|
thunk
|
||||||
|
|
Loading…
Reference in New Issue