From fe1818e26a7ff7e2792cfb5c20a92b443bc6a3a0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= <ludo@gnu.org>
Date: Thu, 20 Jun 2013 21:24:14 +0200
Subject: [PATCH] package: Fix i18n of the number of packages message.

* guix/scripts/package.scm (guix-package)[process-actions]: Use `N_' for
  i18n of the number of packages message.
---
 guix/scripts/package.scm | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/guix/scripts/package.scm b/guix/scripts/package.scm
index 0006cbd80f9..11301ccff28 100644
--- a/guix/scripts/package.scm
+++ b/guix/scripts/package.scm
@@ -846,11 +846,13 @@ (define (show-what-to-remove/install remove install dry-run?)
                                                   (current-error-port)
                                                   (%make-void-port "w"))))
                                 (build-derivations (%store) (list prof-drv)))
-                              (begin
+                              (let ((count (length packages)))
                                 (switch-symlinks name prof)
                                 (switch-symlinks profile name)
-                                (format #t (_ "~a packages in profile~%")
-                                        (length packages))
+                                (format #t (N_ "~a package in profile~%"
+                                               "~a packages in profile~%"
+                                               count)
+                                        count)
                                 (display-search-paths packages
                                                       profile))))))))))
 
-- 
GitLab