[kupfer: 16/24] plugin.truecrypt: fix strings, remove SETTING_PREFER_CATALOG
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer: 16/24] plugin.truecrypt: fix strings, remove SETTING_PREFER_CATALOG
- Date: Fri, 27 Nov 2009 13:39:52 +0000 (UTC)
commit 7d2f261d750bffca3c92f0c1bb194db2a6ca0226
Author: Karol BÄ?dkowski <karol bedkowsk+gh gmail com>
Date: Tue Nov 24 09:22:31 2009 +0100
plugin.truecrypt: fix strings, remove SETTING_PREFER_CATALOG
kupfer/plugin/truecrypt.py | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/kupfer/plugin/truecrypt.py b/kupfer/plugin/truecrypt.py
index 8dd5714..d2b9125 100644
--- a/kupfer/plugin/truecrypt.py
+++ b/kupfer/plugin/truecrypt.py
@@ -7,18 +7,14 @@ import gio
from kupfer.objects import (Action, Source, Leaf, PicklingHelperMixin,
AppLeafContentMixin, AppLeaf)
from kupfer import utils
-from kupfer import plugin_support
__kupfer_name__ = _("TrueCrypt")
__kupfer_sources__ = ("VolumeSource", )
__kupfer_actions__ = ('DismountAll', )
-__description__ = _("Volumes from TrueCrypt History.")
+__description__ = _("Volumes from TrueCrypt history")
__version__ = "2009-11-23"
__author__ = "Karol BÄ?dkowski <karol bedkowski gmail com>"
-__kupfer_settings__ = plugin_support.PluginSettings(
- plugin_support.SETTING_PREFER_CATALOG,
-)
_HISTORY_FILE = "~/.TrueCrypt/History.xml"
@@ -31,7 +27,7 @@ class Volume(Leaf):
return "truecrypt"
def get_description(self):
- return _("TrueCrypt Volume: %(file)s") % dict(file=self.object)
+ return _("TrueCrypt Volume: %(file)s") % dict(file=unicode(self.object))
def get_actions(self):
yield MountVolume()
@@ -47,7 +43,7 @@ class MountVolume(Action):
class DismountAll(Action):
def __init__(self):
- Action.__init__(self, _("Dismount All Mounted Volumes"))
+ Action.__init__(self, _("Dismount All Volumes"))
def activate(self, leaf, iobj=None):
utils.launch_commandline('truecrypt -d')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]