summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-01-01 12:12:26 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-01-01 12:12:26 +0100
commit76d5c10380fec15e5e8800ace91597041f814a96 (patch)
tree2d0af1110a67b1a5b3bf77efa698135a18962272 /module
parentMU premium lifetime fix (diff)
downloadpyload-76d5c10380fec15e5e8800ace91597041f814a96.tar.xz
Happy new Year !!!
Diffstat (limited to 'module')
-rw-r--r--module/ConfigParser.py6
-rw-r--r--module/setup.py12
-rw-r--r--module/web/templates/default/base.html2
3 files changed, 13 insertions, 7 deletions
diff --git a/module/ConfigParser.py b/module/ConfigParser.py
index ccf6f08d1..0d681551a 100644
--- a/module/ConfigParser.py
+++ b/module/ConfigParser.py
@@ -325,7 +325,11 @@ class ConfigParser:
self.plugin[plugin][option]["value"] = value
self.save()
-
+
+ def getMetaData(self, section, option):
+ """ get all config data for an option """
+ return self.config[section][option]
+
#----------------------------------------------------------------------
def addPluginConfig(self, config):
"""adds config option with tuple (plugin, name, type, desc, default)"""
diff --git a/module/setup.py b/module/setup.py
index 8881cf055..7799ea30c 100644
--- a/module/setup.py
+++ b/module/setup.py
@@ -261,12 +261,14 @@ class Setup():
self.config.password = self.ask("", "", password=True)
print ""
- self.config["general"]["language"] = self.ask(_("Language"), "en", ["en", "de", "it", "pl", "es"])
- #@TODO get language from config type
+ langs = self.config.getMetaData("general", "language")
+ self.config["general"]["language"] = self.ask(_("Language"), "en", langs["type"].split(";"))
+
+
self.config["general"]["download_folder"] = self.ask(_("Downloadfolder"), "Downloads")
- self.config["general"]["max_downloads"] = self.ask(_("Max parallel downloads"), "3")
- print _("You should disable checksum proofing, if you have low hardware requirements.")
- self.config["general"]["checksum"] = self.ask(_("Proof checksum?"), "y", bool=True)
+ self.config["download"]["max_downloads"] = self.ask(_("Max parallel downloads"), "3")
+ #print _("You should disable checksum proofing, if you have low hardware requirements.")
+ #self.config["general"]["checksum"] = self.ask(_("Proof checksum?"), "y", bool=True)
reconnect = self.ask(_("Use Reconnect?"), "n", bool=True)
self.config["reconnect"]["activated"] = reconnect
diff --git a/module/web/templates/default/base.html b/module/web/templates/default/base.html
index 8cd44615d..9b9622a12 100644
--- a/module/web/templates/default/base.html
+++ b/module/web/templates/default/base.html
@@ -300,7 +300,7 @@ function AddBox()
<hr style="clear: both;" />
-<div id="foot">{% trans "© 2008-2010 the pyLoad Team" %}
+<div id="foot">{% trans "© 2008-2011 the pyLoad Team" %}
<a href="#top" class="action top" accesskey="x"><span>{% trans "Back to top" %}</span></a><br />
<!--<div class="breadcrumbs"></div>-->