[balsa/45-tranlsate-special-mailbox-names: 6/6] save-restore: Mark special mailbox names




commit 1157dfff399475777f70678bc5261e46f25a9419
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Tue Jan 19 19:11:12 2021 -0500

    save-restore: Mark special mailbox names
    
    for translation.

 src/save-restore.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/save-restore.c b/src/save-restore.c
index fbbf90886..990123889 100644
--- a/src/save-restore.c
+++ b/src/save-restore.c
@@ -252,7 +252,11 @@ sr_special_notify(gpointer data, GObject * mailbox)
 }
 
 static gchar *specialNames[] = {
-    INBOX_NAME, SENTBOX_NAME, TRASH_NAME, DRAFTS_NAME, OUTBOX_NAME
+    N_(INBOX_NAME),
+    N_(SENTBOX_NAME),
+    N_(TRASH_NAME),
+    N_(DRAFTS_NAME),
+    N_(OUTBOX_NAME)
 };
 
 static inline gboolean
@@ -315,7 +319,7 @@ config_mailbox_set_as_special(LibBalsaMailbox * mailbox, specialType which)
        g_object_unref(mbnode);
     }
     config_mailbox_delete(mailbox);
-    libbalsa_mailbox_set_name(mailbox, specialNames[which]);
+    libbalsa_mailbox_set_name(mailbox, _(specialNames[which]));
     config_mailbox_add(mailbox, specialNames[which]);
 
     *special = mailbox;


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