[balsa] balsa-print-object-text.c Use ngettext()
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa] balsa-print-object-text.c Use ngettext()
- Date: Mon, 26 Aug 2019 02:12:54 +0000 (UTC)
commit 362e2266df95d7d59d4c966a30ed35ee7ac18fc3
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sun Aug 25 22:10:38 2019 -0400
balsa-print-object-text.c Use ngettext()
Use ngettext() for plural forms of strings.
ChangeLog | 6 ++++++
src/balsa-print-object-text.c | 3 ++-
2 files changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/ChangeLog b/ChangeLog
index 403b75b7f..75f955365 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2019-08-25 Peter Bloomfield <pbloomfield bellsouth net>
+
+ * src/balsa-print-object-text.c
+ (balsa_print_object_text_calendar): Use ngettext() for plural
+ forms of strings.
+
2019-08-21 Peter Bloomfield <pbloomfield bellsouth net>
imap-handle: Use modern macros to declare and define ImapMboxHandle
diff --git a/src/balsa-print-object-text.c b/src/balsa-print-object-text.c
index 71e504139..ca40a48a7 100644
--- a/src/balsa-print-object-text.c
+++ b/src/balsa-print-object-text.c
@@ -555,7 +555,8 @@ balsa_print_object_text_calendar(GList *list,
guint n;
this_att = libbalsa_vcal_attendee_to_str(libbalsa_vevent_attendee(event, 0U));
- ADD_VCAL_FIELD(desc_buf, p_label_width, test_layout, this_att, (attendees > 1U) ?
_("Attendees:") : _("Attendee:"));
+ ADD_VCAL_FIELD(desc_buf, p_label_width, test_layout, this_att,
+ ngettext("Attendee:", "Attendees:", attendees));
g_free(this_att);
for (n = 1U; n < attendees; n++) {
this_att = libbalsa_vcal_attendee_to_str(libbalsa_vevent_attendee(event, n));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]