[balsa] Changed _ to ngettext for plural forms



commit 68c7aef862b7e8a7f6a886bbf719ff8f133b2bb4
Author: Marek Cernocky <marek_cernocky conel cz>
Date:   Mon Aug 28 11:42:53 2017 +0200

    Changed _ to ngettext for plural forms

 libbalsa/libbalsa-gpgme-keys.c    |    4 +++-
 libbalsa/libbalsa-gpgme-widgets.c |    2 +-
 libbalsa/mailbox_pop3.c           |    2 ++
 3 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/libbalsa/libbalsa-gpgme-keys.c b/libbalsa/libbalsa-gpgme-keys.c
index 40ba61e..6025219 100644
--- a/libbalsa/libbalsa-gpgme-keys.c
+++ b/libbalsa/libbalsa-gpgme-keys.c
@@ -312,7 +312,9 @@ gpgme_keyserver_run(gpointer user_data)
                } else if (keys->next != NULL) {
                        dialog = gtk_message_dialog_new(keyserver_op->parent,
                                GTK_DIALOG_DESTROY_WITH_PARENT | libbalsa_dialog_flags(), 
GTK_MESSAGE_WARNING, GTK_BUTTONS_CLOSE,
-                               _("Found %u keys with fingerprint %s on the key server. Please check and 
import the proper key manually."),
+                               ngettext("Found %u key with fingerprint %s on the key server. Please check 
and import the proper key manually.",
+                                        "Found %u keys with fingerprint %s on the key server. Please check 
and import the proper key manually.",
+                                        g_list_length(keys)),
                                g_list_length(keys), keyserver_op->fingerprint);
                } else {
                        dialog = gpgme_keyserver_do_import(keyserver_op, (gpgme_key_t) keys->data);
diff --git a/libbalsa/libbalsa-gpgme-widgets.c b/libbalsa/libbalsa-gpgme-widgets.c
index 23ecdca..87967a6 100644
--- a/libbalsa/libbalsa-gpgme-widgets.c
+++ b/libbalsa/libbalsa-gpgme-widgets.c
@@ -534,7 +534,7 @@ create_subkey_type_str(gpgme_subkey_t subkey)
        const gchar *algo;
 
        type_str = g_string_new(NULL);
-       g_string_append_printf(type_str, _("%u bits"), subkey->length);
+       g_string_append_printf(type_str, ngettext("%u bit", "%u bits", subkey->length), subkey->length);
        algo = gpgme_pubkey_algo_name(subkey->pubkey_algo);
        if (algo != NULL) {
                g_string_append_printf(type_str, " %s", algo);
diff --git a/libbalsa/mailbox_pop3.c b/libbalsa/mailbox_pop3.c
index 7fadf2a..0b1b4d5 100644
--- a/libbalsa/mailbox_pop3.c
+++ b/libbalsa/mailbox_pop3.c
@@ -652,6 +652,8 @@ libbalsa_mailbox_pop3_check(LibBalsaMailbox * mailbox)
                        fd.total_size_msg = libbalsa_size_to_gchar(fd.total_size);
 
                        msgbuf = g_strdup_printf(_("%lu new messages (%s)"), (unsigned long) 
fd.total_messages, fd.total_size_msg);
+                       msgbuf = g_strdup_printf(ngettext("%lu new message (%s)", "%lu new messages (%s)", 
fd.total_messages),
+                                                (unsigned long) fd.total_messages, fd.total_size_msg);
                        libbalsa_mailbox_progress_notify(mailbox, LIBBALSA_NTFY_PROGRESS, 0, 1, msgbuf);
                        g_free(msgbuf);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]