* src/summaryview.c
[claws.git] / src / quote_fmt.c
1 /*
2  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3  * Copyright (C) 1999-2001 Hiroyuki Yamamoto
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18  */
19
20 #ifdef HAVE_CONFIG_H
21 #  include "config.h"
22 #endif
23
24 #include <glib.h>
25 #include <gtk/gtk.h>
26 #include <gdk/gdkkeysyms.h>
27
28 #include "intl.h"
29 #include "manage_window.h"
30 #include "description_window.h"
31 #include "gtkutils.h"
32
33
34 /*
35  * Strings describing quote format strings
36  * 
37  * When adding new lines, remember to put 2 strings for each line
38  */
39 static gchar *quote_desc_strings[] = {
40         "%D{fmt}",      N_("Customize date format (see man strftime)"), /* date expression */
41         "%d",           N_("Date"), /* date */
42         "%f",           N_("From"), /* from */
43         "%N",           N_("Full Name of Sender"), /* full name */
44         "%F",           N_("First Name of Sender"), /* first name */
45         "%L",           N_("Last Name of Sender"), /* last name */
46         "%I",           N_("Initials of Sender"), /* initial of sender */
47         "%s",           N_("Subject"), /* subject */ 
48         "%t",           N_("To"), /* to */ 
49         "%c",           N_("Cc"), /* cc */ 
50         "%n",           N_("Newsgroups"), /* newsgroups */ 
51         "%r",           N_("References"), /* references */ 
52         "%i",           N_("Message-ID"), /* message-id */ 
53         "%M",           N_("Message body"), /* message */ 
54         "%Q",           N_("Quoted message body"), /* quoted message */ 
55         "%m",           N_("Message body without signature"), /* message with no signature */ 
56         "%q",           N_("Quoted message body without signature"), /* quoted message with no signature */ 
57         "",             NULL,
58         "?x{expr}",     N_("Insert expr if x is set\nx is one of the characters above after %"),
59         "",             NULL,
60         "\\%",          N_("Literal %"),
61         "\\\\",         N_("Literal backslash"),
62         "\\?",          N_("Literal question mark"),
63         "\\|",          N_("Literal pipe"),
64         "\\{",          N_("Literal opening curly brace"),
65         "\\}",          N_("Literal closing curly brace"),
66         "",             NULL,
67         "|f{file}",     N_("Insert File"),
68         "|p{command}",  N_("Insert program output"), /* insert program output */ 
69         NULL,NULL
70 };
71
72 static DescriptionWindow quote_desc_win = { 
73         NULL, 
74         2,
75         N_("Description of symbols"),
76         quote_desc_strings
77 };
78
79
80 void quote_fmt_quote_description(void)
81 {
82         description_window_create(&quote_desc_win);
83 }
84