2
# @file geisview/defaults.py
3
# @brief Default values for geisview.
5
# Copyright (C) 2011 Canonical Ltd
7
# This program is free software; you can redistribute it and/or modify
8
# it under the terms of the GNU General Public License as published by
9
# the Free Software Foundation; either version 3 of the License, or
10
# (at your option) any later version.
12
# This program is distributed in the hope that it will be useful,
13
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
# GNU General Public License for more details.
17
# You should have received a copy of the GNU General Public License
18
# along with this program. If not, see <http://www.gnu.org/licenses/>.
25
root_dir = os.path.dirname(__file__)
26
if os.path.exists(os.path.join(root_dir, "Makefile.am")):
27
# running in source directory
29
locale_dir = os.path.join(data_dir, "locale")
32
# running from installed
33
data_dir = os.path.join("@shareddir@")
34
locale_dir = os.path.join(data_dir, "locale")
38
i18n_domain = "geisview"
39
gettext.bindtextdomain(i18n_domain, locale_dir)
40
gettext.textdomain(i18n_domain)
41
from gettext import gettext as _
44
appname = _("GEIS Viewer")
45
appname_short = _("geisview")
46
copyright = 'Copyright 2011 Canonical, Ltd.'
47
description = _("A GEIS data viewer.\n\nGEIS Viewer is a part of "
48
"the Canonical gesture recognition stack.")
49
authors = ["Stephen M. Webb <stephen.webb@canonical.com"]
51
LICENSE = _("%s is free software; you can redistribute it and/or modify "
52
"it under the terms of the GNU General Public License as published by "
53
"the Free Software Foundation; either version 2 of the License, or "
54
"(at your option) any later version.\n\n").replace("%s", appname),
55
_("%s is distributed in the hope that it will be useful, "
56
"but WITHOUT ANY WARRANTY; without even the implied warranty of "
57
"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the "
58
"GNU General Public License for more details.\n\n").replace("%s", appname),
59
_("You should have received a copy of the GNU General Public License "
60
"along with this program. If not, see <http://www.gnu.org/licenses/>.")