summaryrefslogtreecommitdiffstats
path: root/module/setup.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-12-23 12:15:56 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-12-23 12:15:56 +0100
commitf852c362fc6283246a9f9e690c456dd3fd245c29 (patch)
tree93eb5751938cdb4b668fcdeddba9231a8038b4b5 /module/setup.py
parentaccountmanager v2, delete your accounts.conf and re-enter them in pyload, (diff)
downloadpyload-f852c362fc6283246a9f9e690c456dd3fd245c29.tar.xz
closed #473
Diffstat (limited to 'module/setup.py')
-rw-r--r--module/setup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/setup.py b/module/setup.py
index f90afe23a..9af4a5159 100644
--- a/module/setup.py
+++ b/module/setup.py
@@ -41,7 +41,7 @@ class Setup():
self.stdin_encoding = get_console_encoding(sys.stdin.encoding)
def start(self):
- langs = self.config.getMetaData("general", "language")["type"].split(";")
+ langs = self.config.getMetaData("general", "language").type.split(";")
lang = self.ask(u"Choose your Language / Wähle deine Sprache", "en", langs)
gettext.setpaths([join(os.sep, "usr", "share", "pyload", "locale"), None])
translation = gettext.translation("setup", join(self.path, "locale"), languages=[lang, "en"], fallback=True)
@@ -288,7 +288,7 @@ class Setup():
print ""
langs = self.config.getMetaData("general", "language")
- self.config["general"]["language"] = self.ask(_("Language"), "en", langs["type"].split(";"))
+ self.config["general"]["language"] = self.ask(_("Language"), "en", langs.type.split(";"))
self.config["general"]["download_folder"] = self.ask(_("Downloadfolder"), "Downloads")
self.config["download"]["max_downloads"] = self.ask(_("Max parallel downloads"), "3")