~karlo-jez/gtg/gtgonline

« back to all changes in this revision

Viewing changes to dbusserver/GTG/core/plugins/__init__.py

  • Committer: Karlo Jež
  • Date: 2010-05-25 18:20:23 UTC
  • Revision ID: keks@keks-laptop-20100525182023-4iiio5ji2z9are00
Task treeview enhancements

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
# -----------------------------------------------------------------------------
 
3
# Gettings Things Gnome! - a personal organizer for the GNOME desktop
 
4
# Copyright (c) 2008-2009 - Lionel Dricot & Bertrand Rousseau
 
5
#
 
6
# This program is free software: you can redistribute it and/or modify it under
 
7
# the terms of the GNU General Public License as published by the Free Software
 
8
# Foundation, either version 3 of the License, or (at your option) any later
 
9
# version.
 
10
#
 
11
# This program is distributed in the hope that it will be useful, but WITHOUT
 
12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 
13
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 
14
# details.
 
15
#
 
16
# You should have received a copy of the GNU General Public License along with
 
17
# this program.  If not, see <http://www.gnu.org/licenses/>.
 
18
# -----------------------------------------------------------------------------
 
19
 
 
20
 
 
21
#This is the tool package. It contains some useful function and tool
 
22
#that could be useful for any part of GTG.
 
23
 
 
24
import os
 
25
 
 
26
from GTG import _
 
27
 
 
28
class GnomeConfig:
 
29
    current_rep = os.path.dirname(os.path.abspath(__file__))
 
30
    GLADE_FILE    = os.path.join(current_rep,"pluginmanager.glade")
 
31
    
 
32
    CANLOAD = _("Everything necessary to run this plugin is available.")
 
33
    CANNOTLOAD = _("The plugin can not be loaded")
 
34
    miss1 = _("Some python modules are missing")
 
35
    miss2 = _("Please install the following python modules:")
 
36
    MODULEMISSING = "%s \n%s" %(miss1,miss2)
 
37
    dmiss1 = _("Some remote dbus objects are missing.")
 
38
    dmiss2 = _("Please start the following applications:")
 
39
    DBUSMISSING = "%s \n%s" %(dmiss1,dmiss2)
 
40
    bmiss1 = _("Some modules and remote dbus objects are missing.")
 
41
    bmiss2 = _("Please install or start the following components:")
 
42
    MODULANDDBUS = "%s \n%s" %(bmiss1,bmiss2)
 
43
    umiss1 = _("Unknown error while loading the plugin.")
 
44
    umiss2 = _("Very helpful message, isn't it? Please report a bug.")
 
45
    UNKNOWN = "%s \n%s" %(umiss1,umiss2)