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;
}
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"));
goto cleanup;
}
cleanup:
if (rc == 0)
+ /* L10N:
+ Message displayed after an autocrypt account is successfully created.
+ */
mutt_message(_("Autocrypt account creation succeeded"));
else
+ /* L10N:
+ Error message displayed if creating an autocrypt account failed
+ or was aborted by the user.
+ */
mutt_error(_("Autocrypt account creation aborted"));
mutt_autocrypt_db_account_free(&account);
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"));
}
}
entry = (struct 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);
if (mutt_yesorno(msg, MUTT_NO) != MUTT_YES)
{
if (sqlite3_open_v2(mutt_b2s(db_path), &AutocryptDB, 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));
goto cleanup;
}
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 */
}
SET_COLOR(MT_COLOR_COMPOSE_HEADER);
- mutt_window_mvprintw(MuttIndexWindow, HDR_AUTOCRYPT, 40, "%s", _("Recommendation: "));
+ 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]));
}