[Pkg-gnupg-commit] [gnupg2] 08/180: g10: Correctly parameterize ngettext.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Sat Dec 24 22:29:02 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gnupg2.

commit 182efc5b5d20ac0d43501a22f349a23dc06a27a4
Author: Neal H. Walfield <neal at g10code.com>
Date:   Mon Nov 21 21:22:02 2016 +0100

    g10: Correctly parameterize ngettext.
    
    * g10/tofu.c (ask_about_binding): Correctly parameterize ngettext.
    
    Signed-off-by: Neal H. Walfield <neal at g10code.com>
---
 g10/tofu.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/g10/tofu.c b/g10/tofu.c
index deccc0f..696cfc3 100644
--- a/g10/tofu.c
+++ b/g10/tofu.c
@@ -1733,19 +1733,22 @@ ask_about_binding (ctrl_t ctrl,
               if (labs(stats_iter->time_ago) == 3)
                 es_fprintf (fp, ngettext(" over the past day.",
                                          " over the past %d days.",
-                                         seen_in_past),
+                                         TIME_AGO_SMALL_THRESHOLD
+                                         / TIME_AGO_UNIT_SMALL),
                             TIME_AGO_SMALL_THRESHOLD
                             / TIME_AGO_UNIT_SMALL);
               else if (labs(stats_iter->time_ago) == 4)
                 es_fprintf (fp, ngettext(" over the past month.",
                                          " over the past %d months.",
-                                         seen_in_past),
+                                         TIME_AGO_MEDIUM_THRESHOLD
+                                         / TIME_AGO_UNIT_MEDIUM),
                             TIME_AGO_MEDIUM_THRESHOLD
                             / TIME_AGO_UNIT_MEDIUM);
               else if (labs(stats_iter->time_ago) == 5)
                 es_fprintf (fp, ngettext(" over the past year.",
                                          " over the past %d years.",
-                                         seen_in_past),
+                                         TIME_AGO_LARGE_THRESHOLD
+                                         / TIME_AGO_UNIT_LARGE),
                             TIME_AGO_LARGE_THRESHOLD
                             / TIME_AGO_UNIT_LARGE);
               else if (labs(stats_iter->time_ago) == 6)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list