[balsa] fix misplaced translator comments



commit 7e3e066cbb7f8690310ca1521004c6db51dc5d8c
Author: Albrecht Dreß <albrecht dress netcologne de>
Date:   Fri Jul 15 20:59:33 2022 +0200

    fix misplaced translator comments
    
    Thanks to @piotrdrag for pointing me to these issues!
    
    Signed-off-by: Albrecht Dreß <albrecht dress netcologne de>

 libbalsa/autocrypt.c           | 12 +++++++-----
 libnetclient/net-client-smtp.c |  2 +-
 src/balsa-mime-widget-crypto.c |  2 +-
 3 files changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/libbalsa/autocrypt.c b/libbalsa/autocrypt.c
index 50e5cdc19..be1161917 100644
--- a/libbalsa/autocrypt.c
+++ b/libbalsa/autocrypt.c
@@ -316,8 +316,8 @@ autocrypt_header(LibBalsaIdentity *identity, GError **error)
                }
 
                if (use_fpr == NULL) {
-                       /* Translators: #1 sender's email address */
                        g_set_error(error, AUTOCRYPT_ERROR_QUARK, -1,
+                               /* Translators: #1 sender's email address */
                                _("No usable private key for “%s” found! Please create a key or disable 
Autocrypt."), mailbox);
                } else {
                        g_debug("found fingerprint %s for '%s'", use_fpr, mailbox);
@@ -938,9 +938,10 @@ show_key_details_cb(GtkMenuItem G_GNUC_UNUSED *menuitem, gpointer user_data)
                                        dialog = libbalsa_key_dialog(window, GTK_BUTTONS_CLOSE, (gpgme_key_t) 
keys->data, GPG_SUBKEY_CAP_ALL,
                                                NULL, NULL);
                                } else {
-                                       /* Translators: #1 email address */
                                        dialog = gtk_message_dialog_new(window, 
GTK_DIALOG_DESTROY_WITH_PARENT | libbalsa_dialog_flags(),
-                                               GTK_MESSAGE_INFO, GTK_BUTTONS_CLOSE, _("The database entry 
for “%s” does not contain a key."),
+                                               GTK_MESSAGE_INFO, GTK_BUTTONS_CLOSE,
+                                               /* Translators: #1 email address */
+                                                       _("The database entry for “%s” does not contain a 
key."),
                                                        mail_addr);
                                }
                                (void) gtk_dialog_run(GTK_DIALOG(dialog));
@@ -976,9 +977,10 @@ remove_key_cb(GtkMenuItem G_GNUC_UNUSED *menuitem, gpointer user_data)
        toplevel = gtk_widget_get_toplevel(GTK_WIDGET(user_data));
        window = GTK_IS_WINDOW(toplevel) ? GTK_WINDOW(toplevel) : NULL;
        gtk_tree_model_get(model, &iter, AC_ADDRESS_COLUMN, &mail_addr, -1);
-               /* Translators: #1 email address */
                dialog = gtk_message_dialog_new(window, GTK_DIALOG_DESTROY_WITH_PARENT | 
libbalsa_dialog_flags(),
-                       GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, _("Delete the Autocrypt key for “%s” from 
the database?"), mail_addr);
+                       GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO,
+                       /* Translators: #1 email address */
+                       _("Delete the Autocrypt key for “%s” from the database?"), mail_addr);
                if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_YES) {
                        if ((sqlite3_bind_text(query[6], 1, mail_addr, -1, SQLITE_STATIC) != SQLITE_OK) ||
                                (sqlite3_step(query[6]) != SQLITE_DONE)) {
diff --git a/libnetclient/net-client-smtp.c b/libnetclient/net-client-smtp.c
index 830a7d59c..559c9f086 100644
--- a/libnetclient/net-client-smtp.c
+++ b/libnetclient/net-client-smtp.c
@@ -695,8 +695,8 @@ net_client_smtp_eval_rescode(gint res_code, const gchar *reply, GError **error)
                result = TRUE;
                break;
        case 4:
-               /* Translators: #1 SMTP (RFC 5321) error code; #2 error message */
                g_set_error(error, NET_CLIENT_SMTP_ERROR_QUARK, (gint) NET_CLIENT_ERROR_SMTP_TRANSIENT,
+                       /* Translators: #1 SMTP (RFC 5321) error code; #2 error message */
                        _("transient error %d: %s"), res_code, reply);
                result = FALSE;
                break;
diff --git a/src/balsa-mime-widget-crypto.c b/src/balsa-mime-widget-crypto.c
index b3c11567e..4b5f226a2 100644
--- a/src/balsa-mime-widget-crypto.c
+++ b/src/balsa-mime-widget-crypto.c
@@ -305,11 +305,11 @@ on_key_import_button(GtkButton *button,
        }
 
        if (success) {
-               /* Translators: successful import of a GnuPG key; #1: backend message */
                dialog = gtk_message_dialog_new(GTK_WINDOW(balsa_app.main_window),
                        GTK_DIALOG_DESTROY_WITH_PARENT | libbalsa_dialog_flags(),
                        GTK_MESSAGE_INFO,
                        GTK_BUTTONS_CLOSE,
+                       /* Translators: successful import of a GnuPG key; #1: backend message */
                        _("Import GnuPG key:\n%s"), import_info);
                gtk_widget_set_sensitive(GTK_WIDGET(button), FALSE);
        } else {


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