1 # -*- coding: utf-8 -*-
3 # Copyright (C) 2007 Marco Ferragina <marco.ferragina@gmail.com>
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 St, Fifth Floor, Boston, MA 02110-1301 USA
24 locale
.setlocale(locale
.LC_ALL
, "")
25 gettext
.install('cgmail', unicode = 1)
26 gtk
.glade
.bindtextdomain('cgmail')
27 except (IOError,locale
.Error
), e
:
30 __builtin__
.__dict
__['_'] = lambda x
: x
32 CGMAIL_VERSION
= "0.5"
34 TRANSLATORS
= """Marco Ferragina <marco.ferragina@gmail.com> (Italian)
35 Festor Wailon Dacoba (Spanish)
36 Nicolas Schirrer (French)
37 Hajo Engelke <heedful@xmail.net> (German)
41 BASE_DATA_PATH
= "/usr/share/cGmail/"
43 if not "/site-packages/cGmail/lib/common.py" in __file__
:
45 BASE_DATA_PATH
= "data/"
48 # Show only last MAX_NOTIFIED_MAILS in notifications
49 # to avoid to overbound the desktop area
50 MAX_NOTIFIED_MAILS
= 5
52 GLADE_BASE_PATH
= BASE_DATA_PATH
+ "glade/"
54 #############################################################
59 CGMAIL_AUTOSTART_FILE
= BASE_DATA_PATH
+ "cgmailservice.desktop"
63 ABOUT_ICON
= BASE_DATA_PATH
+ "cgmail.svg"
64 DEFAULT_NOTIFY_ICON
= BASE_DATA_PATH
+ "malert.png"
65 NOMAIL_ICON
= BASE_DATA_PATH
+ "nomail.png"
66 MORE_NEWMAIL_ICON
= BASE_DATA_PATH
+ "more-newmail.png"
67 NEWMAIL_ICON_BASE_PATH
= BASE_DATA_PATH
+ "%i-newmail.png"
69 ICONS_BASE_PATH
= BASE_DATA_PATH
71 SND_NOTIFY
= BASE_DATA_PATH
+ "notify.wav"