I18n: Use ngettext for translation string with plural form.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21365 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2011-09-29 14:22:19 +00:00
parent 746d4b52b3
commit 7ca4a0bb26

View File

@ -268,7 +268,6 @@ ap_assistant_menu_prepare (GtkAssistant *assistant, gpointer user_data)
{
int nperiods;
GDate period_begin, period_end, date_now;
const char *remarks_text;
char * str;
AcctPeriodInfo *info = user_data;
@ -311,11 +310,19 @@ ap_assistant_menu_prepare (GtkAssistant *assistant, gpointer user_data)
PINFO ("Date of earliest transaction is %ld %s", info->earliest, ctime (&info->earliest));
/* Display the results */
remarks_text =
_("The earliest transaction date found in this book is %s. "
"Based on the selection made above, this book will be split "
"into %d books.");
str = g_strdup_printf (remarks_text, info->earliest_str, nperiods);
str = g_strdup_printf (
/* Translators: %s is a date string. %d is the number of books
* that will be created. This is a ngettext(3) message (but
* only for the %d part). */
ngettext("The earliest transaction date found in this book is %s. "
"Based on the selection made above, this book will be split "
"into %d book.",
"The earliest transaction date found in this book is %s. "
"Based on the selection made above, this book will be split "
"into %d books.",
nperiods),
info->earliest_str,
nperiods);
gtk_label_set_text (GTK_LABEL(info->period_remarks), str);
g_free (str);
}