make saving urls work again :)
[enigma2-curlytx.git] / src / plugin.py
index e36a21568c3e9e08f843a49e4f458f4f521a5c15..6743991122ab97bd81c0ab5767b238f4fb45fe73 100644 (file)
@@ -20,13 +20,21 @@ def menuHook(menuid):
 
  
 def Plugins(**kwargs):
-    return [
+    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",
-                         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