summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
Diffstat (limited to 'module')
-rw-r--r--module/config/default.conf2
-rw-r--r--module/setup.py20
-rw-r--r--module/web/locale/es/LC_MESSAGES/django.mobin367 -> 3698 bytes
-rw-r--r--module/web/locale/pl/LC_MESSAGES/django.mobin3392 -> 4655 bytes
4 files changed, 17 insertions, 5 deletions
diff --git a/module/config/default.conf b/module/config/default.conf
index f187e87f0..11cc70388 100644
--- a/module/config/default.conf
+++ b/module/config/default.conf
@@ -21,7 +21,7 @@ log - "Log":
str log_folder : "Folder" = Logs
int log_count : "Count" = 5
general - "General":
- en;de;it language : "Language" = en
+ en;de;it;pl;es language : "Language" = en
str download_folder : "Download Folder" = Downloads
int max_downloads : "Max Parallel Downloads" = 3
bool debug_mode : "Debug Mode" = False
diff --git a/module/setup.py b/module/setup.py
index 6d4d8e42f..645089a55 100644
--- a/module/setup.py
+++ b/module/setup.py
@@ -46,7 +46,7 @@ class Setup():
def start(self):
- lang = self.ask(u"Choose your Language / Wähle deine Sprache", "en", ["en", "de", "it"])
+ lang = self.ask(u"Choose your Language / Wähle deine Sprache", "en", ["en", "de","it","pl"])
translation = gettext.translation("setup", join(self.path, "locale"), languages=["en", lang])
translation.install(True)
@@ -259,7 +259,8 @@ class Setup():
self.config.password = self.ask("", "", password=True)
print ""
- self.config["general"]["language"] = self.ask(_("Language"), "en", ["en", "de", "fr", "nl", "pl"])
+ self.config["general"]["language"] = self.ask(_("Language"), "en", ["en", "de", "it", "pl", "es"])
+ #@TODO get language from config type
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.")
@@ -411,13 +412,24 @@ class Setup():
p1 = True
p2 = False
while p1 != p2:
- p1 = getpass(_("Password: "))
+
+ if os.name == "nt":
+ qst = str("Password: ") #no unicode on windows
+ else:
+ qst = _("Password: ")
+
+ p1 = getpass(qst)
if len(p1) < 4:
print _("Password to short. Use at least 4 symbols.")
continue
- p2 = getpass(_("Password (again): "))
+ if os.name == "nt":
+ qst = str("Password (again): ")
+ else:
+ qst = _("Password (again): ")
+
+ p2 = getpass(qst)
if p1 == p2:
return p1
diff --git a/module/web/locale/es/LC_MESSAGES/django.mo b/module/web/locale/es/LC_MESSAGES/django.mo
index 3fb287c3d..ea55b4440 100644
--- a/module/web/locale/es/LC_MESSAGES/django.mo
+++ b/module/web/locale/es/LC_MESSAGES/django.mo
Binary files differ
diff --git a/module/web/locale/pl/LC_MESSAGES/django.mo b/module/web/locale/pl/LC_MESSAGES/django.mo
index 803ca8a68..5f17f785d 100644
--- a/module/web/locale/pl/LC_MESSAGES/django.mo
+++ b/module/web/locale/pl/LC_MESSAGES/django.mo
Binary files differ