HTTPS title support, and a minor encoding fix.
This commit is contained in:
@@ -46,6 +46,8 @@ def tr(phenny, context):
|
||||
|
||||
if input != output:
|
||||
msg = translate(phrase, input, output)
|
||||
if isinstance(msg, str):
|
||||
msg = msg.decode('utf-8')
|
||||
if msg:
|
||||
msg = web.decode(msg) # msg.replace(''', "'")
|
||||
msg = '"%s" (%s to %s, translate.google.com)' % (msg, input, output)
|
||||
|
||||
Reference in New Issue
Block a user