]> granicus.if.org Git - mutt/commitdiff
Add more translation string comments for autocrypt.
authorKevin McCarthy <kevin@8t8.us>
Wed, 31 Jul 2019 22:42:09 +0000 (15:42 -0700)
committerKevin McCarthy <kevin@8t8.us>
Sat, 3 Aug 2019 21:08:09 +0000 (14:08 -0700)
autocrypt/autocrypt.c
autocrypt/autocrypt_acct_menu.c
autocrypt/autocrypt_db.c
autocrypt/autocrypt_gpgme.c
compose.c

index 2c866fca95e1ccff4e7ddbc58dfc3d100f111950..4b7d4815e51f30cb5368dd80376ade9ca48ec726 100644 (file)
@@ -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);
 
index dd1f0c5c4b19c8c119da321248753000bf9a9e30..5361133cc71da40022b0767a36e48fc987f1126e 100644 (file)
@@ -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);
index cadd0dcdb8aa60230243e016cf88dc2bb4dc4780..c8a42b814490db0a45c4483fa67a410966a32324 100644 (file)
@@ -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;
index a95339e967a49606c8153339a7722f50ef6c2d1d..64619168800eb2fefefd1316b66d1d149b93d8c9 100644 (file)
@@ -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 */
index 05ae4c1923419f49009a736045b4f618e3bdf8e9..f4c7519d28ebfe4ac128d9031f02b34cf0497342 100644 (file)
--- 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]));