]> git.0d.be Git - empathy.git/blob - src/empathy-about-dialog.c
2480d756983d958fdcb40c409c46ff94f2914cdc
[empathy.git] / src / empathy-about-dialog.c
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * Copyright (C) 2006-2007 Imendio AB
4  * Copyright (C) 2007-2008 Collabora Ltd.
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of the
9  * License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public
17  * License along with this program; if not, write to the
18  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19  * Boston, MA  02110-1301  USA
20  *
21  * Authors: Martyn Russell <martyn@imendio.com>
22  *          Xavier Claessens <xclaesse@gmail.com>
23  */
24
25 #include "config.h"
26
27 #include <glib/gi18n.h>
28
29 #include "empathy-about-dialog.h"
30
31 #define WEB_SITE "http://live.gnome.org/Empathy"
32
33 static const char *authors[] = {
34         "Alban Crequy",
35         "Andreas Lööw",
36         "Aurelien Naldi",
37         "Bastien Nocera",
38         "Christoffer Olsen",
39         "Cosimo Cecchi",
40         "Danielle Madeley",
41         "Elliot Fairweather",
42         "Frederic Crozat",
43         "Frederic Peters",
44         "Geert-Jan Van den Bogaerde",
45         "Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>",
46         "Johan Hammar",
47         "Jonatan Magnusson",
48         "Jonny Lamb",
49         "Jordi Mallach",
50         "Kim Andersen",
51         "Marco Barisione",
52         "Martyn Russell <martyn@gnome.org>",
53         "Mikael Hallendal <micke@imendio.com>",
54         "Mike Gratton",
55         "Richard Hult <richard@imendio.com>",
56         "Ross Burton",
57         "Sjoerd Simons",
58         "Thomas Reynolds",
59         "Vincent Untz",
60         "Xavier Claessens <xclaesse@gmail.com>",
61         NULL
62 };
63
64 static const char *documenters[] = {
65         "Milo Casagrande",
66         "Seth Dudenhofer",
67         NULL
68 };
69
70 static const char *artists[] = {
71         "Andreas Nilsson <nisses.mail@home.se>",
72         "Vinicius Depizzol <vdepizzol@gmail.com>",
73         "K.Vishnoo Charan Reddy <drkvi-a@yahoo.com>",
74         NULL
75 };
76
77 static const char *license[] = {
78         N_("Empathy is free software; you can redistribute it and/or modify "
79            "it under the terms of the GNU General Public License as published by "
80            "the Free Software Foundation; either version 2 of the License, or "
81            "(at your option) any later version."),
82         N_("Empathy is distributed in the hope that it will be useful, "
83            "but WITHOUT ANY WARRANTY; without even the implied warranty of "
84            "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the "
85            "GNU General Public License for more details."),
86         N_("You should have received a copy of the GNU General Public License "
87            "along with Empathy; if not, write to the Free Software Foundation, Inc., "
88            "51 Franklin Street, Fifth Floor, Boston, MA 02110-130159 USA"),
89         NULL
90 };
91
92 void
93 empathy_about_dialog_new (GtkWindow *parent)
94 {
95         GString *license_trans = g_string_new (NULL);
96         int i;
97
98         for (i = 0; license[i] != NULL; i++) {
99                 g_string_append (license_trans, _(license[i]));
100                 g_string_append (license_trans, "\n\n");
101
102         }
103         gtk_show_about_dialog (parent,
104                                "artists", artists,
105                                "authors", authors,
106                                "comments", _("An Instant Messaging client for GNOME"),
107                                "license", license_trans->str,
108                                "wrap-license", TRUE,
109                                "copyright", "Imendio AB 2002-2007\nCollabora Ltd 2007-2011",
110                                "documenters", documenters,
111                                "logo-icon-name", "empathy",
112                                "translator-credits", _("translator-credits"),
113                                "version", PACKAGE_VERSION,
114                                "website", WEB_SITE,
115                                NULL);
116
117         g_string_free (license_trans, TRUE);
118 }
119
120