1
# __init__.py for computerjanitorapp
2
# Copyright (C) 2008, 2009 Canonical, Ltd.
4
# This program is free software: you can redistribute it and/or modify
5
# it under the terms of the GNU General Public License as published by
6
# the Free Software Foundation, version 3 of the License.
8
# This program is distributed in the hope that it will be useful,
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
# GNU General Public License for more details.
13
# You should have received a copy of the GNU General Public License
14
# along with this program. If not, see <http://www.gnu.org/licenses/>.
20
# Set up gettext. This needs to be before the import statements below
21
# so that if any modules call it right after importing, they find
25
"""Set up gettext for a module.
27
Return a method to be used for looking up translations. Usage:
29
import computerjanitorapp
30
_ = computerjanitorapp.setup_gettext()
37
domain = 'computerjanitorapp'
38
localedir = os.environ.get('LOCPATH', None)
39
t = gettext.translation(domain, localedir=localedir, fallback=True)
43
from app import Application
44
from ui import UserInterface
45
from ui_cli import CommandLineUserInterface
46
from ui_gtk import GtkUserInterface
47
from state import State
48
from terminalsize import get_terminal_size