mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-21 14:47:03 +01:00
g10: Correctly parameterize ngettext.
* g10/tofu.c (ask_about_binding): Correctly parameterize ngettext. Signed-off-by: Neal H. Walfield <neal@g10code.com>
This commit is contained in:
parent
7142b293c8
commit
182efc5b5d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user