Skip to content

Commit

Permalink
Change language setting from English to autodetect
Browse files Browse the repository at this point in the history
  • Loading branch information
gtarawneh committed Apr 13, 2016
1 parent 69ad66a commit 3eec536
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LTServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def _is_ST2():
return (int(sublime.version()) < 3000)

def _getResponse_ST2(server, text):
data = urllib.urlencode({'language' : 'en-GB', 'text': text.encode('utf8')})
data = urllib.urlencode({'autodetect' : 'yes', 'text': text.encode('utf8')})
try:
content = urllib.urlopen(server, data).read()
except IOError:
Expand All @@ -33,7 +33,7 @@ def _getResponse_ST2(server, text):
return content

def _getResponse_ST3(server, text):
data = urllib.parse.urlencode({'language' : 'en-GB', 'text': text.encode('utf8')})
data = urllib.parse.urlencode({'autodetect' : 'yes', 'text': text.encode('utf8')})
data = data.encode('utf8')
try:
content = urllib.request.urlopen(server, data).read()
Expand Down

0 comments on commit 3eec536

Please sign in to comment.