+# -*- coding: utf-8 -*-
+# CurlyTx plugin registration and startup
+# Copyright (C) 2011 Christian Weiske <cweiske@cweiske.de>
+
from Plugins.Plugin import PluginDescriptor
import CurlyTx
def main(session, **kwargs):
- reload(CurlyTx)
try:
session.open(CurlyTx.CurlyTx)
except:
def Plugins(**kwargs):
- return [
- PluginDescriptor(name = config.plugins.CurlyTx.menuTitle.value,
- description = "View remote text files",
- where = [PluginDescriptor.WHERE_PLUGINMENU],
- fnc = main),
+ list = [
+# PluginDescriptor(name = config.plugins.CurlyTx.menuTitle.value,
+# description = "View remote text files",
+# where = [PluginDescriptor.WHERE_PLUGINMENU],
+# fnc = main),
PluginDescriptor(name = config.plugins.CurlyTx.menuTitle.value,
- description = "View remote text files",
+ description = _("View remote text files"),
where=PluginDescriptor.WHERE_MENU,
fnc = menuHook),
- ]
+ ]
+ if config.plugins.CurlyTx.menuExtensions.value:
+ list.append(
+ PluginDescriptor(name = config.plugins.CurlyTx.menuTitle.value,
+ description = _("View remote text files"),
+ where = [PluginDescriptor.WHERE_EXTENSIONSMENU],
+ fnc = main)
+ )
+ return list