Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/info.py
blob: 6b25d1d399617285409f6bbb315a83b8397de069 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# -*- coding: utf-8 -*-
#
# Copyright (C) 2012 S. Daniel Francis <francis@sugarlabs.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.


service_name = 'org.sugarlabs.GraphPlotter'

import os
this_dir = os.path.abspath('./')

import gettext
if int(os.environ['INFO_L10N']):
    locale_path = os.path.join(this_dir, 'locale')
    gettext.bindtextdomain(service_name, locale_path)
    gettext.textdomain(service_name)
_ = gettext.gettext

try:
    import sweetener
    if sweetener.GTK == 3:
        from gi.repository import GLib
    else:
        import glib as GLib
except:
    pass

DOCUMENT = 0
CONFIG = 1
io_mode = DOCUMENT

name = _('Graph Plotter')

try:
    GLib.set_prgname(name)
    GLib.set_application_name(name)
except:
    pass

generic_name = _('Mathematical Function Plotter')
lower_name = 'graph-plotter'

copyright_data = {'year': '2012-2013', 'holder': 'Daniel Francis'}
copyright = 'Copyright © %s %s' % (copyright_data['year'], copyright_data['holder'])
version = '9'
description = _("Plot mathematical functions and study maths.")
authors = ['Daniel Francis <francis@sugarlabs.org>']
#TRANS: The link to the translated page if any, if not leave the string as it is
url = _('http://wiki.sugarlabs.org/go/Activities/Graph_Plotter')
documentation = _('http://wiki.sugarlabs.org/go/Activities/Graph_Plotter')
categories = ['Education', 'Math']

file_filter_name = _('Plotted Functions')
file_filter_mime = 'application/x-%s' % lower_name
file_filter_patterns = ['*.gpt']

# Refer to the COPYING
license = 'GPLv3'
license_file = open('COPYING')
license_content = license_file.read()
license_file.close()

git = 'git://git.sugarlabs.org/graph-plotter/mainline.git'
git_browser = 'http://git.sugarlabs.org/graph-plotter/mainline'
deb_depends = ['python-numpy', 'python-gi-cairo', 'gir1.2-gtk-3.0']