[pan2] fixed stupid ngettext bug
- From: Heinrich MÃller <henmull src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pan2] fixed stupid ngettext bug
- Date: Sun, 11 Dec 2011 08:37:23 +0000 (UTC)
commit e8a7ead1f070299c9eb869c927035c1e88427d42
Author: Heinrich MÃller <henmull src gnome org>
Date: Sun Dec 11 09:37:04 2011 +0100
fixed stupid ngettext bug
pan/usenet-utils/message-check.cc | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/pan/usenet-utils/message-check.cc b/pan/usenet-utils/message-check.cc
index 3a41605..2ba73f9 100644
--- a/pan/usenet-utils/message-check.cc
+++ b/pan/usenet-utils/message-check.cc
@@ -194,13 +194,12 @@ namespace
if (too_wide_qty) {
char buf[1024];
- if (too_wide_qty != 1)
- g_snprintf (buf, sizeof(buf), ngettext("Warning: %d line is more than 80 characters wide.",
- "Warning: %d lines are more than 80 characters wide.", too_wide_qty), too_wide_qty);
- else
-
+ g_snprintf (buf, sizeof(buf), ngettext(
+ "Warning: %d line is more than 80 characters wide.",
+ "Warning: %d lines are more than 80 characters wide.", too_wide_qty), too_wide_qty);
errors.insert (buf);
goodness.raise_to_warn ();
+
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]