summaryrefslogtreecommitdiff
path: root/guix/scripts/system/search.scm
diff options
context:
space:
mode:
authorpelzflorian (Florian Pelz) <pelzflorian@pelzflorian.de>2022-11-19 23:49:37 +0100
committerFlorian Pelz <pelzflorian@pelzflorian.de>2022-11-20 16:01:08 +0100
commitda6c6763fa72585a1df3021781f8d33c3b64dcc8 (patch)
tree31145788ee58e797260048e86f24f29cd03638ed /guix/scripts/system/search.scm
parent44f087fcc7b6ab48ff1381651ef3ea5e560f5216 (diff)
scripts: Use translations for guix.pot for service descriptions.
Previously, service descriptions appeared in both guix.pot and packages.pot, but only translations of packages.pot were used. Now, translations are only done with guix.pot. This is better, because translators are more likely to translate guix.pot, and is also easier, because files in gnu/{home/,}services need to be in po/guix/POTFILES.in anyway and po/guix/Makevars already acts on the 'description' keyword because of lint checkers. * guix/scripts/home.scm (service-type-description-string): Use translations from guix.pot. * guix/scripts/system/search.scm (service-type-description-string) (service-type->recutils): Likewise. * po/packages/POTFILES.in: Move files in gnu/services to ... * po/guix/POTFILES.in: ... here.
Diffstat (limited to 'guix/scripts/system/search.scm')
-rw-r--r--guix/scripts/system/search.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/guix/scripts/system/search.scm b/guix/scripts/system/search.scm
index 44f00194cd..d978884518 100644
--- a/guix/scripts/system/search.scm
+++ b/guix/scripts/system/search.scm
@@ -127,7 +127,7 @@ procedure that may return a colorized version of its argument."
(parameterize ((%text-width width*))
(texi->plain-text
(string-append "description: "
- (or (and=> (service-type-description type) P_)
+ (or (and=> (service-type-description type) G_)
""))))
#\newline)))))
@@ -144,7 +144,7 @@ procedure that may return a colorized version of its argument."
(define (service-type-description-string type)
"Return the rendered and localised description of TYPE, a service type."
(and=> (service-type-description type)
- (compose texi->plain-text P_)))
+ (compose texi->plain-text G_)))
(define %service-type-metrics
;; Metrics used to estimate the relevance of a search result.