mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 11:18:08 -06:00
German and croatian are added to language handler, message logs format has changed to partially fix #5
This commit is contained in:
parent
ca9f5b0c30
commit
85a7ffc8eb
@ -165,7 +165,7 @@ def setLanguage(lang):
|
||||
trans=gettext.translation("twblue",fallback=True)
|
||||
curLang="en"
|
||||
trans.install(unicode=True)
|
||||
log.debug("Current language: %s" % (curLang,))
|
||||
# log.debug(u"Current language: %s" % (curLang,))
|
||||
# Install our pgettext function.
|
||||
# __builtin__.__dict__["pgettext"] = makePgettext(trans)
|
||||
|
||||
@ -191,11 +191,13 @@ def langToWindowsLocale(lang):
|
||||
languages = {"en": "eng",
|
||||
"ar": "ara",
|
||||
"ca": "cat",
|
||||
"de": "deu",
|
||||
"es": "esp",
|
||||
"fi": "fin",
|
||||
"fr": "fre_FRA",
|
||||
"gl": "glc",
|
||||
"eu": "euq",
|
||||
"hr": "hrv",
|
||||
"hu": "hun",
|
||||
"it": "ita",
|
||||
"pl": "plk",
|
||||
|
@ -6,10 +6,10 @@ import sys
|
||||
|
||||
APP_LOG_FILE = 'debug.log'
|
||||
ERROR_LOG_FILE = "error.log"
|
||||
MESSAGE_FORMAT = u"%(asctime)s %(name)s %(levelname)s: %(message)s"
|
||||
DATE_FORMAT = u"%b %d, %Y %H:%M:%S"
|
||||
MESSAGE_FORMAT = "%(asctime)s %(name)s %(levelname)s: %(message)s"
|
||||
DATE_FORMAT = u"%d/%m/%Y %H:%M:%S"
|
||||
|
||||
formatter = logging.Formatter(MESSAGE_FORMAT, datefmt=DATE_FORMAT)
|
||||
formatter = logging.Formatter(MESSAGE_FORMAT.decode("utf-8"), datefmt=DATE_FORMAT)
|
||||
|
||||
requests_log = logging.getLogger("requests")
|
||||
requests_log.setLevel(logging.WARNING)
|
||||
|
@ -59,4 +59,3 @@ class URLStream(BaseStream):
|
||||
flags = flags | self.flags_for(three_d=three_d, autofree=autofree, decode=decode)
|
||||
handle = bass_call(BASS_StreamCreateURL, url, offset, flags, self.downloadproc, user)
|
||||
super(URLStream, self).__init__(handle)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user