show in extensions menu (blue button)
[enigma2-curlytx.git] / src / plugin.py
index e36a215..6743991 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