diff options
author | Neal H. Walfield <[email protected]> | 2016-11-21 20:22:02 +0000 |
---|---|---|
committer | Neal H. Walfield <[email protected]> | 2016-11-21 20:22:02 +0000 |
commit | 182efc5b5d20ac0d43501a22f349a23dc06a27a4 (patch) | |
tree | fead6b2ca9fd9c0984cf2af600e7620d69124d05 /g10/tofu.c | |
parent | g10: Don't use the same variable for multiple SQL compiled statements (diff) | |
download | gnupg-182efc5b5d20ac0d43501a22f349a23dc06a27a4.tar.gz gnupg-182efc5b5d20ac0d43501a22f349a23dc06a27a4.zip |
g10: Correctly parameterize ngettext.
* g10/tofu.c (ask_about_binding): Correctly parameterize ngettext.
Signed-off-by: Neal H. Walfield <[email protected]>
Diffstat (limited to 'g10/tofu.c')
-rw-r--r-- | g10/tofu.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/g10/tofu.c b/g10/tofu.c index deccc0f26..696cfc368 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) |