[balsa] Fix bgo #659390
- From: Peter Bloomfield <PeterB src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa] Fix bgo #659390
- Date: Mon, 19 Sep 2011 01:22:15 +0000 (UTC)
commit 23c515b941e0d25233c738c299bc90a2b97cf163
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sun Sep 18 21:17:52 2011 -0400
Fix bgo #659390
* src/print-gtk.c (draw_page): use ngettext for plural; fixes
bgo #659390.
ChangeLog | 5 +++++
src/print-gtk.c | 6 +++++-
2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index f3455e5..b75aaee 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-09-18 Peter Bloomfield
+
+ * src/print-gtk.c (draw_page): use ngettext for plural; fixes
+ bgo #659390.
+
2011-09-09 Peter Bloomfield <peter t43 bellsouth net>
* src/main-window.c: use checking_mail_lock to protect access to
diff --git a/src/print-gtk.c b/src/print-gtk.c
index eea1c34..1d861e9 100644
--- a/src/print-gtk.c
+++ b/src/print-gtk.c
@@ -343,7 +343,11 @@ draw_page(GtkPrintOperation * operation, GtkPrintContext * context,
/* emit a warning if we try to print a non-existing page */
if (page_nr >= print_data->setup.page_count) {
balsa_information(LIBBALSA_INFORMATION_WARNING,
- _("Cannot print page %d because the document has only %d pages."),
+ ngettext("Cannot print page %d because "
+ "the document has only %d page.",
+ "Cannot print page %d because "
+ "the document has only %d pages.",
+ print_data->setup.page_count),
page_nr + 1, print_data->setup.page_count);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]