This commit is contained in:
Klaus-Uwe Mitterer 2015-03-19 02:00:10 +01:00
parent d01c6581dc
commit c643308ec7

View file

@ -61,11 +61,11 @@ for status in timeline:
for word in text.split(" "): for word in text.split(" "):
curstr += word curstr += word
if word[-1] in "!?.": if word[-1] in "!?.":
tstring += translate.Translator(to_lang=a[0]).translate(curstr)) + " " tstring += translate.Translator(to_lang=a[0]).translate(curstr) + " "
curstr = "" curstr = ""
if curstr != "": if curstr != "":
tstring += translate.Translator(to_lang=a[0]).translate(curstr)) tstring += translate.Translator(to_lang=a[0]).translate(curstr)
try: try:
api.update_status(tstring.encode('utf-8')[:140]) api.update_status(tstring.encode('utf-8')[:140])