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(" "):
curstr += word
if word[-1] in "!?.":
tstring += translate.Translator(to_lang=a[0]).translate(curstr)) + " "
tstring += translate.Translator(to_lang=a[0]).translate(curstr) + " "
curstr = ""
if curstr != "":
tstring += translate.Translator(to_lang=a[0]).translate(curstr))
tstring += translate.Translator(to_lang=a[0]).translate(curstr)
try:
api.update_status(tstring.encode('utf-8')[:140])