I18n improvement: Translate plural-dependent string correctly by ngettext().

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18547 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2010-01-04 21:07:16 +00:00
parent 668c8dfac2
commit 80971f866b

View File

@ -2620,13 +2620,23 @@ gnc_invoice_show_bills_due (QofBook *book, double days_in_advance)
if (!res || len <= 0)
return NULL;
return gnc_dialog_query_list_create(param_list, q,
_("Due Bills Reminder"),
(len > 1) ?
_("The following bills are due") :
_("The following bill is due"),
TRUE, FALSE,
buttons, NULL);
{
gchar *message = g_strdup_printf
(/* Translators: %d is the number of bills due. This is a
ngettext(3) message. */
ngettext("The following %d bill is due:",
"The following %d bills are due:",
len),
len);
DialogQueryList *dialog =
gnc_dialog_query_list_create(param_list, q,
_("Due Bills Reminder"),
message,
TRUE, FALSE,
buttons, NULL);
g_free(message);
return dialog;
}
}
void