ui: Do not translate package synopsis a second time.
authorArun Isaac <arunisaac@systemreboot.net>
Sun, 31 May 2020 23:23:33 +0000 (04:53 +0530)
committerArun Isaac <arunisaac@systemreboot.net>
Mon, 15 Jun 2020 18:01:56 +0000 (23:31 +0530)
* guix/ui.scm (package->recutils): package-synopsis-string already returns a
translated string. Do not attempt to translate it again.

guix/ui.scm

index c1c9b6e..d4c912a 100644 (file)
@@ -1465,8 +1465,7 @@ HYPERLINKS? is true, emit hyperlink escape sequences when appropriate."
           (string-map (match-lambda
                         (#\newline #\space)
                         (chr       chr))
-                      (or (and=> (package-synopsis-string p) P_)
-                          "")))
+                      (or (package-synopsis-string p) "")))
   (format port "~a~%"
           (string->recutils
            (string-trim-right