~jconti/recent-notifications/trunk

« back to all changes in this revision

Viewing changes to recent_notifications/About.py

  • Committer: Jason Conti
  • Date: 2010-03-08 18:16:22 UTC
  • Revision ID: jason.conti@gmail.com-20100308181622-gd3xbvuoxtpzjn69
Tags: 0.4.6
Adding support for gettext translations and a pointless en_US translation as an example. Using distutils-extra to automatically build the translations and the bonobo server. Replaced the build_servers target with update_prefix. This performs basically the same as build_servers except that it will do the substitution on any .in file, and it just writes the output file without the .in, instead of adding it to the data file install list.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 
11
11
from Globals import VERSION, WEBSITE
12
12
from Icon import load_icon
 
13
from Translations import _
 
14
 
 
15
license = _("""
 
16
This program is free software: you can redistribute it and/or modify
 
17
it under the terms of the GNU General Public License as published by
 
18
the Free Software Foundation, either version 3 of the License, or
 
19
(at your option) any later version.
 
20
 
 
21
This program is distributed in the hope that it will be useful,
 
22
but WITHOUT ANY WARRANTY; without even the implied warranty of
 
23
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
24
GNU General Public License for more details.
 
25
 
 
26
You should have received a copy of the GNU General Public License
 
27
along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
28
""")
13
29
 
14
30
def show_about(parent):
15
31
  about = gtk.AboutDialog()
16
32
 
17
33
  about.set_authors(["Jason Conti <jason.conti@gmail.com>"])
18
 
  about.set_comments("View recent notifications")
19
 
  about.set_copyright(u"Copyright \xa9 2010 Jason Conti.")
 
34
  about.set_comments(_("View recent notifications"))
 
35
  about.set_copyright(_(u"Copyright \xa9 2010 Jason Conti."))
 
36
  about.set_license(license)
20
37
 
21
38
  icon = load_icon("recent-notifications")
22
39
  if icon != None:
23
40
    about.set_logo(icon)
24
41
 
25
 
  about.set_name("Recent Notifications")
 
42
  about.set_name(_("Recent Notifications"))
26
43
  about.set_version(VERSION)
27
44
  about.set_website(WEBSITE)
28
45