]> git.0d.be Git - empathy.git/blob - src/empathy-about-dialog.c
Updated Polish translation
[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 #include <gtk/gtk.h>
29
30 #include <libempathy-gtk/empathy-ui-utils.h>
31
32 #include "empathy-about-dialog.h"
33
34 #define WEB_SITE "http://live.gnome.org/Empathy"
35
36 static void about_dialog_activate_link_cb (GtkAboutDialog  *about,
37                                            const gchar     *link,
38                                            gpointer         data);
39
40 static const char *authors[] = {
41         "Alban Crequy",
42         "Andreas Lööw",
43         "Aurelien Naldi",
44         "Bastien Nocera",
45         "Christoffer Olsen",
46         "Cosimo Cecchi",
47         "Danielle Madeley",
48         "Elliot Fairweather",
49         "Frederic Crozat",
50         "Frederic Peters",
51         "Geert-Jan Van den Bogaerde",
52         "Guillaume Desmottes",
53         "Johan Hammar",
54         "Jonatan Magnusson",
55         "Jonny Lamb",
56         "Jordi Mallach",
57         "Kim Andersen",
58         "Marco Barisione",
59         "Martyn Russell <martyn@gnome.org>",
60         "Mikael Hallendal <micke@imendio.com>",
61         "Mike Gratton",
62         "Richard Hult <richard@imendio.com>",
63         "Ross Burton",
64         "Sjoerd Simons",
65         "Thomas Reynolds",
66         "Vincent Untz",
67         "Xavier Claessens <xclaesse@gmail.com>",
68         NULL
69 };
70
71 static const char *documenters[] = {
72         "Milo Casagrande",
73         "Seth Dudenhofer",
74         NULL
75 };
76
77 static const char *artists[] = {
78         "Andreas Nilsson <nisses.mail@home.se>",
79         "Vinicius Depizzol <vdepizzol@gmail.com>",
80         "K.Vishnoo Charan Reddy <drkvi-a@yahoo.com>",
81         NULL
82 };
83
84 static const char *license[] = {
85         N_("Empathy is free software; you can redistribute it and/or modify "
86            "it under the terms of the GNU General Public License as published by "
87            "the Free Software Foundation; either version 2 of the License, or "
88            "(at your option) any later version."),
89         N_("Empathy is distributed in the hope that it will be useful, "
90            "but WITHOUT ANY WARRANTY; without even the implied warranty of "
91            "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the "
92            "GNU General Public License for more details."),
93         N_("You should have received a copy of the GNU General Public License "
94            "along with Empathy; if not, write to the Free Software Foundation, Inc., "
95            "51 Franklin Street, Fifth Floor, Boston, MA 02110-130159 USA")
96 };
97
98 static void
99 about_dialog_activate_link_cb (GtkAboutDialog *about,
100                                const gchar    *link,
101                                gpointer        data)
102 {
103         empathy_url_show (GTK_WIDGET (about), link);
104 }
105
106 void
107 empathy_about_dialog_new (GtkWindow *parent)
108 {
109         gchar *license_trans;
110
111         gtk_about_dialog_set_url_hook (about_dialog_activate_link_cb, NULL, NULL);
112
113         license_trans = g_strconcat (_(license[0]), "\n\n",
114                                      _(license[1]), "\n\n",
115                                      _(license[2]), "\n\n",
116                                      NULL);
117
118         gtk_show_about_dialog (parent,
119                                "artists", artists,
120                                "authors", authors,
121                                "comments", _("An Instant Messaging client for GNOME"),
122                                "license", license_trans,
123                                "wrap-license", TRUE,
124                                "copyright", "Imendio AB 2002-2007\nCollabora Ltd 2007-2010",
125                                "documenters", documenters,
126                                "logo-icon-name", "empathy",
127                                "translator-credits", _("translator-credits"),
128                                "version", PACKAGE_VERSION,
129                                "website", WEB_SITE,
130                                NULL);
131
132         g_free (license_trans);
133 }
134
135