From: Kevin McCarthy Date: Wed, 31 Jul 2019 22:42:09 +0000 (-0700) Subject: Add more translation string comments for autocrypt. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e01b3f0264ec224e313ce4cf85c3197b1c3caa8e;p=mutt Add more translation string comments for autocrypt. --- diff --git a/autocrypt/autocrypt.c b/autocrypt/autocrypt.c index 2c866fca..4b7d4815 100644 --- a/autocrypt/autocrypt.c +++ b/autocrypt/autocrypt.c @@ -112,6 +112,11 @@ int mutt_autocrypt_account_init (int prompt) if (prompt) { + /* L10N: + The first time mutt is started with $autocrypt set, it will + create $autocrypt_dir and then prompt to create an autocrypt + account with this message. + */ if (mutt_yesorno (_("Create an initial autocrypt account?"), MUTT_YES) != MUTT_YES) return 0; @@ -155,6 +160,11 @@ int mutt_autocrypt_account_init (int prompt) goto cleanup; if (account) { + /* L10N: + When creating an autocrypt account, this message will be displayed + if there is already an account in the database with the email address + they just entered. + */ mutt_error _("That email address already has an autocrypt account"); mutt_sleep (1); goto cleanup; @@ -182,8 +192,15 @@ int mutt_autocrypt_account_init (int prompt) cleanup: if (rv) + /* L10N: + Error message displayed if creating an autocrypt account failed + or was aborted by the user. + */ mutt_error _("Autocrypt account creation aborted."); else + /* L10N: + Message displayed after an autocrypt account is successfully created. + */ mutt_message _("Autocrypt account creation succeeded"); mutt_sleep (1); diff --git a/autocrypt/autocrypt_acct_menu.c b/autocrypt/autocrypt_acct_menu.c index dd1f0c5c..5361133c 100644 --- a/autocrypt/autocrypt_acct_menu.c +++ b/autocrypt/autocrypt_acct_menu.c @@ -190,6 +190,10 @@ static void toggle_active (ENTRY *entry) if (mutt_autocrypt_db_account_update (entry->account) != 0) { entry->account->enabled = !entry->account->enabled; + /* L10N: + This error message is displayed if a database update of an + account record fails for some odd reason. + */ mutt_error _("Error updating account record"); } } @@ -243,7 +247,7 @@ void mutt_autocrypt_account_menu (void) entry = (ENTRY *)(menu->data) + menu->current; snprintf (msg, sizeof(msg), /* L10N: - Confirms deleting an autocrypt account + Confirmation message when deleting an autocrypt account */ _("Really delete account \"%s\"?"), entry->addr->mailbox); diff --git a/autocrypt/autocrypt_db.c b/autocrypt/autocrypt_db.c index cadd0dcd..c8a42b81 100644 --- a/autocrypt/autocrypt_db.c +++ b/autocrypt/autocrypt_db.c @@ -85,6 +85,10 @@ int mutt_autocrypt_db_init (int can_create) SQLITE_OPEN_READWRITE, NULL) != SQLITE_OK) { + /* L10N: + Error message if autocrypt couldn't open the sqlite database + for some reason. The %s is the full path of the database file. + */ mutt_error (_("Unable to open autocrypt database %s"), mutt_b2s (db_path)); mutt_sleep (0); goto cleanup; diff --git a/autocrypt/autocrypt_gpgme.c b/autocrypt/autocrypt_gpgme.c index a95339e9..64619168 100644 --- a/autocrypt/autocrypt_gpgme.c +++ b/autocrypt/autocrypt_gpgme.c @@ -129,6 +129,10 @@ int mutt_autocrypt_gpgme_create_key (ADDRESS *addr, BUFFER *keyid, BUFFER *keyda if (create_gpgme_context (&ctx)) goto cleanup; + /* L10N: + Message displayed just before a GPG key is generated for a created + autocrypt account. + */ mutt_message _("Generating autocrypt key..."); /* Primary key */ diff --git a/compose.c b/compose.c index 05ae4c19..f4c7519d 100644 --- a/compose.c +++ b/compose.c @@ -381,6 +381,11 @@ static void redraw_crypt_lines (compose_redraw_data_t *rd) SETCOLOR (MT_COLOR_COMPOSE_HEADER); mutt_window_mvprintw (MuttIndexWindow, HDR_AUTOCRYPT, 40, "%s", + /* L10N: + The autocrypt compose menu Recommendation field. + Displays the output of the recommendation engine + (Off, No, Discouraged, Available, Yes) + */ _("Recommendation: ")); NORMAL_COLOR; printw ("%s", _(AutocryptRecUiFlags[rd->autocrypt_rec]));