~ubuntu-branches/ubuntu/trusty/geis/trusty

« back to all changes in this revision

Viewing changes to tools/geisview/defaults.py.in

  • Committer: Package Import Robot
  • Author(s): Chase Douglas
  • Date: 2012-07-30 08:51:42 UTC
  • Revision ID: package-import@ubuntu.com-20120730085142-jrc33ygjvt0ob1wl
Tags: upstream-2.2.11
ImportĀ upstreamĀ versionĀ 2.2.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# @file geisview/defaults.py
 
3
# @brief Default values for geisview.
 
4
#
 
5
# Copyright (C) 2011 Canonical Ltd
 
6
#
 
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.
 
11
#
 
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.
 
16
#
 
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/>.
 
19
#
 
20
 
 
21
import os
 
22
import gettext
 
23
 
 
24
 
 
25
root_dir = os.path.dirname(__file__)
 
26
if os.path.exists(os.path.join(root_dir, "Makefile.am")):
 
27
    # running in source directory
 
28
    data_dir = root_dir
 
29
    locale_dir = os.path.join(data_dir, "locale")
 
30
    ui_dir = data_dir
 
31
else:
 
32
    # running from installed
 
33
    data_dir = os.path.join("@shareddir@")
 
34
    locale_dir = os.path.join(data_dir, "locale")
 
35
    ui_dir = data_dir
 
36
 
 
37
 
 
38
i18n_domain = "geisview"
 
39
gettext.bindtextdomain(i18n_domain, locale_dir)
 
40
gettext.textdomain(i18n_domain)
 
41
from gettext import gettext as _
 
42
 
 
43
version = "1.0"
 
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"]
 
50
 
 
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/>.")
 
61
 
 
62