[balsa] libbalsa-gpgme-keys: Use ngettext() for key-count



commit 3712d9fd118c9085b5fba2fa3cf0ca7ed7a124f3
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Mon Oct 7 13:57:18 2019 -0400

    libbalsa-gpgme-keys: Use ngettext() for key-count
    
    even when we know that it is > 1. Fixes #19, 'ngettext incorrectly
    removed, now "Found %u keys with fingerprint %s on the key server"
    cannot be translated'

 libbalsa/libbalsa-gpgme-keys.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/libbalsa/libbalsa-gpgme-keys.c b/libbalsa/libbalsa-gpgme-keys.c
index 085c71bb7..e9bef45f1 100644
--- a/libbalsa/libbalsa-gpgme-keys.c
+++ b/libbalsa/libbalsa-gpgme-keys.c
@@ -477,7 +477,9 @@ gpgme_keyserver_run(gpointer user_data)
                        /* more than one key found */
                        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);


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