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
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue