diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-06-18 13:21:10 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-06-18 13:21:10 +0200 |
commit | 6b536658191158daf6017b62978375345ae62c9f (patch) | |
tree | b86c8d798d619300cdb0e5f6f74eed4018828fb2 | |
parent | fixed last commit (diff) | |
download | pyload-6b536658191158daf6017b62978375345ae62c9f.tar.xz |
fixes setup unicode errors
-rw-r--r-- | module/setup.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/setup.py b/module/setup.py index b865716cc..9cf125bfd 100644 --- a/module/setup.py +++ b/module/setup.py @@ -336,7 +336,7 @@ class Setup(): def set_user(self): translation = gettext.translation("setup", join(self.path, "locale"), languages=["en", self.config["general"]["language"]]) - translation.install(unicode=(True if sys.getfilesystemencoding().startswith("utf") else False)) + translation.install(True) from module.database import DatabaseBackend db = DatabaseBackend(None) @@ -387,7 +387,7 @@ class Setup(): def conf_path(self, trans=False): if trans: translation = gettext.translation("setup", join(self.path, "locale"), languages=[self.config["general"]["language"]]) - translation.install(unicode=(True if sys.getfilesystemencoding().startswith("utf") else False)) + translation.install(True) print _("Setting new configpath, current configuration will not be transfered!") path = self.ask(_("Configpath"), abspath("")) |