]> granicus.if.org Git - mutt/commitdiff
Add L10N translation message comments.
authorKevin McCarthy <kevin@8t8.us>
Fri, 26 Jul 2019 23:27:04 +0000 (16:27 -0700)
committerKevin McCarthy <kevin@8t8.us>
Sat, 3 Aug 2019 21:08:09 +0000 (14:08 -0700)
autocrypt/autocrypt.c
autocrypt/autocrypt_db.c
autocrypt/autocrypt_gpgme.c
compose.c

index ed3c1024a3250a64b75a4d7cc91fc2f879c13c8a..e19a7adc0bd65d4502fcf18c3c00d343acd4cd1b 100644 (file)
@@ -46,11 +46,20 @@ static int autocrypt_dir_init (int can_create)
     return -1;
 
   prompt = mutt_buffer_pool_get ();
+  /* L10N:
+     %s is a directory.  Mutt is looking for a directory it needs
+     for some reason (e.g. autocrypt, header cache, bcache), but it
+     doesn't exist.  The prompt is asking whether to create the directory
+  */
   mutt_buffer_printf (prompt, _("%s does not exist. Create it?"), AutocryptDir);
   if (mutt_yesorno (mutt_b2s (prompt), MUTT_YES) == MUTT_YES)
   {
     if (mutt_mkdir (AutocryptDir, 0700) < 0)
     {
+      /* L10N:
+         mkdir() on the directory %s failed.  The second %s is the
+         error message returned by libc
+      */
       mutt_error ( _("Can't create %s: %s."), AutocryptDir, strerror (errno));
       mutt_sleep (0);
       rv = -1;
@@ -116,13 +125,19 @@ int mutt_autocrypt_account_init (void)
 
   do
   {
+    /* L10N:
+       Autocrypt is asking for the email address to use for the
+       autocrypt account.  This will generate a key and add a record
+       to the database for use in autocrypt operations.
+    */
     if (mutt_edit_address (&addr, _("Autocrypt account address: "), 0))
       goto cleanup;
     if (!addr || !addr->mailbox || addr->next)
     {
       /* L10N:
          Autocrypt prompts for an account email address, and requires
-         a single address.
+         a single address.  This is shown if they entered something invalid,
+         nothing, or more than one address for some reason.
       */
       mutt_error (_("Please enter a single email address"));
       mutt_sleep (2);
index fa463fbe81d558186279a7927dac4a3bb36f4ac0..d8a397bd726637830312c6b840ced4615fa5af23 100644 (file)
@@ -41,6 +41,10 @@ static int autocrypt_db_create (const char *db_path)
                        SQLITE_OPEN_READWRITE|SQLITE_OPEN_CREATE,
                        NULL) != SQLITE_OK)
   {
+    /* L10N:
+       %s is the path to the database.  For some reason sqlite3 failed
+       to open that database file.
+    */
     mutt_error (_("Unable to open autocrypt database %s"), db_path);
     mutt_sleep (0);
     return -1;
index 84bb9ffc4c3a471ccd3f9ee33ed62d47aa76511e..a95339e967a49606c8153339a7722f50ef6c2d1d 100644 (file)
@@ -137,6 +137,10 @@ int mutt_autocrypt_gpgme_create_key (ADDRESS *addr, BUFFER *keyid, BUFFER *keyda
                             GPGME_CREATE_NOPASSWD | GPGME_CREATE_FORCE | GPGME_CREATE_NOEXPIRE);
   if (err)
   {
+    /* L10N:
+       GPGME was unable to generate a key for some reason.
+       %s is the error message returned by GPGME.
+    */
     mutt_error (_("Error creating autocrypt key: %s\n"), gpgme_strerror (err));
     sleep (2);
     goto cleanup;
index 6c3a3b3996438b47e94f5680433aef57f9522d43..05ae4c1923419f49009a736045b4f618e3bdf8e9 100644 (file)
--- a/compose.c
+++ b/compose.c
@@ -251,7 +251,7 @@ static void autocrypt_compose_menu (HEADER *msg)
      The letter corresponding to the compose menu autocrypt prompt
      (e)ncrypt, (c)lear, (a)utomatic
    */
-  letters = "eca";
+  letters = _("eca");
 
   choice = mutt_multi_choice (prompt, letters);
   switch (choice)