2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2006 Hiroyuki Yamamoto and the Sylpheed-Claws team
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.
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.
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25 #include <glib/gi18n.h>
27 #include <gdk/gdkkeysyms.h>
29 #include "manage_window.h"
30 #include "description_window.h"
35 * Strings describing quote format strings
37 * When adding new lines, remember to put 2 strings for each line
39 static gchar *quote_desc_strings[] = {
40 "%D{fmt}", N_("customized 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 "%X", N_("cursor position"), /* X marks the cursor spot */
58 "\\%", N_("literal %"),
59 "\\\\", N_("literal backslash"),
60 "\\?", N_("literal question mark"),
61 "\\!", N_("literal exclamation mark"),
62 "\\|", N_("literal pipe"),
63 "\\{", N_("literal opening curly brace"),
64 "\\}", N_("literal closing curly brace"),
66 "\\n", N_("linefeed"),
68 "?x{expr}\n", N_("insert expr if x is set\n(where x is one of the dfNFLIstcnri characters)"),
69 "!x{expr}\n", N_("insert expr if x is not set\n(where x is one of the dfNFLIstcnri characters)"),
70 "|f{sub_expr}\n", N_("insert file:\nsub_expr is evaluated as a filename to insert"), /* insert file */
71 "|p{sub_expr}\n\n", N_("insert program output:\nsub_expr is evaluated as a command-line to get\nthe output from"), /* insert program output */
72 "|i{sub_expr}\n\n", N_("insert user input:\nsub_expr is a variable to be replaced by\nuser-entered text"), /* insert user input */
74 "terms definition:", NULL,
75 "expr", "text that can contain any of the symbols above",
76 "sub_expr\n", "text that can contain any of the symbols above\nbut ?x{}, !x{}, |f{}, |p{} and |i{}",
80 static DescriptionWindow quote_desc_win = {
84 N_("Description of symbols"),
85 N_("The following symbols can be used:"),
90 void quote_fmt_quote_description(GtkWidget *widget, GtkWidget *pref_window)
92 quote_desc_win.parent = pref_window;
93 description_window_create("e_desc_win);